Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
34 : public ctkSettingsPanel
35{
36 Q_OBJECT
37 QVTK_OBJECT
44 Q_PROPERTY(QString gpuMemory READ gpuMemory WRITE setGPUMemory NOTIFY gpuMemoryChanged)
45
46public:
48 typedef ctkSettingsPanel Superclass;
49
51 explicit qSlicerVolumeRenderingSettingsPanel(QWidget* parent = nullptr);
52
55
60
61 QString defaultRenderingMethod()const;
62 QString defaultQuality()const;
66 QString gpuMemory()const;
67
68public slots:
69 void setDefaultRenderingMethod(const QString& method);
70 void setDefaultQuality(const QString& quality);
71 void setDefaultInteractiveSpeed(int interactiveSpeed);
72 void setDefaultSurfaceSmoothing(bool surfaceSmoothing);
74 void setGPUMemory(const QString& gpuMemory);
75
76signals:
77 void defaultRenderingMethodChanged(const QString&);
78 void defaultQualityChanged(const QString&);
82 void gpuMemoryChanged(QString);
83
84protected slots:
94
95protected:
96 QScopedPointer<qSlicerVolumeRenderingSettingsPanelPrivate> d_ptr;
97
98private:
99 Q_DECLARE_PRIVATE(qSlicerVolumeRenderingSettingsPanel);
101};
102
103#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)