|
A operation to rotate and translate a object. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/RotateTranslateOperation.h>
Public Member Functions | |
const OperationPtr | createInverseOperation () const override |
Returns a new operation, which reverts the rotation and translatioon of the object. More... | |
bool | isExecuteable () override |
Returns true, if the SceneObject is mutable. More... | |
RotateTranslateOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId, const SbRotation &oldRotation, const SbRotation &newRotation, const SbVec3f &oldPosition, const SbVec3f &newPosition) | |
Creates a new operation, which rotates and translates a object. More... | |
Public Member Functions inherited from Operation | |
std::string | getObjectId () const |
Returns the ID of the object, this Operation is working on. 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 |
Rotates and translates the object in the Scene. More... | |
void | executeOnWorkingMemory () override |
Rotates and translates the object in 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 rotate and translate a object.
Definition at line 46 of file RotateTranslateOperation.h.
RotateTranslateOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
const std::shared_ptr< scene3D::Scene > & | scene, | ||
const std::string & | objectId, | ||
const SbRotation & | oldRotation, | ||
const SbRotation & | newRotation, | ||
const SbVec3f & | oldPosition, | ||
const SbVec3f & | newPosition | ||
) |
Creates a new operation, which rotates and translates a object.
memoryXController | The MemoryXController to rotate and translate the object on. |
scene | The scene to rotate and translate the object on. |
objectId | The object to rotate and translate. |
oldRotation | The old rotation of the object. |
newRotation | The new rotation of the object. |
oldPosition | The old position of the object. |
newPosition | The new position of the object. |
Definition at line 35 of file RotateTranslateOperation.cpp.
|
overridevirtual |
Returns a new operation, which reverts the rotation and translatioon of the object.
Implements Operation.
Definition at line 44 of file RotateTranslateOperation.cpp.
|
overrideprotectedvirtual |
Rotates and translates the object in the Scene.
Implements Operation.
Definition at line 55 of file RotateTranslateOperation.cpp.
|
overrideprotectedvirtual |
Rotates and translates the object in the WorkingMemory.
Implements Operation.
Definition at line 50 of file RotateTranslateOperation.cpp.
|
overridevirtual |
Returns true, if the SceneObject is mutable.
Reimplemented from Operation.
Definition at line 77 of file RotateTranslateOperation.cpp.