NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxPreferenceTab.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 CXPREFERENCETAB_H_
13 #define CXPREFERENCETAB_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include "cxDoubleProperty.h"
18 #include "cxStringProperty.h"
19 
20 class QLabel;
21 class QSpinBox;
22 class QCheckBox;
23 class QGridLayout;
24 class QVBoxLayout;
25 
26 namespace cx
27 {
28 typedef boost::shared_ptr<class VisServices> VisServicesPtr;
29 
30 class cxGui_EXPORT PreferenceTab : public QWidget
31 {
32  Q_OBJECT
33 public:
34  PreferenceTab(QWidget *parent = 0);
35 
36  virtual void init() = 0;
37 
38 public slots:
39  virtual void saveParametersSlot() = 0;
40 
41 signals:
42  void savedParameters();
43 
44 protected:
45  QVBoxLayout* mTopLayout;
46 };
47 
56 class cxGui_EXPORT PerformanceTab : public PreferenceTab
57 {
58  Q_OBJECT
59 
60 public:
61  PerformanceTab(QWidget *parent = 0);
62  void init();
63 
64 public slots:
65  void saveParametersSlot();
66 
67 protected:
75  QCheckBox* mShadingCheckBox;
76  QGridLayout* mMainLayout;
80 
81 private slots:
82  void renderingIntervalSlot(int interval);
83  static QStringList getAvailableVisualizers();
84  static std::map<QString, QString> getAvailableVisualizerDisplayNames();
85 };
86 
87 } /* namespace cx */
88 #endif /* CXPREFERENCETAB_H_ */
cx::PerformanceTab::mOptimizedViewsCheckBox
QCheckBox * mOptimizedViewsCheckBox
Definition: cxPreferenceTab.h:73
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::PreferenceTab
Definition: cxPreferenceTab.h:30
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
cx::StringPropertyPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
Definition: cxVideoConnectionWidget.h:42
cxDoubleProperty.h
cx::PerformanceTab::mMainLayout
QGridLayout * mMainLayout
Definition: cxPreferenceTab.h:76
cx::PerformanceTab::mStillUpdateRate
DoublePropertyPtr mStillUpdateRate
Definition: cxPreferenceTab.h:78
cx::PerformanceTab::m3DVisualizer
StringPropertyPtr m3DVisualizer
Definition: cxPreferenceTab.h:79
cx::PerformanceTab::mMaxRenderSize
DoublePropertyPtr mMaxRenderSize
Definition: cxPreferenceTab.h:77
cx::PerformanceTab
Configure performance tab in preferences dialog.
Definition: cxPreferenceTab.h:56
cx::DoublePropertyPtr
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
Definition: cxReconstructionMethodService.h:33
cx::PreferenceTab::mTopLayout
QVBoxLayout * mTopLayout
Definition: cxPreferenceTab.h:45
cx::PerformanceTab::mGPU3DDepthPeelingCheckBox
QCheckBox * mGPU3DDepthPeelingCheckBox
Definition: cxPreferenceTab.h:74
cx::PerformanceTab::mLinearInterpolationIn2DCheckBox
QCheckBox * mLinearInterpolationIn2DCheckBox
Definition: cxPreferenceTab.h:72
cx::PerformanceTab::mRenderingRateLabel
QLabel * mRenderingRateLabel
Definition: cxPreferenceTab.h:69
cxStringProperty.h
cx::PerformanceTab::mShadingCheckBox
QCheckBox * mShadingCheckBox
Definition: cxPreferenceTab.h:75
cx::PerformanceTab::mGPU2DRenderCheckBox
QCheckBox * mGPU2DRenderCheckBox
Definition: cxPreferenceTab.h:71
cx::PerformanceTab::mSmartRenderCheckBox
QCheckBox * mSmartRenderCheckBox
Definition: cxPreferenceTab.h:70
cx::PerformanceTab::mRenderingIntervalSpinBox
QSpinBox * mRenderingIntervalSpinBox
Definition: cxPreferenceTab.h:68