CustusX  22.04-rc5
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_ */
QCheckBox * mSmartRenderCheckBox
QCheckBox * mOptimizedViewsCheckBox
DoublePropertyPtr mStillUpdateRate
QSpinBox * mRenderingIntervalSpinBox
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
StringPropertyPtr m3DVisualizer
QVBoxLayout * mTopLayout
QGridLayout * mMainLayout
QCheckBox * mLinearInterpolationIn2DCheckBox
boost::shared_ptr< class StringProperty > StringPropertyPtr
DoublePropertyPtr mMaxRenderSize
QCheckBox * mGPU3DDepthPeelingCheckBox
QLabel * mRenderingRateLabel
QCheckBox * mShadingCheckBox
Configure performance tab in preferences dialog.
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
QCheckBox * mGPU2DRenderCheckBox
Namespace for all CustusX production code.