CustusX  20.03-rc1
An IGT application
cxDataRepContainer.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 CXDATAREPCONTAINER_H
13 #define CXDATAREPCONTAINER_H
14 
15 #include "org_custusx_core_view_Export.h"
16 
17 #include "cxForwardDeclarations.h"
18 #include "cxSettings.h"
19 
20 namespace cx
21 {
22 typedef boost::shared_ptr<class SphereMetric> SphereMetricPtr;
23 
31 typedef boost::shared_ptr<class DataRepContainer> DataRepContainerPtr;
35 class org_custusx_core_view_EXPORT DataRepContainer
36 {
37 public:
38  void setSliceProxy(SliceProxyPtr sliceProxy);
39  void setView(ViewPtr view);
40 
41  void updateSettings();
42 
43  void addData(DataPtr data);
44  void removeData(QString uid);
45 private:
46  virtual void meshAdded(MeshPtr mesh);
47  virtual void pointMetricAdded(PointMetricPtr mesh);
48  void updateSettings(RepPtr rep);
49  void sphereMetricAdded(SphereMetricPtr mesh);
50 
51  SliceProxyPtr mSliceProxy;
52  ViewPtr mView;
53 
54  typedef std::map<QString, RepPtr> RepMap;
55  RepMap mDataReps;
56 };
57 
58 
59 } // namespace cx
60 
61 #endif // CXDATAREPCONTAINER_H
std::map< QString, RepPtr > RepMap
Definition: cxRepManager.h:30
boost::shared_ptr< class SliceProxy > SliceProxyPtr
boost::shared_ptr< class SphereMetric > SphereMetricPtr
boost::shared_ptr< class DataRepContainer > DataRepContainerPtr
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class Mesh > MeshPtr
boost::shared_ptr< class Rep > RepPtr
Definition: cxRepManager.h:24
Namespace for all CustusX production code.
boost::shared_ptr< class PointMetric > PointMetricPtr