Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxProbeConfigWidget.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 CXPROBECONFIGWIDGET_H_
13 #define CXPROBECONFIGWIDGET_H_
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include "cxBaseWidget.h"
18 #include "cxBoundingBoxWidget.h"
19 #include "cxVector3DProperty.h"
20 #include "cxDoubleProperty.h"
21 
22 namespace cx
23 {
24 typedef boost::shared_ptr<class VisServices> VisServicesPtr;
25 typedef boost::shared_ptr<class StringPropertyActiveProbeConfiguration> StringPropertyActiveProbeConfigurationPtr;
26 
35 class cxResourceWidgets_EXPORT ProbeConfigWidget : public BaseWidget
36 {
37  Q_OBJECT
38 public:
39  ProbeConfigWidget(VisServicesPtr services, QWidget* parent=NULL);
40  virtual ~ProbeConfigWidget();
41  QWidget* getActiveProbeConfigWidget() { return mActiveProbeConfigWidget; }
42 
43 private slots:
44  void activeProbeConfigurationChangedSlot();
45  void savePresetSlot();
46  void deletePresetSlot();
47  void guiImageSettingsChanged();
48  void guiProbeSectorChanged();
49  void guiOriginSettingsChanged();
50  void syncBoxToSectorChanged();
51 
52 private:
53  VisServicesPtr mServices;
54  QWidget* mActiveProbeConfigWidget;
55  BoundingBoxWidget* mBBWidget;
57  SliderRangeGroupWidget* mDepthWidget;
58  DoublePropertyPtr mWidth;
59  QCheckBox* mSyncBoxToSector;
60 
61  StringPropertyActiveProbeConfigurationPtr mActiveProbeConfig;
62  QString mLastKnownProbeConfigName;
63  bool mUpdating;
64 };
65 
66 }
67 
68 #endif /* CXPROBECONFIGWIDGET_H_ */
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
QWidget * getActiveProbeConfigWidget()
Widget that displays/edits a probe configuration.
Widget displays/edits a BoundingBox3D.
boost::shared_ptr< Vector3DPropertyBase > Vector3DPropertyBasePtr
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
boost::shared_ptr< class StringPropertyActiveProbeConfiguration > StringPropertyActiveProbeConfigurationPtr
Namespace for all CustusX production code.