Fraxinus  18.10
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:
44  static ActiveImageProxyPtr New(ActiveDataPtr activeData)
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_ */
Helper class for connection the active image.By listening to this class, you will always listen to th...
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
static ActiveImageProxyPtr New(ActiveDataPtr activeData)
Namespace for all CustusX production code.