Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Base/QTCore/qSlicerFileWriter.h>
Public Member Functions | |
virtual bool | canWriteObject (vtkObject *object) const |
Return true if the object is handled by the writer. More... | |
virtual QStringList | extensions (vtkObject *object) const =0 |
qSlicerFileWriter (QObject *parent=nullptr) | |
virtual bool | write (const qSlicerIO::IOProperties &properties) |
virtual QStringList | writtenNodes () const |
~qSlicerFileWriter () override | |
Public Member Functions inherited from qSlicerIO | |
virtual Q_INVOKABLE QString | description () const =0 |
Unique name of the reader/writer. More... | |
virtual Q_INVOKABLE IOFileType | fileType () const =0 |
Multiple readers can share the same file type. More... | |
virtual Q_INVOKABLE qSlicerIOOptions * | options () const |
qSlicerIO (QObject *parent=nullptr) | |
Q_INVOKABLE vtkMRMLMessageCollection * | userMessages () const |
Additional warning or error messages occurred during IO operation. More... | |
~qSlicerIO () override | |
Public Member Functions inherited from qSlicerObject | |
vtkMRMLScene * | mrmlScene () const |
Return a pointer on the MRML scene. More... | |
qSlicerObject () | |
virtual void | setMRMLScene (vtkMRMLScene *) |
Set the current MRML scene to the widget. More... | |
virtual | ~qSlicerObject () |
Protected Member Functions | |
virtual void | setWrittenNodes (const QStringList &nodes) |
Protected Attributes | |
QScopedPointer< qSlicerFileWriterPrivate > | d_ptr |
Protected Attributes inherited from qSlicerIO | |
QScopedPointer< qSlicerIOPrivate > | d_ptr |
Protected Attributes inherited from qSlicerObject | |
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
Additional Inherited Members | |
Public Types inherited from qSlicerIO | |
typedef QString | IOFileType |
typedef QVariantMap | IOProperties |
typedef QObject | Superclass |
Definition at line 30 of file qSlicerFileWriter.h.
qSlicerFileWriter::qSlicerFileWriter | ( | QObject * | parent = nullptr | ) |
|
override |
|
virtual |
Return true if the object is handled by the writer.
Reimplemented in qSlicerScriptedFileWriter, qSlicerNodeWriter, and qSlicerSceneWriter.
|
pure virtual |
Return a list of the supported extensions for a particuliar object. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
Implemented in qSlicerScriptedFileWriter, qSlicerNodeWriter, qSlicerSceneWriter, and qSlicerMarkupsWriter.
|
protectedvirtual |
Reimplemented in qSlicerScriptedFileWriter.
|
virtual |
Write the node identified by nodeID into the fileName file. Returns true on success Properties availables:
Reimplemented in qSlicerScriptedFileWriter, qSlicerNodeWriter, qSlicerSceneWriter, qSlicerSegmentationsNodeWriter, and qSlicerMarkupsWriter.
|
virtual |
Return the list of saved nodes from writing the file(s) in write(). Empty list if write() failed
Reimplemented in qSlicerScriptedFileWriter.
|
protected |
Definition at line 65 of file qSlicerFileWriter.h.