A Operation to create a new object in the scene and the WorkingMemory.
More...
#include <MemoryX/gui-plugins/SceneEditor/controller/AddOperation.h>
|
| | AddOperation (const AddOperation &operation) |
| | Creates a new operation, which is a copy of the given operation, but has a new random ID.
|
| |
| | 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.
|
| |
| | 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.
|
| |
| | 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.
|
| |
| const OperationPtr | createInverseOperation () const override |
| | Returns a new operation which removes the object, which will be added in this operation.
|
| |
| std::string | getObjectId () const |
| | Returns the ID of the object, this Operation is working on.
|
| |
| virtual bool | isExecuteable () |
| | Return wehether the operation can be executed currently.
|
| |
| | Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene) |
| | A constructor.
|
| |
| | Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId) |
| | A constructor.
|
| |
A Operation to create a new object in the scene and the WorkingMemory.
- See also
- controller::Operation
◆ AddOperation() [1/4]
Creates a new operation, which is a copy of the given operation, but has a new random ID.
- Parameters
-
| operation | The operation to copy; |
◆ AddOperation() [2/4]
| 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.
- Parameters
-
| 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. |
- See also
- controller::Operation::Operation
◆ AddOperation() [3/4]
Creates a new operation, which adds a new object.
A new random object ID is created in this operation.
- Parameters
-
| 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. |
- See also
- controller::Operation::Operation
◆ AddOperation() [4/4]
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.
- Parameters
-
| 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. |
- See also
- controller::Operation::Operation
◆ createInverseOperation()
◆ executeOnScene()
◆ executeOnWorkingMemory()
| void executeOnWorkingMemory |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: