Fraxinus
16.5.0-fx-rc8
An IGT application
|
Base class for all Data Metrics. More...
#include <cxDataMetric.h>
Public Member Functions | |
DataMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider) | |
virtual | ~DataMetric () |
virtual QIcon | getIcon () |
virtual QString | getSpace () |
virtual Vector3D | getRefCoord () const =0 |
virtual QString | getAsSingleLineString () const =0 |
virtual bool | isValid () const |
virtual QString | getValueAsString () const =0 |
virtual bool | showValueInGraphics () const |
void | setColor (const QColor &color) |
QColor | getColor () |
void | addXml (QDomNode &dataNode) |
adds xml information about the data and its variabels More... | |
void | parseXml (QDomNode &dataNode) |
Use a XML node to load data. More... | |
virtual bool | load (QString path) |
metrics don't store info in file, xml only. More... | |
virtual void | save (const QString &basePath) |
metrics don't store info in file, xml only. More... | |
Public Member Functions inherited from cx::Data | |
Data (const QString &uid, const QString &name="") | |
virtual | ~Data () |
void | setUid (const QString &uid) |
void | setName (const QString &name) |
void | setAcquisitionTime (QDateTime time) |
void | setSoftwareAcquisitionTime (QDateTime time) |
void | setOriginalAcquisitionTime (QDateTime time) |
virtual RegistrationHistoryPtr | get_rMd_History () |
LandmarksPtr | getLandmarks () |
virtual QString | getUid () const |
virtual QString | getName () const |
virtual Transform3D | get_rMd () const |
virtual QDateTime | getAcquisitionTime () const |
virtual TimeInfo | getAdvancedTimeInfo () const |
virtual QString | getType () const |
virtual QString | getFilename () const |
virtual void | setFilename (QString val) |
virtual QString | getParentSpace () |
virtual DoubleBoundingBox3D | boundingBox () const =0 |
virtual CoordinateSystem | getCoordinateSystem () |
virtual void | addPersistentClipPlane (vtkPlanePtr plane) |
virtual std::vector< vtkPlanePtr > | getAllClipPlanes () |
virtual void | clearPersistentClipPlanes () |
virtual void | setInteractiveClipPlane (vtkPlanePtr plane) |
set a plane that is not saved More... | |
void | addInteractiveClipPlane (vtkPlanePtr plane) |
void | removeInteractiveClipPlane (vtkPlanePtr plane) |
Protected Member Functions | |
QString | getSingleLineHeader () const |
Protected Attributes | |
PatientModelServicePtr | mDataManager |
SpaceProviderPtr | mSpaceProvider |
QColor | mColor |
Protected Attributes inherited from cx::Data | |
QString | mUid |
QString | mName |
QString | mFilename |
TimeInfo | mTimeInfo |
LandmarksPtr | mLandmarks |
REGISTRATION_STATUS | mRegistrationStatus |
RegistrationHistoryPtr | m_rMd_History |
std::vector< vtkPlanePtr > | mPersistentClipPlanes |
std::vector< vtkPlanePtr > | mInteractiveClipPlanes |
vtkPlanePtr | mInteractiveClipPlane |
Additional Inherited Members | |
Signals inherited from cx::Data | |
void | transformChanged () |
emitted when transform is changed More... | |
void | propertiesChanged () |
emitted when one of the metadata properties (uid, name etc) changes More... | |
void | clipPlanesChanged () |
Protected Slots inherited from cx::Data | |
virtual void | transformChangedSlot () |
Base class for all Data Metrics.
Data Metrics are Data subclasses that aims to add measurements to the system, such as points, angles and distances.
Definition at line 64 of file cxDataMetric.h.
cx::DataMetric::DataMetric | ( | const QString & | uid, |
const QString & | name, | ||
PatientModelServicePtr | dataManager, | ||
SpaceProviderPtr | spaceProvider | ||
) |
Definition at line 41 of file cxDataMetric.cpp.
|
virtual |
Definition at line 51 of file cxDataMetric.cpp.
|
virtual |
adds xml information about the data and its variabels
Reimplemented from cx::Data.
Reimplemented in cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::ToolMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetric.
Definition at line 79 of file cxDataMetric.cpp.
|
pure virtual |
Implemented in cx::PlaneMetric, cx::PointMetric, cx::AngleMetric, cx::ToolMetric, cx::DistanceMetric, cx::FrameMetric, cx::DonutMetric, and cx::SphereMetric.
QColor cx::DataMetric::getColor | ( | ) |
Definition at line 73 of file cxDataMetric.cpp.
|
inlinevirtual |
Reimplemented from cx::Data.
Reimplemented in cx::PlaneMetric, cx::SphereMetric, cx::PointMetric, cx::ToolMetric, cx::AngleMetric, cx::DonutMetric, cx::FrameMetric, and cx::DistanceMetric.
Definition at line 70 of file cxDataMetric.h.
|
pure virtual |
Implemented in cx::DonutMetric, cx::AngleMetric, cx::PointMetric, cx::PlaneMetric, cx::SphereMetric, cx::DistanceMetric, and cx::FrameMetricBase.
|
protected |
Definition at line 60 of file cxDataMetric.cpp.
|
virtual |
Reimplemented from cx::Data.
Definition at line 55 of file cxDataMetric.cpp.
|
pure virtual |
Implemented in cx::PlaneMetric, cx::AngleMetric, cx::DonutMetric, cx::PointMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetricBase.
|
inlinevirtual |
Reimplemented in cx::AngleMetric, cx::DistanceMetric, cx::DonutMetric, and cx::SphereMetric.
Definition at line 75 of file cxDataMetric.h.
|
inlinevirtual |
metrics don't store info in file, xml only.
Implements cx::Data.
Definition at line 84 of file cxDataMetric.h.
|
virtual |
Use a XML node to load data.
dataNode | A XML data representation of this object. |
Reimplemented from cx::Data.
Reimplemented in cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::ToolMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetric.
Definition at line 89 of file cxDataMetric.cpp.
|
inlinevirtual |
metrics don't store info in file, xml only.
Implements cx::Data.
Definition at line 85 of file cxDataMetric.h.
void cx::DataMetric::setColor | ( | const QColor & | color | ) |
Definition at line 67 of file cxDataMetric.cpp.
|
inlinevirtual |
Reimplemented in cx::PlaneMetric, cx::AngleMetric, cx::DonutMetric, cx::PointMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetricBase.
Definition at line 77 of file cxDataMetric.h.
|
protected |
Definition at line 92 of file cxDataMetric.h.
|
protected |
Definition at line 88 of file cxDataMetric.h.
|
protected |
Definition at line 89 of file cxDataMetric.h.