Utility class that is ready to use for most of the nodes.
More...
#include <Base/QTGUI/qSlicerNodeWriter.h>
|
QScopedPointer< qSlicerNodeWriterPrivate > | d_ptr |
|
QScopedPointer< qSlicerFileWriterPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
Utility class that is ready to use for most of the nodes.
Definition at line 31 of file qSlicerNodeWriter.h.
◆ Superclass
◆ supportUseCompression
bool qSlicerNodeWriter::supportUseCompression |
|
readwrite |
Some storage nodes don't support the compression option.
Definition at line 36 of file qSlicerNodeWriter.h.
◆ qSlicerNodeWriter()
qSlicerNodeWriter::qSlicerNodeWriter |
( |
const QString & |
description, |
|
|
const qSlicerIO::IOFileType & |
fileType, |
|
|
const QStringList & |
nodeTags, |
|
|
bool |
useCompression, |
|
|
QObject * |
parent |
|
) |
| |
◆ ~qSlicerNodeWriter()
virtual qSlicerNodeWriter::~qSlicerNodeWriter |
( |
| ) |
|
|
virtual |
◆ canWriteObject()
virtual bool qSlicerNodeWriter::canWriteObject |
( |
vtkObject * |
object | ) |
const |
|
virtual |
Return true if the object is handled by the writer.
Reimplemented from qSlicerFileWriter.
◆ description()
virtual QString qSlicerNodeWriter::description |
( |
| ) |
const |
|
virtual |
Unique name of the reader/writer.
Implements qSlicerIO.
◆ extensions()
virtual QStringList qSlicerNodeWriter::extensions |
( |
vtkObject * |
object | ) |
const |
|
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)"
Implements qSlicerFileWriter.
◆ fileType()
virtual IOFileType qSlicerNodeWriter::fileType |
( |
| ) |
const |
|
virtual |
Multiple readers can share the same file type.
Implements qSlicerIO.
◆ getNodeByID()
virtual vtkMRMLNode* qSlicerNodeWriter::getNodeByID |
( |
const char * |
id | ) |
const |
|
virtual |
◆ nodeClassNames()
QStringList qSlicerNodeWriter::nodeClassNames |
( |
| ) |
const |
|
protected |
◆ options()
Return a qSlicerIONodeWriterOptionsWidget.
Reimplemented from qSlicerIO.
◆ setNodeClassNames()
void qSlicerNodeWriter::setNodeClassNames |
( |
const QStringList & |
nodeClassNames | ) |
|
|
protected |
◆ setSupportUseCompression()
void qSlicerNodeWriter::setSupportUseCompression |
( |
bool |
useCompression | ) |
|
◆ supportUseCompression()
bool qSlicerNodeWriter::supportUseCompression |
( |
| ) |
const |
◆ write()
Write the node referenced by "nodeID" into the "fileName" file. Optionally, "useCompression" can be specified. Return true on success, false otherwise. Create a storage node if the storable node doesn't have any.
Reimplemented from qSlicerFileWriter.
◆ d_ptr
QScopedPointer<qSlicerNodeWriterPrivate> qSlicerNodeWriter::d_ptr |
|
protected |
The documentation for this class was generated from the following file: