Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxSphereMetricRep.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 #ifndef CXSPHEREMETRICREP_H
13 #define CXSPHEREMETRICREP_H
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include "cxDataMetricRep.h"
18 #include "vtkForwardDeclarations.h"
19 #include "cxForwardDeclarations.h"
20 
21 typedef vtkSmartPointer<class vtkTextActor> vtkTextActorPtr;
22 
23 namespace cx
24 {
25 typedef boost::shared_ptr<class CaptionText3D> CaptionText3DPtr;
26 typedef boost::shared_ptr<class GraphicalArc3D> GraphicalArc3DPtr;
27 }
28 
29 namespace cx
30 {
31 
32 typedef boost::shared_ptr<class SphereMetricRep> SphereMetricRepPtr;
33 typedef boost::shared_ptr<class SphereMetric> SphereMetricPtr;
34 
43 class cxResourceVisualization_EXPORT SphereMetricRep: public DataMetricRep
44 {
45 Q_OBJECT
46 public:
47  static SphereMetricRepPtr New(const QString& uid = "");
48  virtual ~SphereMetricRep() {}
49 
50  virtual QString getType() const { return "SphereMetricRep"; }
51 
52 protected:
53  virtual void clear();
54  virtual void onModifiedStartRender();
55 
56 private:
58  SphereMetricPtr getSphereMetric();
59 
60  GraphicalPoint3DPtr mGraphicalPoint;
61 };
62 
63 }
64 
65 #endif // CXSPHEREMETRICREP_H
vtkSmartPointer< class vtkTextActor > vtkTextActorPtr
boost::shared_ptr< class GraphicalPoint3D > GraphicalPoint3DPtr
boost::shared_ptr< class SphereMetric > SphereMetricPtr
boost::shared_ptr< GraphicalArc3D > GraphicalArc3DPtr
Base class for all Data Metric reps.
boost::shared_ptr< class SphereMetricRep > SphereMetricRepPtr
virtual ~SphereMetricRep()
constructor
virtual QString getType() const
boost::shared_ptr< CaptionText3D > CaptionText3DPtr
Namespace for all CustusX production code.