26#ifndef CAMITK_TRANSFORMATION_H
27#define CAMITK_TRANSFORMATION_H
38#include <vtkMatrix4x4.h>
39#include <vtkAbstractTransform.h>
40#include <vtkTransform.h>
41#include <vtkSmartPointer.h>
85 friend TransformationManager;
90 Transformation(
const std::shared_ptr<FrameOfReference>& from,
const std::shared_ptr<FrameOfReference>& to, QUuid
id = QUuid::createUuid());
95 Transformation(
const std::shared_ptr<FrameOfReference>& from,
const std::shared_ptr<FrameOfReference>& to, vtkSmartPointer<vtkTransform> tr, QUuid
id = QUuid::createUuid());
102 void setMatrix(vtkSmartPointer<vtkMatrix4x4> m);
181 QUuid
getUuid()
const override;
188 bool setUuid(QUuid
id)
override;
200 Transformation* getInverse();
208 void setTransform(vtkSmartPointer<vtkTransform> tr);
213 void setTo(
const std::shared_ptr<FrameOfReference>& f);
218 void setFrom(
const std::shared_ptr<FrameOfReference>& f);
235 vtkSmartPointer<vtkTransform> transform;
238 std::shared_ptr<FrameOfReference> from;
241 std::shared_ptr<FrameOfReference> to;
275inline void Transformation::setFrom(
const std::shared_ptr<FrameOfReference>& f) {
285inline void Transformation::setTo(
const std::shared_ptr<FrameOfReference>& f) {
#define CAMITK_API
Definition CamiTKAPI.h:66
FrameOfReference is only a label for an abstract coordinate system.
Definition FrameOfReference.h:69
Interface for all objects that should be serialized by the PersistenceManager.
Definition InterfacePersistence.h:38