Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerVolumeRenderingSettingsPanel.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerVolumeRenderingSettingsPanel_h
22 #define __qSlicerVolumeRenderingSettingsPanel_h
23 
24 // CTK includes
25 #include <ctkVTKObject.h>
26 #include <ctkSettingsPanel.h>
27 
28 // VolumeRendering includes
29 #include "qSlicerVolumeRenderingModuleExport.h"
30 class qSlicerVolumeRenderingSettingsPanelPrivate;
32 
33 class Q_SLICER_QTMODULES_VOLUMERENDERING_EXPORT qSlicerVolumeRenderingSettingsPanel
34  : public ctkSettingsPanel
35 {
36  Q_OBJECT
37  QVTK_OBJECT
38  Q_PROPERTY(int gpuMemory READ gpuMemory WRITE setGPUMemory NOTIFY gpuMemoryChanged)
39  Q_PROPERTY(QString defaultRenderingMethod READ defaultRenderingMethod WRITE setDefaultRenderingMethod NOTIFY defaultRenderingMethodChanged)
40 public:
42  typedef ctkSettingsPanel Superclass;
43 
45  explicit qSlicerVolumeRenderingSettingsPanel(QWidget* parent = 0);
46 
49 
52  void setVolumeRenderingLogic(vtkSlicerVolumeRenderingLogic* logic);
53  vtkSlicerVolumeRenderingLogic* volumeRenderingLogic()const;
54 
55  int gpuMemory()const;
56  void setGPUMemory(int gpuMemory);
57 
58  QString defaultRenderingMethod()const;
59 public slots:
60  void setDefaultRenderingMethod(const QString& method);
61 
62 signals:
63  void gpuMemoryChanged(int);
64  void defaultRenderingMethodChanged(const QString&);
65 
66 protected slots:
67  void onVolumeRenderingLogicModified();
68  void onGPUMemoryChanged();
69  void onDefaultRenderingMethodChanged(int);
70  void updateVolumeRenderingLogicDefaultRenderingMethod();
71 
72 protected:
73  QScopedPointer<qSlicerVolumeRenderingSettingsPanelPrivate> d_ptr;
74 
75 private:
76  Q_DECLARE_PRIVATE(qSlicerVolumeRenderingSettingsPanel);
77  Q_DISABLE_COPY(qSlicerVolumeRenderingSettingsPanel);
78 };
79 
80 #endif
ctkSettingsPanel Superclass
Superclass typedef.