FrameOfReference is only a label for an abstract coordinate system. More...
#include <FrameOfReference.h>
Public Member Functions | |
| AnatomicalOrientation & | getAnatomicalOrientation () |
| Get the anatomical information of the Frame (non-const version). | |
| const AnatomicalOrientation & | getAnatomicalOrientation () const |
| Get the anatomical information of the Frame. | |
| QString | getAnatomicalOrientationLabel (int axis, bool minDirection) const |
| Get the Anatomical orientation label of the corresponding axis/direction (or empty string if there is no label). | |
| const QColor & | getColor () |
| Get the color for graphical representation of the FrameOfReference Set the color the first time this is called to avoid "loosing" colors in the palette. | |
| QString | getDescription () const |
| Get the description of the FrameOfReference. | |
| int | getIndex () |
| Get the index (a non-unique ID useful for user interaction) indexes start at 1. | |
| QString | getName () const |
| Get the FrameOfReference name. | |
| int | getNumberOfDimensions () const |
| Get the number of dimensions of this FrameOfReference. | |
| UnitUnit | getUnit (int dimension) |
| get the unit of the given dimension if dimension is valid otherwise returns an invalid Unit | |
| bool | operator!= (const FrameOfReference &b) const |
| Difference operator. | |
| bool | operator== (const FrameOfReference &b) const |
| Equality operator. | |
| void | setAnatomicalOrientation (const AnatomicalOrientation &anatomicalOrientation) |
| Set anatomical orientation information. | |
| void | setAnatomicalOrientation (QString threeLetterCode) |
| Set anatomical orientation information. | |
| void | setColor (const QColor &color) |
| Set a color for graphical representation of the FrameOfReference. | |
| void | setDescription (QString desc) |
| Set the description of the FrameOfReference. | |
| void | setName (QString name) |
| Set the name of the FrameOfReference Should be a short string, use setDescription if you want to store a more detailed description of the FrameOfReference. | |
| void | setNumberOfDimensions (int numberOfDimensions) |
| Set the number of dimensions of this FrameOfReference. | |
| void | setUnit (int dimension, UnitUnit u) |
| Set the unit of one dimension. | |
Implementation of InterfacePersistence | |
| QVariant | toVariant () const override |
| Convert the Frame to a QVariant for Persistence. | |
| void | fromVariant (const QVariant &variant) override |
| Load the Frame content from a QVariant. | |
| bool | setUuid (QUuid newId) override |
| Set the unique identifier only if it is not already set. | |
| QUuid | getUuid () const override |
| Get the unique identifier of the Frame. | |
| Public Member Functions inherited from camitk::InterfacePersistence | |
| virtual | ~InterfacePersistence ()=default |
FrameOfReference is only a label for an abstract coordinate system.
It is used as origins and destinations of transformations.
There is no information stored in a FrameOfReference except
All constructors are protected, use TransformationManager to create a new instance.
|
overridevirtual |
Load the Frame content from a QVariant.
Implements camitk::InterfacePersistence.
References fromVariant().
Referenced by fromVariant().
|
inline |
Get the anatomical information of the Frame (non-const version).
|
inline |
Get the anatomical information of the Frame.
Referenced by camitk::InteractiveViewer::setCameraOrientation().
|
inline |
Get the Anatomical orientation label of the corresponding axis/direction (or empty string if there is no label).
| axis | The axis index (0,1,2) |
| minDirection | if true, return the label of the minimum/negative direction, otherwise return the label of the maximum/position direction for the given axis |
| const QColor & camitk::FrameOfReference::getColor | ( | ) |
Get the color for graphical representation of the FrameOfReference Set the color the first time this is called to avoid "loosing" colors in the palette.
References getColor().
Referenced by getColor().
|
inline |
Get the description of the FrameOfReference.
Optional string, more detailed than the name
| int camitk::FrameOfReference::getIndex | ( | ) |
Get the index (a non-unique ID useful for user interaction) indexes start at 1.
References getIndex().
Referenced by getIndex().
|
inline |
Get the FrameOfReference name.
Referenced by camitk::toString().
|
inline |
Get the number of dimensions of this FrameOfReference.
|
inlineoverridevirtual |
Get the unique identifier of the Frame.
Implements camitk::InterfacePersistence.
Referenced by operator!=(), operator==(), and camitk::Component::toVariant().
|
inline |
|
inline |
Equality operator.
References getUuid().
|
inline |
Set anatomical orientation information.
|
inline |
Set anatomical orientation information.
| threeLetterCode | Set a standard 3-letter orientation code (e.g. "RAI" for X axis from Right to Left, Y axis from Anterior to Posterior, Z axis from Inferior to Superior) |
References camitk::AnatomicalOrientation::setOrientation().
| void camitk::FrameOfReference::setColor | ( | const QColor & | color | ) |
Set a color for graphical representation of the FrameOfReference.
References setColor().
Referenced by setColor().
|
inline |
Set the description of the FrameOfReference.
Optional string, more detailed than the name
|
inline |
Set the name of the FrameOfReference Should be a short string, use setDescription if you want to store a more detailed description of the FrameOfReference.
| void camitk::FrameOfReference::setNumberOfDimensions | ( | int | numberOfDimensions | ) |
Set the number of dimensions of this FrameOfReference.
Usually, the first three dimensions are spatial coordinates, the 4th one is time, and other dimensions may be used to represent other data type within the same 5D volume
References setNumberOfDimensions().
Referenced by setNumberOfDimensions().
Set the unit of one dimension.
| u | should be a string following the Unified Codes for Units of Measurement standard (https://ucum.org) also used by DICOM. Common values are "mm" for space, "s" for time |
References setUnit().
Referenced by setUnit().
|
overridevirtual |
Set the unique identifier only if it is not already set.
Implements camitk::InterfacePersistence.
References setUuid().
Referenced by setUuid().
|
overridevirtual |
Convert the Frame to a QVariant for Persistence.
Implements camitk::InterfacePersistence.
References toVariant().
Referenced by toVariant().