CustusX  20.03-rc1
An IGT application
cxAngleMetricRep.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 
13 #ifndef CXANGLEMETRICREP_H_
14 #define CXANGLEMETRICREP_H_
15 
16 #include "cxResourceVisualizationExport.h"
17 
18 #include "cxDataMetricRep.h"
19 #include "vtkForwardDeclarations.h"
20 #include "cxForwardDeclarations.h"
21 
22 typedef vtkSmartPointer<class vtkTextActor> vtkTextActorPtr;
23 
24 namespace cx
25 {
26 typedef boost::shared_ptr<class CaptionText3D> CaptionText3DPtr;
27 typedef boost::shared_ptr<class GraphicalArc3D> GraphicalArc3DPtr;
28 }
29 
30 namespace cx
31 {
32 
33 typedef boost::shared_ptr<class AngleMetricRep> AngleMetricRepPtr;
34 typedef boost::shared_ptr<class AngleMetric> AngleMetricPtr;
35 
44 class cxResourceVisualization_EXPORT AngleMetricRep: public DataMetricRep
45 {
46 Q_OBJECT
47 public:
48  static AngleMetricRepPtr New(const QString& uid = "");
49  virtual ~AngleMetricRep() {}
50 
51  virtual QString getType() const { return "AngleMetricRep"; }
52 
53 protected:
54  virtual void clear();
55  virtual void onModifiedStartRender();
56 
57 private:
58  AngleMetricRep(const QString& uid, const QString& name = "");
59  AngleMetricRep();
60  AngleMetricPtr getAngleMetric();
61 
62  GraphicalLine3DPtr mLine0;
63  GraphicalLine3DPtr mLine1;
64  GraphicalArc3DPtr mArc;
65 };
66 
67 }
68 
69 #endif /* CXANGLEMETRICREP_H_ */
virtual ~AngleMetricRep()
constructor
virtual QString getType() const
boost::shared_ptr< GraphicalArc3D > GraphicalArc3DPtr
Base class for all Data Metric reps.
boost::shared_ptr< class AngleMetric > AngleMetricPtr
Definition: cxAngleMetric.h:33
boost::shared_ptr< class AngleMetricRep > AngleMetricRepPtr
vtkSmartPointer< class vtkTextActor > vtkTextActorPtr
boost::shared_ptr< class GraphicalLine3D > GraphicalLine3DPtr
boost::shared_ptr< CaptionText3D > CaptionText3DPtr
Namespace for all CustusX production code.