12 #ifndef CXMETRICNAMESREP_H 13 #define CXMETRICNAMESREP_H 15 #include "cxResourceVisualizationExport.h" 47 static MetricNamesRepPtr New(
const QString& uid=
"");
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;
75 QString getText(DataMetricPtr metric,
bool showLabel)
const;
84 #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
Namespace for all CustusX production code.