NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::AngleMetric Class Reference

Data class that represents an angle between two lines. More...

#include <cxAngleMetric.h>

Inheritance diagram for cx::AngleMetric:
cx::DataMetric cx::Data

Public Member Functions

virtual ~AngleMetric ()
 
double getAngle () const
 
std::vector< Vector3DgetEndpoints () const
 
virtual QIcon getIcon ()
 
MetricReferenceArgumentListPtr getArguments ()
 
virtual bool isValid () 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 Vector3D getRefCoord () const
 
virtual QString getType () const
 
virtual QString getValueAsString () const
 
virtual bool showValueInGraphics () const
 
bool getUseSimpleVisualization () const
 
void setUseSimpleVisualization (bool val)
 
- 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
 
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...
 
- 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 QString getParentSpace ()
 
virtual std::vector< Vector3DgetPointCloud () const
 
virtual void save (const QString &basePath, FileManagerServicePtr port)=0
 
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 AngleMetricPtr 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 an angle between two lines.

The lines are defined by four points ABCD. The computed angle is from vector BA to vector CD.

The angle ABC can by found by setting the two mid point equal, .ie. ABBC.

Date
Jul 27, 2011
Author
Christian Askeland, SINTEF

Definition at line 46 of file cxAngleMetric.h.

Constructor & Destructor Documentation

◆ ~AngleMetric()

cx::AngleMetric::~AngleMetric ( )
virtual

Definition at line 39 of file cxAngleMetric.cpp.

Member Function Documentation

◆ addXml()

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

adds xml information about the data and its variabels

Reimplemented from cx::Data.

Definition at line 43 of file cxAngleMetric.cpp.

◆ boundingBox()

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

Implements cx::Data.

Definition at line 103 of file cxAngleMetric.cpp.

◆ create()

AngleMetricPtr cx::AngleMetric::create ( QString  uid,
QString  name,
PatientModelServicePtr  dataManager,
SpaceProviderPtr  spaceProvider 
)
static

Definition at line 34 of file cxAngleMetric.cpp.

◆ getAngle()

double cx::AngleMetric::getAngle ( ) const

Definition at line 84 of file cxAngleMetric.cpp.

◆ getArguments()

MetricReferenceArgumentListPtr cx::AngleMetric::getArguments ( )
inline

Definition at line 56 of file cxAngleMetric.h.

◆ getEndpoints()

std::vector< Vector3D > cx::AngleMetric::getEndpoints ( ) const

Definition at line 70 of file cxAngleMetric.cpp.

◆ getIcon()

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

Reimplemented from cx::DataMetric.

Definition at line 55 of file cxAngleMetric.h.

◆ getRefCoord()

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

Implements cx::DataMetric.

Definition at line 79 of file cxAngleMetric.cpp.

◆ getType()

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

Reimplemented from cx::Data.

Definition at line 63 of file cxAngleMetric.h.

◆ getTypeName()

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

Definition at line 67 of file cxAngleMetric.h.

◆ getUseSimpleVisualization()

bool cx::AngleMetric::getUseSimpleVisualization ( ) const

Definition at line 108 of file cxAngleMetric.cpp.

◆ getValueAsString()

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

Implements cx::DataMetric.

Definition at line 98 of file cxAngleMetric.cpp.

◆ isValid()

bool cx::AngleMetric::isValid ( ) const
virtual

Reimplemented from cx::DataMetric.

Definition at line 65 of file cxAngleMetric.cpp.

◆ parseXml()

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

Use a XML node to load data.

Parameters
dataNodeA XML data representation of this object.

Reimplemented from cx::Data.

Definition at line 50 of file cxAngleMetric.cpp.

◆ setUseSimpleVisualization()

void cx::AngleMetric::setUseSimpleVisualization ( bool  val)

Definition at line 113 of file cxAngleMetric.cpp.

◆ showValueInGraphics()

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

Reimplemented from cx::DataMetric.

Definition at line 73 of file cxAngleMetric.h.


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