CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::PointMetric Class Reference

Data class that represents a single point. More...

#include <cxPointMetric.h>

Inheritance diagram for cx::PointMetric:
cx::DataMetric cx::Data

Public Member Functions

virtual ~PointMetric ()
 
virtual QString getParentSpace ()
 
void setCoordinate (const Vector3D &p)
 
Vector3D getCoordinate () const
 
void setSpace (CoordinateSystem space)
 
CoordinateSystem getSpace () const
 
virtual QString getType () const
 
virtual QIcon getIcon ()
 
virtual Vector3D getRefCoord () const
 
virtual void addXml (QDomNode &dataNode)
 adds xml information about the data and its variabels More...
 
virtual void parseXml (QDomNode &dataNode)
 Use a XML node to load data. More...
 
virtual DoubleBoundingBox3D boundingBox () const
 
virtual QString getValueAsString () const
 
virtual bool showValueInGraphics () const
 
- Public Member Functions inherited from cx::DataMetric
 DataMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~DataMetric ()
 
virtual QString getSpace ()
 
virtual Transform3D getRefFrame () const
 
virtual bool isValid () const
 
void setColor (const QColor &color)
 
QColor getColor ()
 
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 bool isEqual (DataPtr metric)
 
virtual QString getFilename () const
 
virtual void setFilename (QString val)
 
virtual std::vector< Vector3DgetPointCloud () const
 
virtual CoordinateSystem getCoordinateSystem ()
 
virtual void addPersistentClipPlane (vtkPlanePtr plane)
 
virtual std::vector< vtkPlanePtrgetAllClipPlanes ()
 
virtual void clearPersistentClipPlanes ()
 
virtual void setInteractiveClipPlane (vtkPlanePtr plane)
 set a plane that is not saved More...
 
void addInteractiveClipPlane (vtkPlanePtr plane)
 
void removeInteractiveClipPlane (vtkPlanePtr plane)
 

Static Public Member Functions

static PointMetricPtr create (QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
static QString getTypeName ()
 

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 ()
 
- Protected Attributes inherited from cx::DataMetric
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< vtkPlanePtrmPersistentClipPlanes
 
std::vector< vtkPlanePtrmInteractiveClipPlanes
 
vtkPlanePtr mInteractiveClipPlane
 

Detailed Description

Data class that represents a single point.

The point is attached to a specific coordinate system / frame.

Date
Jul 4, 2011
Author
Christian Askeland, SINTEF

Definition at line 42 of file cxPointMetric.h.

Constructor & Destructor Documentation

cx::PointMetric::~PointMetric ( )
virtual

Definition at line 41 of file cxPointMetric.cpp.

Member Function Documentation

void cx::PointMetric::addXml ( QDomNode &  dataNode)
virtual

adds xml information about the data and its variabels

Reimplemented from cx::DataMetric.

Definition at line 84 of file cxPointMetric.cpp.

DoubleBoundingBox3D cx::PointMetric::boundingBox ( ) const
virtual

Implements cx::Data.

Definition at line 100 of file cxPointMetric.cpp.

PointMetricPtr cx::PointMetric::create ( QString  uid,
QString  name,
PatientModelServicePtr  dataManager,
SpaceProviderPtr  spaceProvider 
)
static

Definition at line 36 of file cxPointMetric.cpp.

Vector3D cx::PointMetric::getCoordinate ( ) const

Definition at line 60 of file cxPointMetric.cpp.

virtual QIcon cx::PointMetric::getIcon ( )
inlinevirtual

Reimplemented from cx::DataMetric.

Definition at line 62 of file cxPointMetric.h.

QString cx::PointMetric::getParentSpace ( )
virtual

Reimplemented from cx::Data.

Definition at line 45 of file cxPointMetric.cpp.

Vector3D cx::PointMetric::getRefCoord ( ) const
virtual

Utility function: return the coordinate the the reference space.

Implements cx::DataMetric.

Definition at line 116 of file cxPointMetric.cpp.

CoordinateSystem cx::PointMetric::getSpace ( ) const

Definition at line 79 of file cxPointMetric.cpp.

virtual QString cx::PointMetric::getType ( ) const
inlinevirtual

Reimplemented from cx::Data.

Definition at line 54 of file cxPointMetric.h.

static QString cx::PointMetric::getTypeName ( )
inlinestatic

Definition at line 58 of file cxPointMetric.h.

QString cx::PointMetric::getValueAsString ( ) const
virtual

Implements cx::DataMetric.

Definition at line 127 of file cxPointMetric.cpp.

void cx::PointMetric::parseXml ( QDomNode &  dataNode)
virtual

Use a XML node to load data.

Parameters
dataNodeA XML data representation of this object.

Reimplemented from cx::DataMetric.

Definition at line 92 of file cxPointMetric.cpp.

void cx::PointMetric::setCoordinate ( const Vector3D p)

Definition at line 50 of file cxPointMetric.cpp.

void cx::PointMetric::setSpace ( CoordinateSystem  space)

Definition at line 65 of file cxPointMetric.cpp.

virtual bool cx::PointMetric::showValueInGraphics ( ) const
inlinevirtual

Reimplemented from cx::DataMetric.

Definition at line 70 of file cxPointMetric.h.


The documentation for this class was generated from the following files: