NorMIT-nav  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);
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
cx::SpaceListenerPtr
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
Definition: cxAxisConnector.h:23
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cx::AxisConnector::mRep
AxesRepPtr mRep
axis
Definition: cxAxisConnector.h:40
cx::AxisConnectorPtr
boost::shared_ptr< class AxisConnector > AxisConnectorPtr
Definition: cxAxisConnector.h:49
cx::AxisConnector::mListener
SpaceListenerPtr mListener
Definition: cxAxisConnector.h:41
cxCoordinateSystemHelpers.h
cx::AxisConnector
Definition: cxAxisConnector.h:33
cx::AxesRepPtr
boost::shared_ptr< class AxesRep > AxesRepPtr
Definition: cxForwardDeclarations.h:63
cx::ToolPtr
boost::shared_ptr< class Tool > ToolPtr
Definition: cxVideoConnectionWidget.h:43
cx::SpaceProviderPtr
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
Definition: cxLogicManager.h:23
cx::CoordinateSystem
Identification of a Coordinate system.
Definition: cxCoordinateSystemHelpers.h:31