12 #ifndef CXMETRICNAMESREP_H
13 #define CXMETRICNAMESREP_H
15 #include "cxResourceVisualizationExport.h"
50 virtual QString
getType()
const{
return "MetricNamesRep";}
51 void setFontSize(
int size);
52 void setData(std::vector<DataPtr> data);
55 void callSetColoredTextListSlot();
59 virtual void addRepActorsToViewRenderer(
ViewPtr view);
60 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
61 virtual void onModifiedStartRender();
67 void setColoredTextList(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp=0);
70 DoubleBoundingBox3D findNormalizedBoundingBoxAroundText(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp);
72 bool equal(std::vector<DataMetricPtr> a, std::vector<DataMetricPtr> b)
const;
73 std::vector<DataMetricPtr> convertToMetrics(std::vector<DataPtr> data);
74 std::vector<std::pair<QColor, QString> > getAllMetricTexts()
const;
84 #endif // CXMETRICNAMESREP_H