NorMIT-nav  2023.01.05-dev+develop.0da12
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 
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
cxBaseWidget.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cx::MetricUtilities::MetricUtilities
MetricUtilities(VisServicesPtr services)
Definition: cxMetricUtilities.cpp:53
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
cx::SingleMetricWidget::~SingleMetricWidget
virtual ~SingleMetricWidget()
Definition: cxMetricUtilities.h:16
cx::MetricUtilities::createMetricWrappers
std::vector< MetricBasePtr > createMetricWrappers()
Definition: cxMetricUtilities.cpp:88
cx::SingleMetricWidget::SingleMetricWidget
SingleMetricWidget(QWidget *parent, MetricBasePtr wrapper, QLabel *valueLabel)
Definition: cxMetricUtilities.cpp:33
cxViewService.h
cx::MetricUtilities
Definition: cxMetricUtilities.h:28
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::SingleMetricWidget::mValueLabel
QLabel * mValueLabel
Definition: cxMetricUtilities.h:25
cx::MetricUtilities::createMetricWidget
QWidget * createMetricWidget(DataPtr data)
Definition: cxMetricUtilities.cpp:103
cx::MetricUtilities::createMetricWrapper
MetricBasePtr createMetricWrapper(DataPtr data)
Definition: cxMetricUtilities.cpp:59
cx::SingleMetricWidget::mWrapper
MetricBasePtr mWrapper
Definition: cxMetricUtilities.h:24
cxDataMetricWrappers.h
cx::MetricBasePtr
boost::shared_ptr< class MetricBase > MetricBasePtr
Definition: cxDataMetricWrappers.h:51
cx::SingleMetricWidget::prePaintEvent
virtual void prePaintEvent()
Definition: cxMetricUtilities.cpp:45
cx::SingleMetricWidget
Definition: cxMetricUtilities.h:11
cx::SingleMetricWidget::getData
DataPtr getData()
Definition: cxMetricUtilities.cpp:40