26#ifndef FRAMEOFREFERENCE_H
27#define FRAMEOFREFERENCE_H
41class TransformationManager;
107 bool resetUuid(QUuid newId);
132 void setAnatomicalOrientation(QString threeLetterCode);
137 int getNumberOfDimensions()
const;
146 void setNumberOfDimensions(
int numberOfDimensions);
149 Unit getUnit(
int dimension);
155 void setUnit(
int dimension,
Unit u);
160 QString getName()
const;
167 void setName(QString name);
173 QString getDescription()
const;
179 void setDescription(QString desc);
185 const QColor& getColor();
190 void setColor(
const QColor& color);
198 QString getAnatomicalOrientationLabel(
int axis,
bool minDirection)
const;
217 QVariant toVariant()
const override;
222 void fromVariant(
const QVariant& variant)
override;
228 bool setUuid(QUuid newId)
override;
233 QUuid getUuid()
const override;
248 std::vector<Unit> units = {
"mm",
"mm",
"mm",
"s",
""};
251 int numberOfDimensions = 3;
276 static QPair<QColor, int> getNextColorAndIndex();
281 return anatomicalOrientation;
285 return anatomicalOrientation;
290 this->anatomicalOrientation = anatomicalOrientation;
300 return numberOfDimensions;
325 return anatomicalOrientation.
getLabel(axis, minDirection);
#define CAMITK_API
Definition CamiTKAPI.h:66
const char * description
Definition applications/cepgenerator/main.cpp:38
Class that defines the unit of the Load.
Definition Unit.h:46
AnatomicalOrientation describes the relationship between 3D axes of a FrameOfReference and medical im...
Definition AnatomicalOrientation.h:83
QString getLabel(int axis, bool minDirection) const
Returns the label of the corresponding axis/direction (or empty string if there is no label)
Definition AnatomicalOrientation.h:291
void setOrientation(QString threeLetterCode)
Sets the orientation using the standard 3-letter code.
Definition AnatomicalOrientation.h:129
FrameOfReference is only a label for an abstract coordinate system.
Definition FrameOfReference.h:71
void setDescription(QString desc)
Set the description of the FrameOfReference.
Definition FrameOfReference.h:319
bool operator==(const FrameOfReference &b) const
Equality operator.
Definition FrameOfReference.h:329
void setAnatomicalOrientation(const AnatomicalOrientation &anatomicalOrientation)
Set anatomical orientation information.
Definition FrameOfReference.h:289
QString getName() const
Get the FrameOfReference name.
Definition FrameOfReference.h:304
bool operator!=(const FrameOfReference &b) const
Difference operator.
Definition FrameOfReference.h:334
void setName(QString name)
Set the name of the FrameOfReference Should be a short string, use setDescription if you want to stor...
Definition FrameOfReference.h:309
QUuid getUuid() const override
Get the unique identifier of the Frame.
Definition FrameOfReference.h:339
QString getAnatomicalOrientationLabel(int axis, bool minDirection) const
Get the Anatomical orientation label of the corresponding axis/direction (or empty string if there is...
Definition FrameOfReference.h:324
int getNumberOfDimensions() const
Get the number of dimensions of this FrameOfReference.
Definition FrameOfReference.h:299
QString getDescription() const
Get the description of the FrameOfReference.
Definition FrameOfReference.h:314
const AnatomicalOrientation & getAnatomicalOrientation() const
Get the anatomical information of the Frame.
Definition FrameOfReference.h:280
Interface for all objects that should be serialized by the PersistenceManager.
Definition InterfacePersistence.h:38