21 #ifndef __qSlicerCoreIOManager_h 22 #define __qSlicerCoreIOManager_h 30 #include <QVariantMap> 37 #include "qSlicerBaseQTCoreExport.h" 45 class qSlicerCoreIOManagerPrivate;
51 Q_PROPERTY(QString defaultSceneFileType READ defaultSceneFileType WRITE setDefaultSceneFileType)
65 Q_INVOKABLE QStringList fileDescriptions(
const QString& file)
const;
69 Q_INVOKABLE
qSlicerIO::IOFileType fileWriterFileType(vtkObject*
object,
const QString& format=QString())
const;
72 Q_INVOKABLE QStringList fileWriterExtensions(vtkObject*
object)
const;
75 Q_INVOKABLE QStringList allWritableFileExtensions()
const;
78 Q_INVOKABLE QStringList allReadableFileExtensions()
const;
82 qSlicerIOOptions* fileWriterOptions(vtkObject*
object,
const QString& extension)
const;
104 vtkCollection* loadedNodes =
nullptr,
111 vtkCollection* loadedNodes =
nullptr,
126 Q_INVOKABLE
bool loadScene(
const QString& fileName,
bool clear =
true,
151 Q_INVOKABLE
bool saveScene(
const QString& fileName, QImage screenShot,
160 Q_INVOKABLE
void addDefaultStorageNodes();
172 Q_INVOKABLE
void emitNewFileLoaded(
const QVariantMap& loadedFileParameters);
175 Q_INVOKABLE QString defaultSceneFileType()
const;
190 Q_INVOKABLE
bool examineFileInfoList(QFileInfoList &fileInfoList, QFileInfo &archetypeEntry, QString &readerDescription,
qSlicerIO::IOProperties &ioProperties)
const;
197 void setDefaultSceneFileType(QString);
223 QScopedPointer<qSlicerCoreIOManagerPrivate>
d_ptr;
QScopedPointer< qSlicerCoreIOManagerPrivate > d_ptr
MRML node to represent a 3D surface model.
A superclass for other storage nodes.
Base class for qSlicerFileReader and qSlicerFileWriter.
Abstract Superclass for all specific types of MRML nodes.