Slicer  4.11
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 Attributes
qSlicerSegmentationsNodeWriter Class Reference

Utility class that is ready to use for most of the nodes. More...

#include <Modules/Loadable/Segmentations/qSlicerSegmentationsNodeWriter.h>

Inheritance diagram for qSlicerSegmentationsNodeWriter:
Inheritance graph
Collaboration diagram for qSlicerSegmentationsNodeWriter:
Collaboration graph

Public Types

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

Public Member Functions

qSlicerIOOptionsoptions () const override
 Return a qSlicerIOSegmentationNodeWriterOptionsWidget. More...
 qSlicerSegmentationsNodeWriter (QObject *parent)
bool write (const qSlicerIO::IOProperties &properties) override
 ~qSlicerSegmentationsNodeWriter () override
- Public Member Functions inherited from qSlicerNodeWriter
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...
virtual vtkMRMLNodegetNodeByID (const char *id) const
 qSlicerNodeWriter (const QString &description, const qSlicerIO::IOFileType &fileType, const QStringList &nodeTags, bool useCompression, QObject *parent)
void setSupportUseCompression (bool useCompression)
bool supportUseCompression () const
 ~qSlicerNodeWriter () override
- Public Member Functions inherited from qSlicerFileWriter
 qSlicerFileWriter (QObject *parent=nullptr)
QStringList writtenNodes () const
 ~qSlicerFileWriter () override
- Public Member Functions inherited from qSlicerIO
 qSlicerIO (QObject *parent=nullptr)
 ~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 Attributes

QScopedPointer< qSlicerSegmentationsNodeWriterPrivate > d_ptr
- Protected Attributes inherited from qSlicerNodeWriter
QScopedPointer< qSlicerNodeWriterPrivate > d_ptr
- Protected Attributes inherited from qSlicerFileWriter
QScopedPointer< qSlicerFileWriterPrivate > d_ptr
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr

Additional Inherited Members

- Properties inherited from qSlicerNodeWriter
bool supportUseCompression
 Some storage nodes don't support the compression option. More...
- Protected Member Functions inherited from qSlicerNodeWriter
QStringList nodeClassNames () const
void setNodeClassNames (const QStringList &nodeClassNames)
- Protected Member Functions inherited from qSlicerFileWriter
void setWrittenNodes (const QStringList &nodes)

Detailed Description

Utility class that is ready to use for most of the nodes.

Definition at line 32 of file qSlicerSegmentationsNodeWriter.h.

Member Typedef Documentation

◆ Superclass

Definition at line 37 of file qSlicerSegmentationsNodeWriter.h.

Constructor & Destructor Documentation

◆ qSlicerSegmentationsNodeWriter()

qSlicerSegmentationsNodeWriter::qSlicerSegmentationsNodeWriter ( QObject *  parent)

◆ ~qSlicerSegmentationsNodeWriter()

qSlicerSegmentationsNodeWriter::~qSlicerSegmentationsNodeWriter ( )

Member Function Documentation

◆ options()

qSlicerIOOptions* qSlicerSegmentationsNodeWriter::options ( ) const

Return a qSlicerIOSegmentationNodeWriterOptionsWidget.

Reimplemented from qSlicerNodeWriter.

◆ write()

bool qSlicerSegmentationsNodeWriter::write ( const qSlicerIO::IOProperties properties)

Write the node referenced by "nodeID" into the "fileName" file. Optionally, "useCompression" and "useReferenceGeometry" can be specified. Return true on success, false otherwise. Create a storage node if the storable node doesn't have any.

Reimplemented from qSlicerNodeWriter.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerSegmentationsNodeWriterPrivate> qSlicerSegmentationsNodeWriter::d_ptr

Definition at line 51 of file qSlicerSegmentationsNodeWriter.h.

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