CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxAxisConnector.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 CXAXISCONNECTOR_H
12 #define CXAXISCONNECTOR_H
13 
14 #include "org_custusx_core_view_Export.h"
15 
16 #include <QObject>
17 #include "cxForwardDeclarations.h"
19 
20 namespace cx
21 {
22 typedef boost::shared_ptr<class SpaceProvider> SpaceProviderPtr;
23 typedef boost::shared_ptr<class SpaceListener> SpaceListenerPtr;
24 
33 class org_custusx_core_view_EXPORT AxisConnector : public QObject
34 {
35  Q_OBJECT
36  public:
37  AxisConnector(CoordinateSystem space, SpaceProviderPtr spaceProvider);
38  void connectTo(ToolPtr tool);
39  void mergeWith(SpaceListenerPtr base);
41  SpaceListenerPtr mListener;
42  private slots:
43  void changedSlot();
44  private:
45  SpaceListenerPtr mBase;
46  ToolPtr mTool;
47  SpaceProviderPtr mSpaceProvider;
48 };
49 typedef boost::shared_ptr<class AxisConnector> AxisConnectorPtr;
50 
51 
52 } // namespace cx
53 
54 
55 
56 
57 #endif // CXAXISCONNECTOR_H
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
SpaceListenerPtr mListener
boost::shared_ptr< class AxesRep > AxesRepPtr
Identification of a Coordinate system.
boost::shared_ptr< class AxisConnector > AxisConnectorPtr
AxesRepPtr mRep
axis
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr