NorMIT-nav  22.09
An IGT application
cx::DataMetricRep Class Reference

Base class for all Data Metric reps. More...

#include <cxDataMetricRep.h>

Inheritance diagram for cx::DataMetricRep:
cx::RepImpl cx::Rep cx::AngleMetricRep cx::CustomMetricRep cx::DistanceMetricRep cx::DistanceMetricRep2D cx::DonutMetricRep cx::FrameMetricRep cx::GuideRep2D cx::PlaneMetricRep cx::PointMetricRep cx::PointMetricRep2D cx::RegionOfInterestMetricRep cx::SphereMetricRep cx::SphereMetricRep2D cx::ToolMetricRep

Public Member Functions

virtual ~DataMetricRep ()
 
void setGraphicsSize (double size)
 
void setLabelSize (double size)
 
void setShowLabel (bool on)
 
void setShowAnnotation (bool on)
 
void setDataMetric (DataMetricPtr value)
 
DataMetricPtr getDataMetric ()
 
- Public Member Functions inherited from cx::RepImpl
 RepImpl (const QString &uid="", const QString &name="")
 
virtual ~RepImpl ()
 
virtual QString getType () const =0
 
virtual void connectToView (ViewPtr theView)
 
virtual void disconnectFromView (ViewPtr theView)
 
virtual bool isConnectedToView (ViewPtr theView) const
 
void setName (QString name)
 
QString getName () const
 
QString getUid () const
 
virtual void printSelf (std::ostream &os, Indent indent)
 
- Public Member Functions inherited from cx::Rep
virtual ~Rep ()
 

Protected Member Functions

 DataMetricRep ()
 
void addRepActorsToViewRenderer (ViewPtr view)
 
void removeRepActorsFromViewRenderer (ViewPtr view)
 
void drawText ()
 
virtual void clear ()
 
virtual QString getText ()
 
Vector3D getColorAsVector3D () const
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

double mGraphicsSize
 
bool mShowLabel
 
double mLabelSize
 
bool mShowAnnotation
 
DataMetricPtr mMetric
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::RepImpl
template<class REP >
static boost::shared_ptr< REP > wrap_new (REP *object, QString uid)
 
- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Detailed Description

Base class for all Data Metric reps.

Handles common functionality: labels, size.

Date
Jul 31, 2011
Author
Christian Askeland, SINTEF

Definition at line 39 of file cxDataMetricRep.h.

Constructor & Destructor Documentation

◆ ~DataMetricRep()

virtual cx::DataMetricRep::~DataMetricRep ( )
inlinevirtual

Definition at line 43 of file cxDataMetricRep.h.

◆ DataMetricRep()

cx::DataMetricRep::DataMetricRep ( )
protected

Definition at line 25 of file cxDataMetricRep.cpp.

Member Function Documentation

◆ addRepActorsToViewRenderer()

void cx::DataMetricRep::addRepActorsToViewRenderer ( ViewPtr  view)
protectedvirtual

◆ clear()

◆ drawText()

void cx::DataMetricRep::drawText ( )
protected

Definition at line 109 of file cxDataMetricRep.cpp.

◆ getColorAsVector3D()

Vector3D cx::DataMetricRep::getColorAsVector3D ( ) const
protected

Definition at line 144 of file cxDataMetricRep.cpp.

◆ getDataMetric()

DataMetricPtr cx::DataMetricRep::getDataMetric ( )

Definition at line 55 of file cxDataMetricRep.cpp.

◆ getText()

QString cx::DataMetricRep::getText ( )
protectedvirtual

Definition at line 132 of file cxDataMetricRep.cpp.

◆ removeRepActorsFromViewRenderer()

void cx::DataMetricRep::removeRepActorsFromViewRenderer ( ViewPtr  view)
protectedvirtual

◆ setDataMetric()

void cx::DataMetricRep::setDataMetric ( DataMetricPtr  value)

Definition at line 35 of file cxDataMetricRep.cpp.

◆ setGraphicsSize()

void cx::DataMetricRep::setGraphicsSize ( double  size)

Definition at line 66 of file cxDataMetricRep.cpp.

◆ setLabelSize()

void cx::DataMetricRep::setLabelSize ( double  size)

Definition at line 72 of file cxDataMetricRep.cpp.

◆ setShowAnnotation()

void cx::DataMetricRep::setShowAnnotation ( bool  on)

Definition at line 78 of file cxDataMetricRep.cpp.

◆ setShowLabel()

void cx::DataMetricRep::setShowLabel ( bool  on)

Definition at line 60 of file cxDataMetricRep.cpp.

Member Data Documentation

◆ mGraphicsSize

double cx::DataMetricRep::mGraphicsSize
protected

Definition at line 62 of file cxDataMetricRep.h.

◆ mLabelSize

double cx::DataMetricRep::mLabelSize
protected

Definition at line 64 of file cxDataMetricRep.h.

◆ mMetric

DataMetricPtr cx::DataMetricRep::mMetric
protected

Definition at line 68 of file cxDataMetricRep.h.

◆ mShowAnnotation

bool cx::DataMetricRep::mShowAnnotation
protected

Definition at line 65 of file cxDataMetricRep.h.

◆ mShowLabel

bool cx::DataMetricRep::mShowLabel
protected

Definition at line 63 of file cxDataMetricRep.h.


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