31#include <Inventor/SbRotation.h>
32#include <Inventor/SbVec3f.h>
63 const std::shared_ptr<memoryxcontroller::MemoryXController>& memoryXController,
64 const std::shared_ptr<scene3D::Scene>& scene,
65 const std::string& objectId,
66 const SbRotation& oldRotation,
67 const SbRotation& newRotation,
68 const SbVec3f& oldPosition,
69 const SbVec3f& newPosition);
103 SbRotation oldRotation;
104 SbRotation newRotation;
Operation(const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId)
A constructor.
bool isExecuteable() override
Returns true, if the SceneObject is mutable.
const OperationPtr createInverseOperation() const override
Returns a new operation, which reverts the rotation and translatioon of the object.
void executeOnScene() override
Rotates and translates the object in the Scene.
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.
void executeOnWorkingMemory() override
Rotates and translates the object in the WorkingMemory.
std::shared_ptr< Operation > OperationPtr