NorMIT-nav  22.09
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
cx::RepMap
std::map< QString, RepPtr > RepMap
Definition: cxRepManager.h:30
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::SliceProxyPtr
boost::shared_ptr< class SliceProxy > SliceProxyPtr
Definition: cxForwardDeclarations.h:96
cx::SphereMetricPtr
boost::shared_ptr< class SphereMetric > SphereMetricPtr
Definition: cxDataRepContainer.h:22
cx::DataRepContainerPtr
boost::shared_ptr< class DataRepContainer > DataRepContainerPtr
Definition: cxDataRepContainer.h:31
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cx::RepPtr
boost::shared_ptr< class Rep > RepPtr
Definition: cxRepManager.h:24
cx::DataRepContainer
Definition: cxDataRepContainer.h:35
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cxSettings.h
cx::ViewPtr
boost::shared_ptr< class View > ViewPtr
Definition: cxForwardDeclarations.h:110
cx::DistanceMetricPtr
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
Definition: cxForwardDeclarations.h:67
cx::PointMetricPtr
boost::shared_ptr< class PointMetric > PointMetricPtr
Definition: cxForwardDeclarations.h:84