Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxGuideRep2D.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 CXGUIDEREP2D_H_
14 #define CXGUIDEREP2D_H_
15 
16 #include "cxResourceVisualizationExport.h"
17 
18 #include "cxDataMetricRep.h"
19 #include "cxGraphicalPrimitives.h"
20 #include "cxPointMetric.h"
21 #include "cxViewportListener.h"
22 
23 namespace cx
24 {
25 
26 typedef boost::shared_ptr<class GuideRep2D> GuideRep2DPtr;
27 
36 class cxResourceVisualization_EXPORT GuideRep2D: public DataMetricRep
37 {
38 Q_OBJECT
39 public:
40  static GuideRep2DPtr New(PatientModelServicePtr dataManager, const QString& uid="");
41  virtual ~GuideRep2D() {}
42 
43  virtual QString getType() const { return "GuideRep2D"; }
44  void setSliceProxy(SliceProxyPtr slicer);
48  void setOutlineWidth(double width);
49 
50  void setRequestedAccuracy(double accuracy);
51 
52 protected:
53  virtual void clear();
54  virtual void onModifiedStartRender();
55 
56 private:
58  GuideRep2D();
59 
60  PatientModelServicePtr mDataManager;
61  SliceProxyPtr mSliceProxy;
62  vtkActorPtr mCircleActor;
63  vtkSectorSourcePtr mCircleSource;
64  double mOutlineWidth;
65  double mRequestedAccuracy;
66 };
67 
68 }
69 
70 #endif /* CXGUIDEREP2D_H_ */
vtkSmartPointer< class vtkActor > vtkActorPtr
boost::shared_ptr< class SliceProxy > SliceProxyPtr
Base class for all Data Metric reps.
virtual ~GuideRep2D()
Definition: cxGuideRep2D.h:41
boost::shared_ptr< class GuideRep2D > GuideRep2DPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
vtkSmartPointer< class vtkSectorSource > vtkSectorSourcePtr
Namespace for all CustusX production code.
virtual QString getType() const
Definition: cxGuideRep2D.h:43