A class to execute Operations, maintain the execution history and initialize Scene and MemoryXController.
More...
#include <MemoryX/gui-plugins/SceneEditor/controller/Controller.h>
|
static const int | EXECUTE_ON_SCENE = 1 << 1 |
| A flag to execute operations on the Scene. More...
|
|
static const int | EXECUTE_ON_WM = 1 << 0 |
| A Flag to execute operations on the WorkingMemory. More...
|
|
static const int | UNDOABLE = 1 << 2 |
| A flag to save the executed operations to the history. More...
|
|
A class to execute Operations, maintain the execution history and initialize Scene and MemoryXController.
- See also
- memoryxcontroller::MemoryXController
-
scene3D::scene
Definition at line 55 of file Controller.h.
◆ ~Controller()
A destructor.
Deletes all initialized references.
Definition at line 66 of file Controller.cpp.
◆ clearScene()
Deletes all objects in local scene and in WorkingMemory and deletes all groups.
The operations are performed using undoable operations.
Definition at line 315 of file Controller.cpp.
◆ create()
◆ execute()
◆ executeQueuedOperations()
void executeQueuedOperations |
( |
bool |
blocking = true | ) |
|
Executes the Operations, which are queued because the object, which would be affected by this was busy.
- Parameters
-
blocking | If true, wait for ending of execution. |
Definition at line 230 of file Controller.cpp.
◆ getMemoryXController()
Returns the MemoryXController.
- Returns
- the MemoryXController
Definition at line 274 of file Controller.cpp.
◆ getScene()
◆ getShortcutController()
Returns the ShortcutController.
- Returns
- the ShortcutController
Definition at line 279 of file Controller.cpp.
◆ minimapClicked
A signal which gets triggered, after a click was performed on the minimap.
◆ objectClassSelected
void objectClassSelected |
( |
const std::string & |
objectClass, |
|
|
const std::string & |
collection |
|
) |
| |
|
signal |
A signal which gets triggered, after a class gets selected.
- Parameters
-
objectClass | The class of the selected class. |
collection | The collection of the selected class. |
◆ objectsChanged
A signal which gets triggered, if objects are moved or rotated.
- Parameters
-
objectIds | The IDs of the changed objects. |
◆ operationExecuted
A signal which gets triggered, after a vector of operations is executed.
- Parameters
-
objectIds | The IDs of the objects affected by the executed operations. |
◆ redo()
◆ reloadLocalScene()
void reloadLocalScene |
( |
| ) |
|
Deletes all objects in the local Scene and loads the current objects from the WorkingMemory in the Scene.
Definition at line 246 of file Controller.cpp.
◆ reloadScene
◆ saveSnapshotAsJSON()
void saveSnapshotAsJSON |
( |
std::string const & |
snapshotName | ) |
|
◆ sceneObjectSelected
A signal which gets triggered, after a object gets selected.
- Parameters
-
object | The object which was selected. |
◆ triggerMinimapClicked()
void triggerMinimapClicked |
( |
| ) |
|
Triggers signal controller:Controller::minimapClicked.
Definition at line 305 of file Controller.cpp.
◆ triggerObjectClassSelected()
void triggerObjectClassSelected |
( |
const std::string & |
objectClass, |
|
|
const std::string & |
collection |
|
) |
| |
Triggers signal controller:Controller::objectClassSelected with given parameter.
- Parameters
-
objectClass | The class of the selected class. |
collection | The collection of the selected class. |
Definition at line 295 of file Controller.cpp.
◆ triggerObjectsChanged()
Triggers signal controller:Controller::objectsChanged with given parameter.
- Parameters
-
objectIds | The IDs of the changed objects. |
Definition at line 310 of file Controller.cpp.
◆ triggerSceneObjectSelected()
Triggers signal controller:Controller::sceneObjectSelected with given parameter.
- Parameters
-
object | The object which was selected. |
Definition at line 300 of file Controller.cpp.
◆ undo()
◆ EXECUTE_ON_SCENE
const int EXECUTE_ON_SCENE = 1 << 1 |
|
static |
◆ EXECUTE_ON_WM
const int EXECUTE_ON_WM = 1 << 0 |
|
static |
◆ UNDOABLE
const int UNDOABLE = 1 << 2 |
|
static |
The documentation for this class was generated from the following files: