NorMIT-nav  22.09
An IGT application
cxDistanceMetricRep.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 
14 #ifndef CXDISTANCEMETRICREP_H_
15 #define CXDISTANCEMETRICREP_H_
16 
17 #include "cxResourceVisualizationExport.h"
18 
19 #include "cxDataMetricRep.h"
20 #include "cxGraphicalPrimitives.h"
21 #include "cxDistanceMetric.h"
22 #include "vtkForwardDeclarations.h"
23 
24 #include "vtkTextActor.h"
25 typedef vtkSmartPointer<vtkTextActor> vtkTextActorPtr;
26 
27 namespace cx
28 {
29 
30 typedef boost::shared_ptr<class DistanceMetricRep> DistanceMetricRepPtr;
31 
40 class cxResourceVisualization_EXPORT DistanceMetricRep: public DataMetricRep
41 {
42 Q_OBJECT
43 public:
44  static DistanceMetricRepPtr New(const QString& uid="");
45  virtual ~DistanceMetricRep() {}
46 
47  virtual QString getType() const { return "DistanceMetricRep"; }
48 
49 protected:
50  virtual void clear();
51  virtual void onModifiedStartRender();
52 
53 private:
55  DistanceMetricPtr getDistanceMetric();
56 
57  GraphicalLine3DPtr mGraphicalLine;
58 };
59 
60 }
61 
62 #endif /* CXDISTANCEMETRICREP_H_ */
cx::DistanceMetricRepPtr
boost::shared_ptr< class DistanceMetricRep > DistanceMetricRepPtr
Definition: cxDistanceMetricRep.h:30
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxGraphicalPrimitives.h
cx::DistanceMetricRep
Rep for visualizing a DistanceMetric.
Definition: cxDistanceMetricRep.h:40
cx::DistanceMetricRep::getType
virtual QString getType() const
Definition: cxDistanceMetricRep.h:47
vtkTextActorPtr
vtkSmartPointer< vtkTextActor > vtkTextActorPtr
Definition: cxDistanceMetricRep.h:25
cxDistanceMetric.h
vtkForwardDeclarations.h
cx::DistanceMetricRep::~DistanceMetricRep
virtual ~DistanceMetricRep()
constructor
Definition: cxDistanceMetricRep.h:45
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::DistanceMetricPtr
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
Definition: cxForwardDeclarations.h:67