Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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"
30class qSlicerVolumeRenderingSettingsPanelPrivate;
32
33class Q_SLICER_QTMODULES_VOLUMERENDERING_EXPORT qSlicerVolumeRenderingSettingsPanel : public ctkSettingsPanel
34{
35 Q_OBJECT
36 QVTK_OBJECT
43 Q_PROPERTY(QString gpuMemory READ gpuMemory WRITE setGPUMemory NOTIFY gpuMemoryChanged)
44
45public:
47 typedef ctkSettingsPanel Superclass;
48
50 explicit qSlicerVolumeRenderingSettingsPanel(QWidget* parent = nullptr);
51
54
59
60 QString defaultRenderingMethod() const;
61 QString defaultQuality() const;
65 QString gpuMemory() const;
66
67public slots:
68 void setDefaultRenderingMethod(const QString& method);
69 void setDefaultQuality(const QString& quality);
70 void setDefaultInteractiveSpeed(int interactiveSpeed);
71 void setDefaultSurfaceSmoothing(bool surfaceSmoothing);
73 void setGPUMemory(const QString& gpuMemory);
74
75signals:
76 void defaultRenderingMethodChanged(const QString&);
77 void defaultQualityChanged(const QString&);
81 void gpuMemoryChanged(QString);
82
83protected slots:
93
94protected:
95 QScopedPointer<qSlicerVolumeRenderingSettingsPanelPrivate> d_ptr;
96
97private:
98 Q_DECLARE_PRIVATE(qSlicerVolumeRenderingSettingsPanel);
100};
101
102#endif
void setDefaultAutoReleaseGraphicsResources(bool autoRelease)
vtkSlicerVolumeRenderingLogic * volumeRenderingLogic() const
void defaultQualityChanged(const QString &)
void setDefaultRenderingMethod(const QString &method)
QScopedPointer< qSlicerVolumeRenderingSettingsPanelPrivate > d_ptr
void defaultAutoReleaseGraphicsResourcesChanged(bool)
void defaultRenderingMethodChanged(const QString &)
void setVolumeRenderingLogic(vtkSlicerVolumeRenderingLogic *logic)
void setDefaultQuality(const QString &quality)
void onDefaultAutoReleaseGraphicsResourcesChanged(bool)
qSlicerVolumeRenderingSettingsPanel(QWidget *parent=nullptr)
Constructor.
void setDefaultSurfaceSmoothing(bool surfaceSmoothing)
void setGPUMemory(const QString &gpuMemory)
void setDefaultInteractiveSpeed(int interactiveSpeed)