21 #ifndef __qSlicerCoreIOManager_h 22 #define __qSlicerCoreIOManager_h 29 #include <QVariantMap> 36 #include "qSlicerBaseQTCoreExport.h" 43 class qSlicerCoreIOManagerPrivate;
49 Q_PROPERTY(QString defaultSceneFileType READ defaultSceneFileType WRITE setDefaultSceneFileType)
63 Q_INVOKABLE QStringList fileDescriptions(
const QString& file)
const;
70 Q_INVOKABLE QStringList fileWriterExtensions(vtkObject*
object)
const;
73 Q_INVOKABLE QStringList allWritableFileExtensions()
const;
76 Q_INVOKABLE QStringList allReadableFileExtensions()
const;
80 qSlicerIOOptions* fileWriterOptions(vtkObject*
object,
const QString& extension)
const;
99 #if QT_VERSION < 0x040700 102 vtkCollection* loadedNodes = 0);
106 vtkCollection* loadedNodes = 0);
112 vtkCollection* loadedNodes = 0);
123 Q_INVOKABLE
bool loadScene(
const QString& fileName,
bool clear =
true);
127 Q_INVOKABLE
bool loadFile(
const QString& fileName);
136 #if QT_VERSION < 0x040700 148 Q_INVOKABLE
bool saveScene(
const QString& fileName, QImage screenShot);
156 Q_INVOKABLE
void addDefaultStorageNodes();
168 Q_INVOKABLE
void emitNewFileLoaded(
const QVariantMap& loadedFileParameters);
171 Q_INVOKABLE QString defaultSceneFileType()
const;
178 void setDefaultSceneFileType(QString);
204 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.