CustusX  22.04-rc5
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
virtual ~SphereMetricRep2D()
constructor
boost::shared_ptr< class SliceProxy > SliceProxyPtr
boost::shared_ptr< class SphereMetric > SphereMetricPtr
virtual QString getType() const
Base class for all Data Metric reps.
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class SphereMetricRep2D > SphereMetricRep2DPtr
boost::shared_ptr< GraphicalDisk > GraphicalDiskPtr
Namespace for all CustusX production code.