NorMIT-nav  22.09
An IGT application
cxActiveImageProxy.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 CXACTIVEIMAGEPROXY_H_
13 #define CXACTIVEIMAGEPROXY_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include <QObject>
18 #include "cxForwardDeclarations.h"
19 
20 namespace cx
21 {
28 typedef boost::shared_ptr<class ActiveImageProxy> ActiveImageProxyPtr;
40 class cxResource_EXPORT ActiveImageProxy: public QObject
41 {
42 Q_OBJECT
43 public:
45  {
46  return ActiveImageProxyPtr(new ActiveImageProxy(activeData));
47  }
48  ActiveImageProxy(ActiveDataPtr activeData);
50 
51 signals:
52  void activeImageChanged(const QString& uid);
53 
54  // Forwarding active image signals
55  void transformChanged();
56  void propertiesChanged();
57  void landmarkRemoved(QString uid);
58  void landmarkAdded(QString uid);
59  void vtkImageDataChanged();
60  void transferFunctionsChanged();
61  void clipPlanesChanged();
62  void cropBoxChanged();
63 
64 private slots:
65  void activeImageChangedSlot(const QString&);
66 private:
67  ImagePtr mImage;
68  ActiveDataPtr mActiveData;
69 };
70 
74 }
75 
76 #endif /* CXACTIVEIMAGEPROXY_H_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::ActiveImageProxy::New
static ActiveImageProxyPtr New(ActiveDataPtr activeData)
Definition: cxActiveImageProxy.h:44
cx::ActiveImageProxyPtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
Definition: cxDataInterface.h:29
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
cx::ActiveImageProxy
Helper class for connection the active image.
Definition: cxActiveImageProxy.h:40