Transformation represents a geometrical transformation between two FrameOfReferences. More...
#include <Transformation.h>
Inheritance diagram for camitk::Transformation:
Collaboration diagram for camitk::Transformation:Public Member Functions | |
| QString | getDescription () const |
| Get the description of the Transformation Description is used to provide more information than the name (e.g. | |
| const FrameOfReference * | getFrom () const |
| Get the FrameOfReference the Transformation starts from (origin) | |
| vtkMatrix4x4 * | getMatrix () const |
| Get the internal 4x4 matrix if the Transformation is linear, otherwise nullptr. | |
| QString | getName () const |
| Get the name of the Transformation. | |
| const FrameOfReference * | getTo () const |
| Get the FrameOfReference that the Transformation goes to (destination) | |
| vtkSmartPointer< vtkTransform > | getTransform () const |
| Get the internal vtkTransform (linear transformation) or a nullptr. | |
| void | setDescription (QString desc) |
| Set the description of the Transformation Description is used to provide more information than the name (e.g. | |
| void | setName (QString n) |
| Set the name of the Transformation. | |
Implementation of InterfacePersistence | |
| QVariant | toVariant () const override |
| Convert the Transformation to a QVariant (for serializing) | |
| void | fromVariant (const QVariant &v) override |
| Fill the Transformation from a QVariant. | |
| QUuid | getUuid () const override |
| Get the unique identifier of this Transformation. | |
| bool | setUuid (QUuid id) override |
| Set the unique identifier of this transformation if the current one is Null. | |
Public Member Functions inherited from camitk::InterfacePersistence | |
| virtual | ~InterfacePersistence ()=default |
Transformation represents a geometrical transformation between two FrameOfReferences.
It supports linear and non-linear transforms stored in a vtkTransform (linear) or any vtkAbstractTransform (non-linear)
It has a direction (from a FrameOfReference to another FrameOfReference)
Its constructor is private as Transformation objects must only be created through TransformationManager::getTransformationManager() (although it is possible to instantiate your own TransformationManager if you know what you're doing!)
|
overridevirtual |
Fill the Transformation from a QVariant.
Implements camitk::InterfacePersistence.
References CAMITK_INFO_ALT, CAMITK_WARNING_ALT, and description.
Referenced by camitk::TransformationManager::addTransformation().
Here is the caller graph for this function:
|
inline |
Get the description of the Transformation Description is used to provide more information than the name (e.g.
method used to compute it)
|
inline |
Get the FrameOfReference the Transformation starts from (origin)
Referenced by camitk::TransformationManager::addTransformation(), camitk::TransformationManager::getInverseTransformation(), and camitk::TransformationManager::updateTransformation().
Here is the caller graph for this function:| vtkMatrix4x4 * camitk::Transformation::getMatrix | ( | ) | const |
Get the internal 4x4 matrix if the Transformation is linear, otherwise nullptr.
Note: this method should return a pointer to a const vtkMatrix4x4 Unfortunately, at some stage in some part of your VTK pipeline, you might need a non-const vtkMatrix4x4 (e.g. to setup a vtkActor).
Referenced by camitk::ArbitrarySingleImageComponent::getArbitraryCenter(), camitk::ArbitrarySingleImageComponent::getArbitraryPlaneNormal(), camitk::InteractiveViewer::picked(), and VtkImageComponentExtension::save().
Here is the caller graph for this function:| QString camitk::Transformation::getName | ( | ) | const |
Get the name of the Transformation.
Referenced by camitk::toString(), and camitk::TransformationManager::updateTransformation().
Here is the caller graph for this function:
|
inline |
Get the FrameOfReference that the Transformation goes to (destination)
Referenced by camitk::TransformationManager::addTransformation(), camitk::TransformationManager::getInverseTransformation(), and camitk::TransformationManager::updateTransformation().
Here is the caller graph for this function:
|
inline |
Get the internal vtkTransform (linear transformation) or a nullptr.
Note: this method should return a vtkSmartPointer to a const vtkTransform Unfortunately, at some stage in some part of your VTK pipeline, you might need a non-const vtkTransform.
Referenced by camitk::InteractiveViewer::addActor(), camitk::TransformationManager::addTransformation(), VolumeRenderingAction::createVolumeRendering(), camitk::ArbitrarySingleImageComponent::get3DCursor(), camitk::InteractiveViewer::picked(), camitk::ImageComponent::pixelPicked(), VtkImageComponentExtension::save(), camitk::toString(), and camitk::ArbitrarySingleImageComponent::updatePropertyFromTransformation().
Here is the caller graph for this function:
|
inlineoverridevirtual |
Get the unique identifier of this Transformation.
Implements camitk::InterfacePersistence.
Referenced by camitk::TransformationManager::addTransformation().
Here is the caller graph for this function:
|
inline |
Set the description of the Transformation Description is used to provide more information than the name (e.g.
method used to compute it)
|
inline |
Set the name of the Transformation.
|
overridevirtual |
Set the unique identifier of this transformation if the current one is Null.
Implements camitk::InterfacePersistence.
|
overridevirtual |
Convert the Transformation to a QVariant (for serializing)
Implements camitk::InterfacePersistence.
References description.