#include <Base/QTCore/qSlicerFileWriter.h>
|
| QScopedPointer< qSlicerFileWriterPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerIOPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerObjectPrivate > | d_ptr |
| |
Base class of legacy Qt-based file writers.
- Deprecated
- File writers are implemented as vtkMRMLFileWriter subclasses. This class is kept for backward compatibility and to provide Qt options widgets (see options()). See https://slicer.readthedocs.io/en/latest/developer_guide/mrml_overview.html#qt-interface
Definition at line 35 of file qSlicerFileWriter.h.
◆ qSlicerFileWriter()
| qSlicerFileWriter::qSlicerFileWriter |
( |
QObject * | parent = nullptr | ) |
|
◆ ~qSlicerFileWriter()
| qSlicerFileWriter::~qSlicerFileWriter |
( |
| ) |
|
|
override |
◆ canWriteObject()
| virtual bool qSlicerFileWriter::canWriteObject |
( |
vtkObject * | object | ) |
const |
|
virtual |
Return true if the object is handled by the writer. This method is kept for backward compatibility, writers should override canWriteObjectConfidence method instead of this method to indicate if they can write the object.
Reimplemented in qSlicerVTKFileWriter.
◆ canWriteObjectConfidence()
| virtual double qSlicerFileWriter::canWriteObjectConfidence |
( |
vtkObject * | object | ) |
const |
|
virtual |
Returns a positive number (>0) if the writer can write the object to file. The higher the returned value is the more confident the writer it is the most suitable class to write the object. By default, the method calls canWriteObject and if it returns true then it returns confidence value of 0.5.
Reimplemented in qSlicerVTKFileWriter.
◆ extensions()
| virtual QStringList qSlicerFileWriter::extensions |
( |
vtkObject * | object | ) |
const |
|
pure virtual |
Return a list of the supported extensions for a particular object. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
Implemented in qSlicerVTKFileWriter.
◆ setWrittenNodes()
| virtual void qSlicerFileWriter::setWrittenNodes |
( |
const QStringList & | nodes | ) |
|
|
protectedvirtual |
◆ write()
Write the node identified by nodeID into the fileName file. Returns true on success Properties available:
- QString nodeID
- QString fileName
- QString fileFormat
- bool compressed ...
Reimplemented in qSlicerNodeWriter, and qSlicerVTKFileWriter.
◆ writtenNodes()
| virtual QStringList qSlicerFileWriter::writtenNodes |
( |
| ) |
const |
|
virtual |
◆ d_ptr
| QScopedPointer<qSlicerFileWriterPrivate> qSlicerFileWriter::d_ptr |
|
protected |
The documentation for this class was generated from the following file: