21 #ifndef __qSlicerCoreIOManager_h 22 #define __qSlicerCoreIOManager_h 31 #include <QVariantMap> 38 #include "qSlicerBaseQTCoreExport.h" 46 class qSlicerCoreIOManagerPrivate;
52 Q_PROPERTY(QString defaultSceneFileType READ defaultSceneFileType WRITE setDefaultSceneFileType)
66 Q_INVOKABLE QStringList fileDescriptions(
const QString& file)
const;
70 Q_INVOKABLE
qSlicerIO::IOFileType fileWriterFileType(vtkObject*
object,
const QString& format=QString())
const;
73 Q_INVOKABLE QStringList fileWriterExtensions(vtkObject*
object)
const;
76 Q_INVOKABLE QStringList allWritableFileExtensions()
const;
79 Q_INVOKABLE QStringList allReadableFileExtensions()
const;
83 qSlicerIOOptions* fileWriterOptions(vtkObject*
object,
const QString& extension)
const;
96 Q_INVOKABLE
static QRegExp fileNameRegExp(
const QString& extension = QString());
99 Q_INVOKABLE
static QString forceFileNameValidCharacters(
const QString& filename);
105 Q_INVOKABLE QString extractKnownExtension(
const QString& fileName, vtkObject*
object);
111 Q_INVOKABLE QString stripKnownExtension(
const QString& fileName, vtkObject*
object);
126 vtkCollection* loadedNodes =
nullptr,
133 vtkCollection* loadedNodes =
nullptr,
148 Q_INVOKABLE
bool loadScene(
const QString& fileName,
bool clear =
true,
179 Q_INVOKABLE
bool exportNodes(
181 bool hardenTransforms,
189 Q_INVOKABLE
bool exportNodes(
190 const QStringList& nodeIDs,
191 const QStringList& fileNames,
193 bool hardenTransforms,
202 Q_INVOKABLE
bool saveScene(
const QString& fileName, QImage screenShot,
211 Q_INVOKABLE
void addDefaultStorageNodes();
223 Q_INVOKABLE
void emitNewFileLoaded(
const QVariantMap& loadedFileParameters);
228 Q_INVOKABLE
void emitFileSaved(
const QVariantMap& savedFileParameters);
231 Q_INVOKABLE QString defaultSceneFileType()
const;
246 Q_INVOKABLE
bool examineFileInfoList(QFileInfoList &fileInfoList, QFileInfo &archetypeEntry, QString &readerDescription,
qSlicerIO::IOProperties &ioProperties)
const;
253 void setDefaultSceneFileType(QString);
285 QScopedPointer<qSlicerCoreIOManagerPrivate>
d_ptr;
QScopedPointer< qSlicerCoreIOManagerPrivate > d_ptr
MRML node to represent a 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
Base class for qSlicerFileReader and qSlicerFileWriter.
Abstract Superclass for all specific types of MRML nodes.