#include <Base/QTCore/qSlicerVTKFileWriter.h>
|
| QScopedPointer< qSlicerVTKFileWriterPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerFileWriterPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerIOPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerObjectPrivate > | d_ptr |
| |
Qt interface of a VTK-based file writer: all methods are delegated to the VTK-based writer (see fileWriter()). Subclasses may override methods (for example, canWriteObject() or write()).
See https://slicer.readthedocs.io/en/latest/developer_guide/mrml_overview.html#qt-interface
Definition at line 32 of file qSlicerVTKFileWriter.h.
◆ Superclass
◆ qSlicerVTKFileWriter()
| qSlicerVTKFileWriter::qSlicerVTKFileWriter |
( |
vtkMRMLFileWriter * | writer, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ ~qSlicerVTKFileWriter()
| qSlicerVTKFileWriter::~qSlicerVTKFileWriter |
( |
| ) |
|
|
override |
◆ canWriteObject()
| bool qSlicerVTKFileWriter::canWriteObject |
( |
vtkObject * | object | ) |
const |
|
overridevirtual |
Return true if the object is handled by the writer. This method is kept for backward compatibility, writers should override canWriteObjectConfidence method instead of this method to indicate if they can write the object.
Reimplemented from qSlicerFileWriter.
◆ canWriteObjectConfidence()
| double qSlicerVTKFileWriter::canWriteObjectConfidence |
( |
vtkObject * | object | ) |
const |
|
overridevirtual |
◆ description()
| QString qSlicerVTKFileWriter::description |
( |
| ) |
const |
|
overridevirtual |
Unique name of the reader/writer.
Implements qSlicerIO.
◆ extensions()
| QStringList qSlicerVTKFileWriter::extensions |
( |
vtkObject * | object | ) |
const |
|
overridevirtual |
Return a list of the supported extensions for a particular object. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
Implements qSlicerFileWriter.
◆ fileType()
| IOFileType qSlicerVTKFileWriter::fileType |
( |
| ) |
const |
|
overridevirtual |
Multiple readers can share the same file type.
Implements qSlicerIO.
◆ fileWriter()
VTK-based writer that performs all the tasks of this class.
◆ ioHandler()
◆ setFileWriter()
Set the VTK-based writer that performs all the tasks of this class. The current scene is set in the writer. It must be called from the constructor of the class that delegates all tasks to the VTK-based writer (the class of the object is recorded to detect subclasses that may override methods).
◆ setMRMLScene()
| void qSlicerVTKFileWriter::setMRMLScene |
( |
vtkMRMLScene * | scene | ) |
|
|
overridevirtual |
Set the scene of this object and of the VTK-based writer.
Reimplemented from qSlicerIO.
◆ setWrittenNodes()
| void qSlicerVTKFileWriter::setWrittenNodes |
( |
const QStringList & | nodes | ) |
|
|
overrideprotectedvirtual |
◆ userMessages()
Additional warning or error messages occurred during IO operation.
Reimplemented from qSlicerIO.
◆ write()
Write the node identified by nodeID into the fileName file. Returns true on success Properties available:
- QString nodeID
- QString fileName
- QString fileFormat
- bool compressed ...
Reimplemented from qSlicerFileWriter.
◆ writtenNodes()
| QStringList qSlicerVTKFileWriter::writtenNodes |
( |
| ) |
const |
|
overridevirtual |
◆ d_ptr
| QScopedPointer<qSlicerVTKFileWriterPrivate> qSlicerVTKFileWriter::d_ptr |
|
protected |
The documentation for this class was generated from the following file: