Fraxinus  2023.01.05-dev+develop.0da12
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

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

Definition at line 43 of file cxDataMetricRep.h.

cx::DataMetricRep::DataMetricRep ( )
protected

Definition at line 25 of file cxDataMetricRep.cpp.

Member Function Documentation

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

Definition at line 109 of file cxDataMetricRep.cpp.

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

Definition at line 144 of file cxDataMetricRep.cpp.

DataMetricPtr cx::DataMetricRep::getDataMetric ( )

Definition at line 55 of file cxDataMetricRep.cpp.

QString cx::DataMetricRep::getText ( )
protectedvirtual

Definition at line 132 of file cxDataMetricRep.cpp.

void cx::DataMetricRep::removeRepActorsFromViewRenderer ( ViewPtr  view)
protectedvirtual
void cx::DataMetricRep::setDataMetric ( DataMetricPtr  value)

Definition at line 35 of file cxDataMetricRep.cpp.

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

Definition at line 66 of file cxDataMetricRep.cpp.

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

Definition at line 72 of file cxDataMetricRep.cpp.

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

Definition at line 78 of file cxDataMetricRep.cpp.

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

Definition at line 60 of file cxDataMetricRep.cpp.

Member Data Documentation

double cx::DataMetricRep::mGraphicsSize
protected

Definition at line 62 of file cxDataMetricRep.h.

double cx::DataMetricRep::mLabelSize
protected

Definition at line 64 of file cxDataMetricRep.h.

DataMetricPtr cx::DataMetricRep::mMetric
protected

Definition at line 68 of file cxDataMetricRep.h.

bool cx::DataMetricRep::mShowAnnotation
protected

Definition at line 65 of file cxDataMetricRep.h.

bool cx::DataMetricRep::mShowLabel
protected

Definition at line 63 of file cxDataMetricRep.h.


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