![]() |
Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Utility class that offers writing of markups in both json format, regardless of the current storage node. More...
#include <Modules/Loadable/Markups/qSlicerMarkupsWriter.h>
Public Types | |
typedef qSlicerNodeWriter | Superclass |
![]() | |
typedef qSlicerFileWriter | Superclass |
![]() | |
typedef QString | IOFileType |
typedef QVariantMap | IOProperties |
typedef QObject | Superclass |
Public Member Functions | |
QStringList | extensions (vtkObject *object) const override |
qSlicerMarkupsWriter (QObject *parent) | |
void | setStorageNodeClass (vtkMRMLStorableNode *storableNode, const QString &storageNodeClassName) |
bool | write (const qSlicerIO::IOProperties &properties) override |
~qSlicerMarkupsWriter () override | |
![]() | |
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... | |
IOFileType | fileType () const override |
Multiple readers can share the same file type. More... | |
virtual vtkMRMLNode * | getNodeByID (const char *id) const |
qSlicerIOOptions * | options () const override |
Return a qSlicerNodeWriterOptionsWidget. More... | |
qSlicerNodeWriter (const QString &description, const qSlicerIO::IOFileType &fileType, const QStringList &nodeTags, bool useCompression, QObject *parent) | |
void | setSupportUseCompression (bool useCompression) |
bool | supportUseCompression () const |
~qSlicerNodeWriter () override | |
![]() | |
qSlicerFileWriter (QObject *parent=nullptr) | |
virtual QStringList | writtenNodes () const |
~qSlicerFileWriter () override | |
![]() | |
qSlicerIO (QObject *parent=nullptr) | |
Q_INVOKABLE vtkMRMLMessageCollection * | userMessages () const |
Additional warning or error messages occurred during IO operation. More... | |
~qSlicerIO () override | |
![]() | |
vtkMRMLScene * | mrmlScene () 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 () |
Additional Inherited Members | |
![]() | |
bool | supportUseCompression |
Some storage nodes don't support the compression option. More... | |
![]() | |
QStringList | nodeClassNames () const |
void | setNodeClassNames (const QStringList &nodeClassNames) |
![]() | |
virtual void | setWrittenNodes (const QStringList &nodes) |
![]() | |
QScopedPointer< qSlicerNodeWriterPrivate > | d_ptr |
![]() | |
QScopedPointer< qSlicerFileWriterPrivate > | d_ptr |
![]() | |
QScopedPointer< qSlicerIOPrivate > | d_ptr |
![]() | |
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
Utility class that offers writing of markups in both json format, regardless of the current storage node.
Definition at line 32 of file qSlicerMarkupsWriter.h.
Definition at line 37 of file qSlicerMarkupsWriter.h.
qSlicerMarkupsWriter::qSlicerMarkupsWriter | ( | QObject * | parent | ) |
|
override |
|
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)"
Reimplemented from qSlicerNodeWriter.
void qSlicerMarkupsWriter::setStorageNodeClass | ( | vtkMRMLStorableNode * | storableNode, |
const QString & | storageNodeClassName | ||
) |
|
overridevirtual |
Write the node referenced by "nodeID" into the "fileName" file. Optionally, "useCompression" can be specified. Return true on success, false otherwise. Create a storage node if the storable node doesn't have any.
Reimplemented from qSlicerNodeWriter.