Fraxinus  17.12-rc1
An IGT application
cxMetricUtilities.h
Go to the documentation of this file.
1 #ifndef CXMETRICUTILITIES_H
2 #define CXMETRICUTILITIES_H
3 
4 #include "cxViewService.h"
5 #include "cxDataMetricWrappers.h"
6 #include "cxBaseWidget.h"
7 
8 namespace cx
9 {
10 
12 {
13  Q_OBJECT
14 public:
15  SingleMetricWidget(QWidget* parent, MetricBasePtr wrapper, QLabel *valueLabel);
17  {
18  }
19 
20  DataPtr getData();
21 protected:
22 
23  virtual void prePaintEvent();
25  QLabel* mValueLabel;
26 };
27 
28 class MetricUtilities: public QObject
29 {
30 public:
32 
33  MetricBasePtr createMetricWrapper(DataPtr data);
34  std::vector<MetricBasePtr> createMetricWrappers();
35  QWidget *createMetricWidget(DataPtr data);
36 
37 private:
38  VisServicesPtr mServices;
39 };
40 
41 }//cx
42 
43 #endif // CXMETRICUTILITIES_H
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:61
SingleMetricWidget(QWidget *parent, MetricBasePtr wrapper, QLabel *valueLabel)
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class MetricBase > MetricBasePtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:109
Namespace for all CustusX production code.