CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxSpaceListener.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 CXSPACELISTENER_H
12 #define CXSPACELISTENER_H
13 
14 #include "cxResourceExport.h"
15 
17 #include <QObject>
18 
19 namespace cx
20 {
21 
30 class cxResource_EXPORT SpaceListener: public QObject
31 {
32 Q_OBJECT
33 
34 public:
35  virtual ~SpaceListener() {}
36  virtual void setSpace(CoordinateSystem space) = 0;
37  virtual CoordinateSystem getSpace() const = 0;
38 signals:
39  void changed();
40 };
41 typedef boost::shared_ptr<SpaceListener> SpaceListenerPtr;
42 
43 } // namespace cx
44 
45 #endif // CXSPACELISTENER_H
Identification of a Coordinate system.
Class that listens to changes in a coordinate system, and emits a signal if that system changes...
virtual ~SpaceListener()
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
Namespace for all CustusX production code.