Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxUSAcqusitionWidget.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 CXUSACQUSITIONWIDGET_H_
13 #define CXUSACQUSITIONWIDGET_H_
14 
15 #include "cxBaseWidget.h"
16 #include "cxAcquisitionService.h"
17 #include "org_custusx_acquisition_Export.h"
18 
19 
20 namespace cx
21 {
22 typedef boost::shared_ptr<class UsReconstructionService> UsReconstructionServicePtr;
23 typedef boost::shared_ptr<class ThreadedTimedReconstructer> ThreadedTimedReconstructerPtr;
24 typedef boost::shared_ptr<class VisServices> VisServicesPtr;
25 typedef boost::shared_ptr<class StringPropertyActiveProbeConfiguration> StringPropertyActiveProbeConfigurationPtr;
27 class DisplayTimerWidget;
29 
44 class org_custusx_acquisition_EXPORT USAcqusitionWidget : public BaseWidget
45 {
46  Q_OBJECT
47 public:
48  USAcqusitionWidget(AcquisitionServicePtr acquisitionService, VisServicesPtr services, UsReconstructionServicePtr usReconstructionService, QWidget* parent);
49  virtual ~USAcqusitionWidget();
50 
51 private slots:
52  void reconstructStartedSlot();
53  void reconstructFinishedSlot();
54  void toggleDetailsSlot();
55  void acquisitionDataReadySlot();
56  void reconstructAboutToStartSlot();
57  void acquisitionStateChangedSlot();
58 
59  void recordStarted();
60  void recordStopped();
61  void recordCancelled();
62 
63 private:
64  AcquisitionServicePtr mAcquisitionService;
65  QVBoxLayout* mLayout;
66  RecordSessionWidget* mRecordSessionWidget;
67 
68  UsReconstructionServicePtr mUsReconstructionService;
69  VisServicesPtr mServices;
70  TimedAlgorithmProgressBar* mTimedAlgorithmProgressBar;
71  DisplayTimerWidget* mDisplayTimerWidget;
72 
73  QWidget* mOptionsWidget;
74  QWidget* createOptionsWidget();
75  QWidget* wrapVerticalStretch(QWidget* input);
76  QWidget* wrapGroupBox(QWidget* input, QString name, QString tip);
77 };
78 
79 
83 }//namespace cx
84 
85 #endif /* CXUSACQUSITIONWIDGET_H_ */
boost::shared_ptr< class UsReconstructionService > UsReconstructionServicePtr
boost::shared_ptr< class AcquisitionService > AcquisitionServicePtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
boost::shared_ptr< class ThreadedTimedReconstructer > ThreadedTimedReconstructerPtr
Show progress for a TimedBaseAlgorithm.
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
boost::shared_ptr< class StringPropertyActiveProbeConfiguration > StringPropertyActiveProbeConfigurationPtr
A second counter widget.
Namespace for all CustusX production code.