Go to the documentation of this file.
31 #include <Inventor/SbVec3f.h>
32 #include <Inventor/SbRotation.h>
35 #include "../scene3D/Scene.h"
37 #include "../memoryxcontroller/MemoryXController.h"
62 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);
96 SbRotation oldRotation;
97 SbRotation newRotation;
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.
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 executeOnScene() override
Rotates and translates the object in the Scene.
std::shared_ptr< Operation > OperationPtr
void executeOnWorkingMemory() override
Rotates and translates the object in the WorkingMemory.
A operation to rotate and translate a object.
An abstract class, which offers methods to run operations on the WorkingMemory and the Scene.