|
|
A Operation to create a new object in the scene and the WorkingMemory. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/AddOperation.h>
Inheritance diagram for AddOperation:Public Member Functions | |
| AddOperation (const AddOperation &operation) | |
| Creates a new operation, which is a copy of the given operation, but has a new random ID. More... | |
| AddOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectName, const std::string &objectCollection) | |
| Creates a new operation, which adds a new object. More... | |
| AddOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectName, const std::string &objectCollection, const SbVec3f &objectPosition, const SbRotation &objectRotation) | |
| Creates a new operation, which adds a new object. More... | |
| AddOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectName, const std::string &objectCollection, const SbVec3f &objectPosition, const SbRotation &objectRotation, const std::string &objectId) | |
| Creates a new operation, which adds a new object. More... | |
| const OperationPtr | createInverseOperation () const override |
| Returns a new operation which removes the object, which will be added in this operation. More... | |
Public Member Functions inherited from Operation | |
| std::string | getObjectId () const |
| Returns the ID of the object, this Operation is working on. More... | |
| virtual bool | isExecuteable () |
| Return wehether the operation can be executed currently. More... | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene) | |
| A constructor. More... | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId) | |
| A constructor. More... | |
Protected Member Functions | |
| void | executeOnScene () override |
| Adds the object to the local Scene. More... | |
| void | executeOnWorkingMemory () override |
| Adds the object to the WorkingMemory. More... | |
Protected Member Functions inherited from Operation | |
| const std::shared_ptr< memoryxcontroller::MemoryXController > | getMemoryXController () const |
| Returns the the MemoryXController to execute the Operation at. More... | |
| const std::shared_ptr< scene3D::Scene > | getScene () const |
| Returns the the Scene to execute the Operation at. More... | |
| void | setObjectId (const std::string &objectId) |
| Sets the ID, this operation is working on. More... | |
A Operation to create a new object in the scene and the WorkingMemory.
Definition at line 46 of file AddOperation.h.
| AddOperation | ( | const AddOperation & | operation | ) |
Creates a new operation, which is a copy of the given operation, but has a new random ID.
| operation | The operation to copy; |
Definition at line 39 of file AddOperation.cpp.
Here is the call graph for this function:| AddOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene, | ||
| const std::string & | objectName, | ||
| const std::string & | objectCollection, | ||
| const SbVec3f & | objectPosition, | ||
| const SbRotation & | objectRotation, | ||
| const std::string & | objectId | ||
| ) |
Creates a new operation, which adds a new object.
| memoryXController | The MemoryXController to add the object at. |
| scene | The scene to add the object at. |
| objectName | The name of the class of the object. This is used to identify the class in PriorKnowledge. |
| objectCollection | The name of the collection where the object is in. This is used to identify the class in PriorKnowledge. |
| objectPosition | The position where the object should be added. |
| objectRotation | The rotation to add the object with. |
| objectId | The object id to create the object with. |
Definition at line 52 of file AddOperation.cpp.
| AddOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene, | ||
| const std::string & | objectName, | ||
| const std::string & | objectCollection, | ||
| const SbVec3f & | objectPosition, | ||
| const SbRotation & | objectRotation | ||
| ) |
Creates a new operation, which adds a new object.
A new random object ID is created in this operation.
| memoryXController | The MemoryXController to add the object at. |
| scene | The scene to add the object at. |
| objectName | The name of the class of the object. This is used to identify the class in PriorKnowledge. |
| objectCollection | The name of the collection where the object is in. This is used to identify the class in PriorKnowledge. |
| objectPosition | The position where the object should be added. |
| objectRotation | The rotation to add the object with. |
Definition at line 68 of file AddOperation.cpp.
| AddOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene, | ||
| const std::string & | objectName, | ||
| const std::string & | objectCollection | ||
| ) |
Creates a new operation, which adds a new object.
A new random object ID is created in this operation. The object will be added at a default position with a default rotation.
| memoryXController | The MemoryXController to add the object at. |
| scene | The scene to add the object at. |
| objectName | The name of the class of the object. This is used to identify the class in PriorKnowledge. |
| objectCollection | The name of the collection where the object is in. This is used to identify the class in PriorKnowledge. |
Definition at line 84 of file AddOperation.cpp.
|
overridevirtual |
Returns a new operation which removes the object, which will be added in this operation.
Implements Operation.
Definition at line 122 of file AddOperation.cpp.
|
overrideprotectedvirtual |
Adds the object to the local Scene.
Implements Operation.
Definition at line 159 of file AddOperation.cpp.
|
overrideprotectedvirtual |
Adds the object to the WorkingMemory.
Implements Operation.
Definition at line 136 of file AddOperation.cpp.