NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxSphereMetricRep2D.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 #ifndef CXSPHEREMETRICREP2D_H
12 #define CXSPHEREMETRICREP2D_H
13 
14 #include "cxResourceVisualizationExport.h"
15 
16 #include "cxDataMetricRep.h"
17 #include "cxGraphicalPrimitives.h"
18 #include "cxPointMetric.h"
19 #include "cxViewportListener.h"
20 
21 namespace cx
22 {
23 
24 typedef boost::shared_ptr<class GraphicalDisk> GraphicalDiskPtr;
25 typedef boost::shared_ptr<class SphereMetricRep2D> SphereMetricRep2DPtr;
26 typedef boost::shared_ptr<class SphereMetric> SphereMetricPtr;
27 
35 class cxResourceVisualization_EXPORT SphereMetricRep2D: public DataMetricRep
36 {
37 Q_OBJECT
38 public:
39  static SphereMetricRep2DPtr New(const QString& uid="");
40  virtual ~SphereMetricRep2D() {}
41 
42  virtual QString getType() const { return "SphereMetricRep2D"; }
43  void setSliceProxy(SliceProxyPtr slicer);
44 
45 protected:
46  virtual void addRepActorsToViewRenderer(ViewPtr view);
47  virtual void removeRepActorsFromViewRenderer(ViewPtr view);
48 
49  virtual void clear();
50  virtual void onModifiedStartRender();
51 
52 private:
54 
55  SphereMetricPtr getSphereMetric();
56 
57  SliceProxyPtr mSliceProxy;
58  GraphicalDiskPtr mDisk;
59 };
60 
61 
62 } // namespace cx
63 
64 
65 #endif // CXSPHEREMETRICREP2D_H
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxGraphicalPrimitives.h
cx::SliceProxyPtr
boost::shared_ptr< class SliceProxy > SliceProxyPtr
Definition: cxForwardDeclarations.h:96
cx::SphereMetricPtr
boost::shared_ptr< class SphereMetric > SphereMetricPtr
Definition: cxDataRepContainer.h:22
cxViewportListener.h
cx::GraphicalDiskPtr
boost::shared_ptr< GraphicalDisk > GraphicalDiskPtr
Definition: cxGraphicalDisk.h:79
cx::ViewPtr
boost::shared_ptr< class View > ViewPtr
Definition: cxForwardDeclarations.h:110
cxPointMetric.h
cx::SphereMetricRep2D::getType
virtual QString getType() const
Definition: cxSphereMetricRep2D.h:42
cx::DataMetricRep
Base class for all Data Metric reps.
Definition: cxDataMetricRep.h:39
cxDataMetricRep.h
cx::SphereMetricRep2D
Definition: cxSphereMetricRep2D.h:35
cx::SphereMetricRep2D::~SphereMetricRep2D
virtual ~SphereMetricRep2D()
constructor
Definition: cxSphereMetricRep2D.h:40
cx::SphereMetricRep2DPtr
boost::shared_ptr< class SphereMetricRep2D > SphereMetricRep2DPtr
Definition: cxSphereMetricRep2D.h:25