CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxSpaceListenerImpl.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 #ifndef CXSPACELISTENERIMPL_H
12 #define CXSPACELISTENERIMPL_H
13 
14 #include "cxResourceExport.h"
15 
16 #include "cxSpaceListener.h"
17 
18 namespace cx
19 {
20 typedef boost::shared_ptr<class ActiveToolProxy> ActiveToolProxyPtr;
21 
22 
30 class cxResource_EXPORT SpaceListenerImpl: public SpaceListener
31 {
32 Q_OBJECT
33 
34 public:
35  SpaceListenerImpl(TrackingServicePtr trackingService, PatientModelServicePtr dataManager);
36 // SpaceListenerImpl(CoordinateSystem space);
37  virtual ~SpaceListenerImpl();
38  void setSpace(CoordinateSystem space);
39  CoordinateSystem getSpace() const;
40 //signals:
41 // void changed();
42 private slots:
43  void reconnect();
44 private:
45  void doConnect();
46  void doDisconnect();
47  CoordinateSystem mSpace;
48 
49  TrackingServicePtr mTrackingService;
50  PatientModelServicePtr mDataManager;
51  ActiveToolProxyPtr mActiveTool;
52 };
53 
54 } // namespace cx
55 
56 
57 #endif // CXSPACELISTENERIMPL_H
boost::shared_ptr< class TrackingService > TrackingServicePtr
Class that listens to changes in a coordinate system, and emits a signal if that system changes...
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Identification of a Coordinate system.
boost::shared_ptr< class ActiveToolProxy > ActiveToolProxyPtr
Definition: cxStatusBar.h:32
Class that listens to changes in a coordinate system, and emits a signal if that system changes...
Namespace for all CustusX production code.