21 #ifndef __qSlicerScriptedFileWriter_h 22 #define __qSlicerScriptedFileWriter_h 26 #include "qSlicerBaseQTCoreExport.h" 33 class qSlicerScriptedFileWriterPrivate;
41 Q_PROPERTY(QStringList writtenNodes READ writtenNodes WRITE setWrittenNodes)
48 QString pythonSource()
const;
52 bool setPythonSource(
const QString& newPythonSource,
const QString& className = QLatin1String(
""),
bool missingClassIsExpected =
true);
71 QStringList
extensions(vtkObject*
object)
const override;
79 void addWrittenNode(
const QString& writtenNode);
86 return Superclass::writtenNodes();
89 Superclass::setWrittenNodes(
nodes);
93 QScopedPointer<qSlicerScriptedFileWriterPrivate>
d_ptr;
virtual QStringList extensions(vtkObject *object) const =0
QStringList writtenNodes() const override
virtual bool write(const qSlicerIO::IOProperties &properties)
QScopedPointer< qSlicerFileWriterPrivate > d_ptr
void setWrittenNodes(const QStringList &nodes) override
virtual Q_INVOKABLE IOFileType fileType() const =0
Multiple readers can share the same file type.
virtual Q_INVOKABLE QString description() const =0
Unique name of the reader/writer.
qSlicerFileWriter Superclass
virtual bool canWriteObject(vtkObject *object) const
Return true if the object is handled by the writer.