Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerNodeWriterOptionsWidget.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 __qSlicerNodeWriterOptionsWidget_h
22 #define __qSlicerNodeWriterOptionsWidget_h
23 
26 class qSlicerNodeWriterOptionsWidgetPrivate;
27 
28 class Q_SLICER_BASE_QTGUI_EXPORT qSlicerNodeWriterOptionsWidget
30 {
31  Q_OBJECT
33  Q_PROPERTY(bool showUseCompression READ showUseCompression WRITE setShowUseCompression)
34 
35 public:
37  explicit qSlicerNodeWriterOptionsWidget(QWidget* parent = nullptr);
39 
40  bool showUseCompression() const;
41  void setShowUseCompression(bool show);
42 
43  bool isValid()const override;
44 
45 public slots:
46  void setObject(vtkObject* object) override;
47 
48 protected slots:
49  virtual void setUseCompression(bool use);
50  virtual void setCompressionParameter(int index);
51  virtual void setCompressionParameter(QString parameter);
52 
53 protected:
54  qSlicerNodeWriterOptionsWidget(qSlicerNodeWriterOptionsWidgetPrivate* pimpl,
55  QWidget* parent);
56 
57 private:
59 };
60 
61 #endif
virtual void setObject(vtkObject *object)
Set the object to write (typically a scene or a MRML node)
QScopedPointer< qSlicerIOOptionsPrivate > d_ptr
qSlicerFileWriterOptionsWidget Superclass
Q_DECLARE_PRIVATE_D(qGetPtrHelper(qSlicerIOOptions::d_ptr), qSlicerIOOptions)
Base class for all the Writer Options widget.
bool isValid() const override