CustusX  20.03-rc1
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_ */
boost::shared_ptr< class DistanceMetricRep > DistanceMetricRepPtr
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
Base class for all Data Metric reps.
vtkSmartPointer< vtkTextActor > vtkTextActorPtr
virtual ~DistanceMetricRep()
constructor
virtual QString getType() const
Rep for visualizing a DistanceMetric.
boost::shared_ptr< class GraphicalLine3D > GraphicalLine3DPtr
Namespace for all CustusX production code.