Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Protected Member Functions
qSlicerSceneWriter Class Reference

#include <Modules/Loadable/Data/qSlicerSceneWriter.h>

Inheritance diagram for qSlicerSceneWriter:
Inheritance graph
[legend]
Collaboration diagram for qSlicerSceneWriter:
Collaboration graph
[legend]

Public Types

typedef qSlicerFileWriter Superclass
 
- Public Types inherited from qSlicerIO
typedef QString IOFileType
 
typedef QVariantMap IOProperties
 
typedef QObject Superclass
 

Public Member Functions

bool canWriteObject (vtkObject *object) const override
 Return true if the object is handled by the writer. More...
 
QString description () const override
 Unique name of the reader/writer. More...
 
QStringList extensions (vtkObject *object) const override
 
IOFileType fileType () const override
 Multiple readers can share the same file type. More...
 
 qSlicerSceneWriter (QObject *parent=nullptr)
 
bool write (const qSlicerIO::IOProperties &properties) override
 
 ~qSlicerSceneWriter () override
 
- Public Member Functions inherited from qSlicerFileWriter
 qSlicerFileWriter (QObject *parent=nullptr)
 
virtual QStringList writtenNodes () const
 
 ~qSlicerFileWriter () override
 
- Public Member Functions inherited from qSlicerIO
virtual Q_INVOKABLE qSlicerIOOptionsoptions () const
 
 qSlicerIO (QObject *parent=nullptr)
 
Q_INVOKABLE vtkMRMLMessageCollectionuserMessages () const
 Additional warning or error messages occurred during IO operation. More...
 
 ~qSlicerIO () override
 
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
 
virtual ~qSlicerObject ()
 

Protected Member Functions

bool writeToDirectory (const qSlicerIO::IOProperties &properties)
 
bool writeToMRB (const qSlicerIO::IOProperties &properties)
 
bool writeToMRML (const qSlicerIO::IOProperties &properties)
 
- Protected Member Functions inherited from qSlicerFileWriter
virtual void setWrittenNodes (const QStringList &nodes)
 

Additional Inherited Members

- Protected Attributes inherited from qSlicerFileWriter
QScopedPointer< qSlicerFileWriterPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerIO
QScopedPointer< qSlicerIOPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 

Detailed Description

Definition at line 30 of file qSlicerSceneWriter.h.

Member Typedef Documentation

◆ Superclass

Definition at line 35 of file qSlicerSceneWriter.h.

Constructor & Destructor Documentation

◆ qSlicerSceneWriter()

qSlicerSceneWriter::qSlicerSceneWriter ( QObject *  parent = nullptr)

◆ ~qSlicerSceneWriter()

qSlicerSceneWriter::~qSlicerSceneWriter ( )
override

Member Function Documentation

◆ canWriteObject()

bool qSlicerSceneWriter::canWriteObject ( vtkObject *  object) const
overridevirtual

Return true if the object is handled by the writer.

Reimplemented from qSlicerFileWriter.

◆ description()

QString qSlicerSceneWriter::description ( ) const
overridevirtual

Unique name of the reader/writer.

Implements qSlicerIO.

◆ extensions()

QStringList qSlicerSceneWriter::extensions ( vtkObject *  object) const
overridevirtual

Return a list of the supported extensions for a particuliar object. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"

Implements qSlicerFileWriter.

◆ fileType()

IOFileType qSlicerSceneWriter::fileType ( ) const
overridevirtual

Multiple readers can share the same file type.

Implements qSlicerIO.

◆ write()

bool qSlicerSceneWriter::write ( const qSlicerIO::IOProperties properties)
overridevirtual

Write the node identified by nodeID into the fileName file. Returns true on success.

Reimplemented from qSlicerFileWriter.

◆ writeToDirectory()

bool qSlicerSceneWriter::writeToDirectory ( const qSlicerIO::IOProperties properties)
protected

◆ writeToMRB()

bool qSlicerSceneWriter::writeToMRB ( const qSlicerIO::IOProperties properties)
protected

◆ writeToMRML()

bool qSlicerSceneWriter::writeToMRML ( const qSlicerIO::IOProperties properties)
protected

The documentation for this class was generated from the following file: