FrameOfReference is only a label for an abstract coordinate system. More...
#include <FrameOfReference.h>
Inheritance diagram for camitk::FrameOfReference:
Collaboration diagram for camitk::FrameOfReference: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. | |
| Unit | 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, Unit 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 description.
|
inline |
Get the anatomical information of the Frame (non-const version)
|
inline |
Get the anatomical information of the Frame.
Referenced by camitk::InteractiveViewer::setCameraOrientation().
Here is the caller graph for this function:
|
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 |
References camitk::AnatomicalOrientation::getLabel().
Here is the call graph for this function:| 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.
|
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.
|
inline |
Get the FrameOfReference name.
Referenced by camitk::toString().
Here is the caller graph for this function:
|
inline |
Get the number of dimensions of this FrameOfReference.
| Unit camitk::FrameOfReference::getUnit | ( | int | dimension | ) |
get the unit of the given dimension if dimension is valid otherwise returns an invalid Unit
|
inlineoverridevirtual |
Get the unique identifier of the Frame.
Implements camitk::InterfacePersistence.
Referenced by operator!=(), operator==(), camitk::Component::toVariant(), and camitk::ImageComponent::toVariant().
Here is the caller graph for this function:
|
inline |
Difference operator.
References getUuid().
Here is the call graph for this function:
|
inline |
Equality operator.
References getUuid().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:| void camitk::FrameOfReference::setColor | ( | const QColor & | color | ) |
Set a color for graphical representation of the FrameOfReference.
|
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
| void camitk::FrameOfReference::setUnit | ( | int | dimension, |
| Unit | u | ||
| ) |
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 |
|
overridevirtual |
Set the unique identifier only if it is not already set.
Implements camitk::InterfacePersistence.
|
overridevirtual |
Convert the Frame to a QVariant for Persistence.
Implements camitk::InterfacePersistence.
References description.