33 #ifndef CXMETRICNAMESREP_H
34 #define CXMETRICNAMESREP_H
36 #include "cxResourceVisualizationExport.h"
71 virtual QString
getType()
const{
return "MetricNamesRep";}
72 void setFontSize(
int size);
73 void setData(std::vector<DataPtr> data);
78 virtual void addRepActorsToViewRenderer(
ViewPtr view);
79 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
80 virtual void onModifiedStartRender();
86 void setColoredTextList(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp=0);
89 DoubleBoundingBox3D findNormalizedBoundingBoxAroundText(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp);
91 bool equal(std::vector<DataMetricPtr> a, std::vector<DataMetricPtr> b)
const;
92 std::vector<DataMetricPtr> convertToMetrics(std::vector<DataPtr> data);
93 std::vector<std::pair<QColor, QString> > getAllMetricTexts()
const;
103 #endif // CXMETRICNAMESREP_H
boost::shared_ptr< DataMetric > DataMetricPtr
virtual QString getType() const
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class MetricNamesRep > MetricNamesRepPtr
boost::shared_ptr< class TextDisplay > TextDisplayPtr
Default implementation of Rep.
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
std::vector< TextDisplayPtr > mDisplayText
std::vector< DataMetricPtr > mMetrics