NorMIT-nav  22.09
An IGT application
cxManualToolAdapter.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 CXMANUALTOOLADAPTER_H_
13 #define CXMANUALTOOLADAPTER_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxManualTool.h"
18 
19 namespace cx
20 {
21 
34 class cxResource_EXPORT ManualToolAdapter : public ManualTool
35 {
36  Q_OBJECT
37 public:
38  explicit ManualToolAdapter(QString uid);
39  explicit ManualToolAdapter(ToolPtr base);
40  virtual ~ManualToolAdapter();
41 
42  virtual std::set<Type> getTypes() const;
43  virtual vtkPolyDataPtr getGraphicsPolyData() const;
44  virtual bool isCalibrated() const;
45  virtual ProbePtr getProbe() const;
46 
47  virtual Transform3D getCalibration_sMt() const;
48  virtual std::map<QString, Vector3D> getReferencePoints() const;
49 
50  void setBase(ToolPtr base);
51 
52  virtual double getTooltipOffset() const;
53  virtual void setTooltipOffset(double val);
54 
55  void startEmittingContinuousPositions(int msecBetweenPositions);
56 private slots:
57  void emitPosition();
58 private:
59  ToolPtr mBase;
60 };
61 
62 typedef boost::shared_ptr<ManualToolAdapter> ManualToolAdapterPtr;
63 
64 }
65 
66 #endif /* CXMANUALTOOLADAPTER_H_ */
cx::ManualToolAdapter
Adapter class for ManualTool.
Definition: cxManualToolAdapter.h:34
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::ManualTool
A manual tool that is unconnected to any hardware.
Definition: cxManualTool.h:36
cxManualTool.h
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::ManualToolAdapterPtr
boost::shared_ptr< class ManualToolAdapter > ManualToolAdapterPtr
Definition: cxTrackingImplService.h:33
cx::vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxCenterlineRegistration.h:42
cx::ToolPtr
boost::shared_ptr< class Tool > ToolPtr
Definition: cxVideoConnectionWidget.h:43
cx::ProbePtr
boost::shared_ptr< Probe > ProbePtr
Definition: cxProbe.h:72