CustusX  20.03-rc1
An IGT application
cxRecordTrackingWidget.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 CXRECORDTRACKINGWIDGET_H
12 #define CXRECORDTRACKINGWIDGET_H
13 
14 #include <QPushButton>
15 #include <QDomElement>
16 #include "cxForwardDeclarations.h"
17 #include "cxXmlOptionItem.h"
18 #include "cxTool.h"
19 #include "cxVisServices.h"
20 #include "org_custusx_acquisition_Export.h"
21 
22 namespace cx
23 {
24 class WidgetObscuredListener;
25 typedef boost::shared_ptr<class Acquisition> AcquisitionPtr;
26 typedef boost::shared_ptr<class StringPropertySelectMesh> StringPropertySelectMeshPtr;
27 typedef boost::shared_ptr<class ToolRep3D> ToolRep3DPtr;
28 class RecordSessionWidget;
29 typedef boost::shared_ptr<class AcquisitionData> AcquisitionDataPtr;
30 //typedef boost::shared_ptr<class BronchoscopyRegistration> BronchoscopyRegistrationPtr;
31 typedef std::map<QString, ToolPtr> ToolMap;
32 typedef boost::shared_ptr<class StringPropertySelectTool> StringPropertySelectToolPtr;
33 typedef boost::shared_ptr<class SelectRecordSession> SelectRecordSessionPtr;
34 
42 class org_custusx_acquisition_EXPORT RecordTrackingWidget: public QWidget
43 {
44  Q_OBJECT
45 
46 public:
48  AcquisitionServicePtr acquisitionService,
49  VisServicesPtr services,
50  QString category,
51  QWidget *parent);
52  virtual ~RecordTrackingWidget() {}
53 
54  ToolPtr getSuitableRecordingTool();
55  TimedTransformMap getRecordedTrackerData_prMt();
56  StringPropertyPtr getSessionSelector();
57  SelectRecordSessionPtr getSelectRecordSession() { return mSelectRecordSession; }
58  void displayToolSelector(bool on);
59 
60 signals:
61  void acquisitionCompleted();
62 
63 private slots:
64  void acquisitionStarted();
65  void acquisitionStopped();
66  void acquisitionCancelled();
67  void obscuredSlot(bool obscured);
68 
69 private:
70  VisServicesPtr mServices;
71  AcquisitionServicePtr mAcquisitionService;
72  XmlOptionFile mOptions;
73 
74  RecordSessionWidget* mRecordSessionWidget;
75  QWidget* mToolSelectorWidget;
76  ToolPtr mRecordingTool;
77  SelectRecordSessionPtr mSelectRecordSession;
78  StringPropertySelectToolPtr mToolSelector;
79  BoolPropertyPtr mMergeWithExistingSession;
80 
81  boost::shared_ptr<WidgetObscuredListener> mObscuredListener;
82 
83  ToolRep3DPtr getToolRepIn3DView();
84  void onToolChanged();
85  void onMergeChanged();
86 };
87 
88 } //namespace cx
89 
90 #endif // CXRECORDTRACKINGWIDGET_H
boost::shared_ptr< class AcquisitionService > AcquisitionServicePtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
boost::shared_ptr< class StringPropertySelectTool > StringPropertySelectToolPtr
boost::shared_ptr< class Acquisition > AcquisitionPtr
boost::shared_ptr< class AcquisitionData > AcquisitionDataPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
SelectRecordSessionPtr getSelectRecordSession()
std::map< QString, ToolPtr > ToolMap
boost::shared_ptr< class SelectRecordSession > SelectRecordSessionPtr
boost::shared_ptr< class ToolRep3D > ToolRep3DPtr
boost::shared_ptr< class BoolProperty > BoolPropertyPtr
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
Helper class for xml files used to store ssc/cx data.
std::map< double, Transform3D > TimedTransformMap
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr