Fraxinus  17.12-rc2
An IGT application

#include <cxMetricNamesRep.h>

Inheritance diagram for cx::MetricNamesRep:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~MetricNamesRep ()
 
virtual QString getType () const
 
void setFontSize (int size)
 must be set before setting data More...
 
void setData (std::vector< DataPtr > data)
 
- Public Member Functions inherited from cx::RepImpl
 RepImpl (const QString &uid="", const QString &name="")
 
virtual ~RepImpl ()
 
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 ()
 

Static Public Member Functions

static MetricNamesRepPtr New (const QString &uid="")
 
- Static Public Member Functions inherited from cx::RepImpl
template<class REP >
static boost::shared_ptr< REP > wrap_new (REP *object, QString uid)
 

Protected Member Functions

 MetricNamesRep ()
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
virtual void onModifiedStartRender ()
 
void setColoredTextList (std::vector< std::pair< QColor, QString > > text, Eigen::Array2d pos, vtkViewport *vp=0)
 
DoubleBoundingBox3D findNormalizedBoundingBoxAroundText (std::vector< std::pair< QColor, QString > > text, Eigen::Array2d pos, vtkViewport *vp)
 
DoubleBoundingBox3D moveBoxIntoAnother (DoubleBoundingBox3D box, DoubleBoundingBox3D another)
 
bool equal (std::vector< DataMetricPtr > a, std::vector< DataMetricPtr > b) const
 
std::vector< DataMetricPtrconvertToMetrics (std::vector< DataPtr > data)
 
std::vector< std::pair< QColor, QString > > getAllMetricTexts () const
 
QString getText (DataMetricPtr metric, bool showLabel) const
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onEveryRender ()
 

Protected Attributes

int mFontSize
 
std::vector< DataMetricPtrmMetrics
 
std::vector< TextDisplayPtrmDisplayText
 

Additional Inherited Members

- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Detailed Description

Date
2014-02-13
Author
christiana

Definition at line 64 of file cxMetricNamesRep.h.

Constructor & Destructor Documentation

cx::MetricNamesRep::~MetricNamesRep ( )
virtual

Definition at line 56 of file cxMetricNamesRep.cpp.

cx::MetricNamesRep::MetricNamesRep ( )
protected

Definition at line 50 of file cxMetricNamesRep.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 65 of file cxMetricNamesRep.cpp.

std::vector< DataMetricPtr > cx::MetricNamesRep::convertToMetrics ( std::vector< DataPtr data)
protected

Definition at line 113 of file cxMetricNamesRep.cpp.

bool cx::MetricNamesRep::equal ( std::vector< DataMetricPtr a,
std::vector< DataMetricPtr b 
) const
protected

Definition at line 125 of file cxMetricNamesRep.cpp.

DoubleBoundingBox3D cx::MetricNamesRep::findNormalizedBoundingBoxAroundText ( std::vector< std::pair< QColor, QString > >  text,
Eigen::Array2d  pos,
vtkViewport *  vp 
)
protected

Definition at line 181 of file cxMetricNamesRep.cpp.

std::vector< std::pair< QColor, QString > > cx::MetricNamesRep::getAllMetricTexts ( ) const
protected

Definition at line 246 of file cxMetricNamesRep.cpp.

QString cx::MetricNamesRep::getText ( DataMetricPtr  metric,
bool  showLabel 
) const
protected

Definition at line 236 of file cxMetricNamesRep.cpp.

virtual QString cx::MetricNamesRep::getType ( ) const
inlinevirtual
Returns
a string identifying the Rep type. Each suclass implement this with its own class name. Subclasses from other namespaces (such as cx and snw) should add that namespace as a prefix.

Implements cx::RepImpl.

Definition at line 71 of file cxMetricNamesRep.h.

DoubleBoundingBox3D cx::MetricNamesRep::moveBoxIntoAnother ( DoubleBoundingBox3D  box,
DoubleBoundingBox3D  another 
)
protected

Definition at line 204 of file cxMetricNamesRep.cpp.

MetricNamesRepPtr cx::MetricNamesRep::New ( const QString &  uid = "")
static

Definition at line 60 of file cxMetricNamesRep.cpp.

void cx::MetricNamesRep::onModifiedStartRender ( )
protectedvirtual

Reimplemented from cx::RepImpl.

Definition at line 135 of file cxMetricNamesRep.cpp.

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

Implements cx::RepImpl.

Definition at line 73 of file cxMetricNamesRep.cpp.

void cx::MetricNamesRep::setColoredTextList ( std::vector< std::pair< QColor, QString > >  text,
Eigen::Array2d  pos,
vtkViewport *  vp = 0 
)
protected

Add a list of colored strings at pos. This is not directly supported by VTK, so the input viewport is required for extra calculations, if renderer is set, this is not required.

Definition at line 149 of file cxMetricNamesRep.cpp.

void cx::MetricNamesRep::setData ( std::vector< DataPtr data)

Definition at line 81 of file cxMetricNamesRep.cpp.

void cx::MetricNamesRep::setFontSize ( int  size)

must be set before setting data

Definition at line 231 of file cxMetricNamesRep.cpp.

Member Data Documentation

std::vector<TextDisplayPtr> cx::MetricNamesRep::mDisplayText
protected

Definition at line 100 of file cxMetricNamesRep.h.

int cx::MetricNamesRep::mFontSize
protected

Definition at line 98 of file cxMetricNamesRep.h.

std::vector<DataMetricPtr> cx::MetricNamesRep::mMetrics
protected

Definition at line 99 of file cxMetricNamesRep.h.


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