21#ifndef __qSlicerScriptedFileReader_h
22#define __qSlicerScriptedFileReader_h
26#include "qSlicerBaseQTCoreExport.h"
33class qSlicerScriptedFileReaderPrivate;
53 bool setPythonSource(
const QString& filePath,
const QString& className = QLatin1String(
""),
bool missingClassIsExpected =
true);
93 QScopedPointer<qSlicerScriptedFileReaderPrivate>
d_ptr;
virtual void setLoadedNodes(const QStringList &nodes)
qSlicerFileReader(QObject *parent=nullptr)
virtual Q_INVOKABLE QStringList loadedNodes() const
QScopedPointer< qSlicerScriptedFileReaderPrivate > d_ptr
Q_INVOKABLE PyObject * self() const
Convenience method allowing to retrieve the associated scripted instance.
QStringList loadedNodes
This property allows the reader to report back what nodes it was able to load.
bool canLoadFile(const QString &file) const override
~qSlicerScriptedFileReader() override
qSlicerScriptedFileReader(QObject *parent=nullptr)
bool load(const qSlicerIO::IOProperties &properties) override
QString pythonSource() const
double canLoadFileConfidence(const QString &file) const override
bool setPythonSource(const QString &filePath, const QString &className=QLatin1String(""), bool missingClassIsExpected=true)
IOFileType fileType() const override
QStringList extensions() const override
QString description() const override
QStringList loadedNodes() const override
void setLoadedNodes(const QStringList &nodes) override
qSlicerFileReader Superclass