33 #ifndef CXMETRICNAMESREP_H 34 #define CXMETRICNAMESREP_H 36 #include "cxResourceVisualizationExport.h" 68 static MetricNamesRepPtr New(
const QString& uid=
"");
71 virtual QString
getType()
const{
return "MetricNamesRep";}
72 void setFontSize(
int size);
73 void setData(std::vector<DataPtr> data);
76 void callSetColoredTextListSlot();
80 virtual void addRepActorsToViewRenderer(
ViewPtr view);
81 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
82 virtual void onModifiedStartRender();
88 void setColoredTextList(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp=0);
91 DoubleBoundingBox3D findNormalizedBoundingBoxAroundText(std::vector<std::pair<QColor, QString> > text, Eigen::Array2d pos, vtkViewport *vp);
93 bool equal(std::vector<DataMetricPtr> a, std::vector<DataMetricPtr> b)
const;
94 std::vector<DataMetricPtr> convertToMetrics(std::vector<DataPtr> data);
95 std::vector<std::pair<QColor, QString> > getAllMetricTexts()
const;
96 QString getText(DataMetricPtr metric,
bool showLabel)
const;
105 #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.