Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::MetricNamesRep Class Reference

#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 ()
 

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 55 of file cxMetricNamesRep.cpp.

cx::MetricNamesRep::MetricNamesRep ( )
protected

Definition at line 49 of file cxMetricNamesRep.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 64 of file cxMetricNamesRep.cpp.

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

Definition at line 104 of file cxMetricNamesRep.cpp.

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

Definition at line 116 of file cxMetricNamesRep.cpp.

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

Definition at line 172 of file cxMetricNamesRep.cpp.

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

Definition at line 237 of file cxMetricNamesRep.cpp.

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

Definition at line 227 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 195 of file cxMetricNamesRep.cpp.

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

Definition at line 59 of file cxMetricNamesRep.cpp.

void cx::MetricNamesRep::onModifiedStartRender ( )
protectedvirtual

Reimplemented from cx::RepImpl.

Definition at line 126 of file cxMetricNamesRep.cpp.

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

Implements cx::RepImpl.

Definition at line 72 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 140 of file cxMetricNamesRep.cpp.

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

Definition at line 80 of file cxMetricNamesRep.cpp.

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

must be set before setting data

Definition at line 222 of file cxMetricNamesRep.cpp.

Member Data Documentation

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

Definition at line 98 of file cxMetricNamesRep.h.

int cx::MetricNamesRep::mFontSize
protected

Definition at line 96 of file cxMetricNamesRep.h.

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

Definition at line 97 of file cxMetricNamesRep.h.


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