NorMIT-nav  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_ */
cx::GuideRep2D
Definition: cxGuideRep2D.h:36
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxGraphicalPrimitives.h
cx::GuideRep2D::~GuideRep2D
virtual ~GuideRep2D()
Definition: cxGuideRep2D.h:41
cx::SliceProxyPtr
boost::shared_ptr< class SliceProxy > SliceProxyPtr
Definition: cxForwardDeclarations.h:96
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cxViewportListener.h
cx::GuideRep2DPtr
boost::shared_ptr< class GuideRep2D > GuideRep2DPtr
Definition: cxForwardDeclarations.h:75
cx::GuideRep2D::getType
virtual QString getType() const
Definition: cxGuideRep2D.h:43
cxPointMetric.h
vtkActorPtr
vtkSmartPointer< class vtkActor > vtkActorPtr
Definition: vtkForwardDeclarations.h:31
cx::DataMetricRep
Base class for all Data Metric reps.
Definition: cxDataMetricRep.h:39
cxDataMetricRep.h
vtkSectorSourcePtr
vtkSmartPointer< class vtkSectorSource > vtkSectorSourcePtr
Definition: vtkForwardDeclarations.h:126