Fraxinus
2023.01.05-dev+develop.0da12
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 Transform3D | getRefFrame () const |
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, FileManagerServicePtr filemanager) |
metrics don't store info in file, xml only. More... | |
virtual void | save (const QString &basePath, FileManagerServicePtr filemanager) |
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 bool | isEqual (DataPtr metric) |
virtual QString | getFilename () const |
virtual void | setFilename (QString val) |
virtual QString | getParentSpace () |
virtual DoubleBoundingBox3D | boundingBox () const =0 |
virtual std::vector< Vector3D > | getPointCloud () const |
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 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 43 of file cxDataMetric.h.
cx::DataMetric::DataMetric | ( | const QString & | uid, |
const QString & | name, | ||
PatientModelServicePtr | dataManager, | ||
SpaceProviderPtr | spaceProvider | ||
) |
Definition at line 24 of file cxDataMetric.cpp.
|
virtual |
Definition at line 34 of file cxDataMetric.cpp.
|
virtual |
adds xml information about the data and its variabels
Reimplemented from cx::Data.
Reimplemented in cx::RegionOfInterestMetric, cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::DistanceMetric, cx::ToolMetric, cx::SphereMetric, and cx::FrameMetric.
Definition at line 55 of file cxDataMetric.cpp.
QColor cx::DataMetric::getColor | ( | ) |
Definition at line 49 of file cxDataMetric.cpp.
|
inlinevirtual |
Reimplemented from cx::Data.
Reimplemented in cx::PlaneMetric, cx::PointMetric, cx::SphereMetric, cx::ToolMetric, cx::AngleMetric, cx::CustomMetric, cx::DonutMetric, cx::FrameMetric, and cx::DistanceMetric.
Definition at line 49 of file cxDataMetric.h.
|
pure virtual |
|
inlinevirtual |
Reimplemented in cx::FrameMetricBase.
Definition at line 53 of file cxDataMetric.h.
|
virtual |
Reimplemented from cx::Data.
Definition at line 38 of file cxDataMetric.cpp.
|
pure virtual |
|
inlinevirtual |
Reimplemented in cx::RegionOfInterestMetric, cx::DistanceMetric, cx::AngleMetric, cx::CustomMetric, cx::DonutMetric, and cx::SphereMetric.
Definition at line 54 of file cxDataMetric.h.
|
virtual |
metrics don't store info in file, xml only.
Implements cx::Data.
Definition at line 81 of file cxDataMetric.cpp.
|
virtual |
Use a XML node to load data.
dataNode | A XML data representation of this object. |
Reimplemented from cx::Data.
Reimplemented in cx::RegionOfInterestMetric, cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::DistanceMetric, cx::ToolMetric, cx::SphereMetric, and cx::FrameMetric.
Definition at line 65 of file cxDataMetric.cpp.
|
inlinevirtual |
metrics don't store info in file, xml only.
Implements cx::Data.
Definition at line 64 of file cxDataMetric.h.
void cx::DataMetric::setColor | ( | const QColor & | color | ) |
Definition at line 43 of file cxDataMetric.cpp.
|
inlinevirtual |
Reimplemented in cx::RegionOfInterestMetric, cx::CustomMetric, cx::PlaneMetric, cx::DonutMetric, cx::DistanceMetric, cx::AngleMetric, cx::PointMetric, cx::SphereMetric, and cx::FrameMetricBase.
Definition at line 56 of file cxDataMetric.h.
|
protected |
Definition at line 70 of file cxDataMetric.h.
|
protected |
Definition at line 67 of file cxDataMetric.h.
|
protected |
Definition at line 68 of file cxDataMetric.h.