Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxDonutMetricRep.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 CXDONUTMETRICREP_H
13 #define CXDONUTMETRICREP_H
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include "cxDataMetricRep.h"
18 #include "vtkForwardDeclarations.h"
19 #include "cxForwardDeclarations.h"
20 
21 
22 namespace cx
23 {
24 typedef boost::shared_ptr<class GraphicalTorus3D> GraphicalTorus3DPtr;
25 typedef boost::shared_ptr<class DonutMetricRep> DonutMetricRepPtr;
26 typedef boost::shared_ptr<class DonutMetric> DonutMetricPtr;
27 typedef boost::shared_ptr<class GraphicalDisk> GraphicalDiskPtr;
28 
37 class cxResourceVisualization_EXPORT DonutMetricRep: public DataMetricRep
38 {
39 Q_OBJECT
40 public:
41  static DonutMetricRepPtr New(const QString& uid = "");
42  virtual ~DonutMetricRep() {}
43 
44  virtual QString getType() const { return "DonutMetricRep"; }
45 
46 protected:
47  virtual void clear();
48  virtual void onModifiedStartRender();
49 
50 private:
52  DonutMetricPtr getDonutMetric();
53  void updateTorus();
54  void updateDisc();
55 
56  GraphicalTorus3DPtr mTorus;
57  GraphicalDiskPtr mDisk;
58 };
59 
60 }
61 
62 #endif // CXDONUTMETRICREP_H
virtual QString getType() const
boost::shared_ptr< class DonutMetric > DonutMetricPtr
virtual ~DonutMetricRep()
constructor
Base class for all Data Metric reps.
boost::shared_ptr< GraphicalTorus3D > GraphicalTorus3DPtr
boost::shared_ptr< class DonutMetricRep > DonutMetricRepPtr
boost::shared_ptr< GraphicalDisk > GraphicalDiskPtr
Namespace for all CustusX production code.