Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxFrameMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXTFRAMEMETRIC_H_
13 #define CXTFRAMEMETRIC_H_
14 
15 #include "cxResourceExport.h"
16 #include "cxPrecompiledHeader.h"
17 
18 #include "cxFrameMetricBase.h"
19 
20 namespace cx
21 {
22 
23 typedef boost::shared_ptr<class FrameMetric> FrameMetricPtr;
24 
33 class cxResource_EXPORT FrameMetric: public cx::FrameMetricBase
34 {
35 Q_OBJECT
36 public:
37  virtual ~FrameMetric();
38  static FrameMetricPtr create(QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider);
39  virtual QString getType() const
40  {
41  return getTypeName();
42  }
43  static QString getTypeName()
44  {
45  return "frameMetric";
46  }
47  virtual QIcon getIcon() {return QIcon(":/icons/metric_frame.png");}
48  virtual void addXml(QDomNode& dataNode);
49  virtual void parseXml(QDomNode& dataNode);
50 
51 private:
52  FrameMetric(const QString& uid, const QString& name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider);
53 };
54 
55 } //namespace cx
56 
57 #endif /* CXTFRAMEMETRIC_H_ */
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class FrameMetric > FrameMetricPtr
Definition: cxFrameMetric.h:23
Data class that represents a single frame (transform).
Definition: cxFrameMetric.h:33
virtual QIcon getIcon()
Definition: cxFrameMetric.h:47
static QString getTypeName()
Definition: cxFrameMetric.h:43
Abstract base class for frame metric.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual QString getType() const
Definition: cxFrameMetric.h:39
Namespace for all CustusX production code.