CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::MetricBase Class Referenceabstract

#include <cxDataMetricWrappers.h>

Inheritance diagram for cx::MetricBase:
cx::AngleMetricWrapper cx::CustomMetricWrapper cx::DistanceMetricWrapper cx::DonutMetricWrapper cx::FrameMetricWrapper cx::PlaneMetricWrapper cx::PointMetricWrapper cx::RegionOfInterestMetricWrapper cx::SphereMetricWrapper cx::ToolMetricWrapper

Public Member Functions

 MetricBase (VisServicesPtr services)
 
virtual ~MetricBase ()
 
virtual QWidget * createWidget ()=0
 
virtual QString getValue () const
 
virtual DataMetricPtr getData () const =0
 
virtual QString getArguments () const =0
 
virtual QString getType () const =0
 
virtual void update ()=0
 

Protected Member Functions

void addColorWidget (QVBoxLayout *layout)
 
QWidget * newWidget (QString objectName)
 

Protected Attributes

ColorPropertyPtr mColorSelector
 
VisServicesPtr mServices
 

Detailed Description

Definition at line 53 of file cxDataMetricWrappers.h.

Constructor & Destructor Documentation

cx::MetricBase::MetricBase ( VisServicesPtr  services)

Definition at line 43 of file cxDataMetricWrappers.cpp.

virtual cx::MetricBase::~MetricBase ( )
inlinevirtual

Definition at line 58 of file cxDataMetricWrappers.h.

Member Function Documentation

void cx::MetricBase::addColorWidget ( QVBoxLayout *  layout)
protected

Definition at line 61 of file cxDataMetricWrappers.cpp.

QString cx::MetricBase::getValue ( ) const
virtual

Reimplemented in cx::FrameMetricWrapper, and cx::ToolMetricWrapper.

Definition at line 53 of file cxDataMetricWrappers.cpp.

QWidget * cx::MetricBase::newWidget ( QString  objectName)
protected

Definition at line 74 of file cxDataMetricWrappers.cpp.

Member Data Documentation

ColorPropertyPtr cx::MetricBase::mColorSelector
protected

Definition at line 69 of file cxDataMetricWrappers.h.

VisServicesPtr cx::MetricBase::mServices
protected

Definition at line 72 of file cxDataMetricWrappers.h.


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