Fraxinus  2023.01.05-dev+develop.0da12
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  virtual void distanceMetricAdded(DistanceMetricPtr mesh);
49  void updateSettings(RepPtr rep);
50  void sphereMetricAdded(SphereMetricPtr mesh);
51 
52  SliceProxyPtr mSliceProxy;
53  ViewPtr mView;
54 
55  typedef std::map<QString, RepPtr> RepMap;
56  RepMap mDataReps;
57 };
58 
59 
60 } // namespace cx
61 
62 #endif // CXDATAREPCONTAINER_H
std::map< QString, RepPtr > RepMap
Definition: cxRepManager.h:30
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
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