Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxFrameMetricRep.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 #ifndef CXFRAMEMETRICREP_H
12 #define CXFRAMEMETRICREP_H
13 
14 #include "cxResourceVisualizationExport.h"
15 
16 #include "cxDataMetricRep.h"
17 #include "cxGraphicalPrimitives.h"
18 #include "cxFrameMetric.h"
19 #include "cxViewportListener.h"
20 
21 namespace cx
22 {
23 typedef boost::shared_ptr<class GraphicalAxes3D> GraphicalAxes3DPtr;
24 }
25 
26 namespace cx
27 {
28 
29 typedef boost::shared_ptr<class FrameMetricRep> FrameMetricRepPtr;
30 
39 class cxResourceVisualization_EXPORT FrameMetricRep: public DataMetricRep
40 {
41 Q_OBJECT
42 public:
43  static FrameMetricRepPtr New(const QString& uid="");
44  virtual ~FrameMetricRep() {}
45  virtual QString getType() const { return "FrameMetricRep"; }
46 
47 protected:
48  virtual void clear();
49  virtual void onModifiedStartRender();
50 
51 private:
52  FrameMetricRep();
53  FrameMetricPtr getFrameMetric();
54 
55  GraphicalAxes3DPtr mAxes;
56 };
57 
58 } // namespace cx
59 
60 #endif // CXFRAMEMETRICREP_H
virtual QString getType() const
boost::shared_ptr< class FrameMetric > FrameMetricPtr
Definition: cxFrameMetric.h:23
Base class for all Data Metric reps.
boost::shared_ptr< class GraphicalAxes3D > GraphicalAxes3DPtr
boost::shared_ptr< class FrameMetricRep > FrameMetricRepPtr
virtual ~FrameMetricRep()
constructor
Namespace for all CustusX production code.