NorMIT-nav  22.09
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_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::CaptionText3DPtr
boost::shared_ptr< CaptionText3D > CaptionText3DPtr
Definition: cxGraphicalPrimitives.h:287
cx::AngleMetricRep::getType
virtual QString getType() const
Definition: cxAngleMetricRep.h:51
vtkForwardDeclarations.h
cx::AngleMetricRep
Definition: cxAngleMetricRep.h:44
cx::AngleMetricRepPtr
boost::shared_ptr< class AngleMetricRep > AngleMetricRepPtr
Definition: cxAngleMetricRep.h:33
cx::AngleMetricPtr
boost::shared_ptr< class AngleMetric > AngleMetricPtr
Definition: cxAngleMetric.h:33
vtkTextActorPtr
vtkSmartPointer< class vtkTextActor > vtkTextActorPtr
Definition: cxAngleMetricRep.h:22
cx::DataMetricRep
Base class for all Data Metric reps.
Definition: cxDataMetricRep.h:39
cx::GraphicalLine3DPtr
boost::shared_ptr< class GraphicalLine3D > GraphicalLine3DPtr
Definition: cxForwardDeclarations.h:73
cxDataMetricRep.h
cx::GraphicalArc3DPtr
boost::shared_ptr< GraphicalArc3D > GraphicalArc3DPtr
Definition: cxGraphicalPrimitives.h:183
cx::AngleMetricRep::~AngleMetricRep
virtual ~AngleMetricRep()
constructor
Definition: cxAngleMetricRep.h:49