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>
47class TransformationManager;
48class FrameOfReference;
92 Transformation(
const std::shared_ptr<FrameOfReference>& from,
const std::shared_ptr<FrameOfReference>& to, QUuid
id = QUuid::createUuid());
97 Transformation(
const std::shared_ptr<FrameOfReference>& from,
const std::shared_ptr<FrameOfReference>& to, vtkSmartPointer<vtkTransform> tr, QUuid
id = QUuid::createUuid());
104 void setMatrix(vtkSmartPointer<vtkMatrix4x4> m);
120 vtkSmartPointer<vtkTransform> getTransform()
const;
134 vtkMatrix4x4* getMatrix()
const;
139 QString getName()
const;
144 void setName(QString n);
150 QString getDescription()
const;
156 void setDescription(QString desc);
173 QVariant toVariant()
const override;
178 void fromVariant(
const QVariant& v)
override;
183 QUuid getUuid()
const override;
190 bool setUuid(QUuid
id)
override;
210 void setTransform(vtkSmartPointer<vtkTransform> tr);
215 void setTo(
const std::shared_ptr<FrameOfReference>& f);
220 void setFrom(
const std::shared_ptr<FrameOfReference>& f);
237 vtkSmartPointer<vtkTransform> transform;
240 std::shared_ptr<FrameOfReference> from;
243 std::shared_ptr<FrameOfReference> to;
277inline void Transformation::setFrom(
const std::shared_ptr<FrameOfReference>& f) {
287inline void Transformation::setTo(
const std::shared_ptr<FrameOfReference>& f) {
#define CAMITK_API
Definition CamiTKAPI.h:66
const char * description
Definition applications/cepgenerator/main.cpp:38
FrameOfReference is only a label for an abstract coordinate system.
Definition FrameOfReference.h:71
Interface for all objects that should be serialized by the PersistenceManager.
Definition InterfacePersistence.h:38