NorMIT-nav  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
cx::GraphicalTorus3DPtr
boost::shared_ptr< GraphicalTorus3D > GraphicalTorus3DPtr
Definition: cxGraphicalTorus3D.h:40
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::DonutMetricRep
Definition: cxDonutMetricRep.h:37
cx::DonutMetricPtr
boost::shared_ptr< class DonutMetric > DonutMetricPtr
Definition: cxShapedMetric.h:29
cx::DonutMetricRep::getType
virtual QString getType() const
Definition: cxDonutMetricRep.h:44
vtkForwardDeclarations.h
cx::DonutMetricRep::~DonutMetricRep
virtual ~DonutMetricRep()
constructor
Definition: cxDonutMetricRep.h:42
cx::GraphicalDiskPtr
boost::shared_ptr< GraphicalDisk > GraphicalDiskPtr
Definition: cxGraphicalDisk.h:79
cx::DonutMetricRepPtr
boost::shared_ptr< class DonutMetricRep > DonutMetricRepPtr
Definition: cxDonutMetricRep.h:25
cx::DataMetricRep
Base class for all Data Metric reps.
Definition: cxDataMetricRep.h:39
cxDataMetricRep.h