#include <Base/QTCore/qSlicerVTKFileReader.h>
|
| QScopedPointer< qSlicerVTKFileReaderPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerFileReaderPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerIOPrivate > | d_ptr |
| |
| QScopedPointer< qSlicerObjectPrivate > | d_ptr |
| |
Qt interface of a VTK-based file reader: all methods are delegated to the VTK-based reader (see fileReader()).
See https://slicer.readthedocs.io/en/latest/developer_guide/mrml_overview.html#qt-interface
Definition at line 31 of file qSlicerVTKFileReader.h.
◆ Superclass
◆ qSlicerVTKFileReader()
| qSlicerVTKFileReader::qSlicerVTKFileReader |
( |
vtkMRMLFileReader * | reader, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ ~qSlicerVTKFileReader()
| qSlicerVTKFileReader::~qSlicerVTKFileReader |
( |
| ) |
|
|
override |
◆ canLoadFile()
| bool qSlicerVTKFileReader::canLoadFile |
( |
const QString & | file | ) |
const |
|
overridevirtual |
Returns true if the reader can load this file. Default implementation is a simple and fast, it just checks if file extension matches any of the wildcards returned by extensions() method. This method is kept for backward compatibility, readers should override canLoadFileConfidence method instead of this method to indicate if they can read a file.
Reimplemented from qSlicerFileReader.
◆ canLoadFileConfidence()
| double qSlicerVTKFileReader::canLoadFileConfidence |
( |
const QString & | file | ) |
const |
|
overridevirtual |
Returns a positive number (>0) if the reader can load this file. The higher the returned value is the more confident the reader it is the most suitable class to load the file. By default, the method calls canLoadFile and if it returns true then the returned confidence value is 0.5 + 0.01 * matchedFileExtensionLength. The additional confidence for longer matched file extensions allow prioritization of more specific readers. For example, "*.seg.nrrd" is more specific than "*.nrrd"; "*.nrrd" is more specific than "*.*".
Reimplemented from qSlicerFileReader.
◆ description()
| QString qSlicerVTKFileReader::description |
( |
| ) |
const |
|
overridevirtual |
Unique name of the reader/writer.
Implements qSlicerIO.
◆ examineFileInfoList()
| bool qSlicerVTKFileReader::examineFileInfoList |
( |
QFileInfoList & | fileInfoList, |
|
|
QFileInfo & | archetypeFileInfo, |
|
|
qSlicerIO::IOProperties & | ioProperties ) const |
|
overridevirtual |
◆ extensions()
| QStringList qSlicerVTKFileReader::extensions |
( |
| ) |
const |
|
overridevirtual |
Return a list of the supported extensions. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
Reimplemented from qSlicerFileReader.
◆ fileReader()
VTK-based reader that performs all the tasks of this class.
◆ fileType()
| IOFileType qSlicerVTKFileReader::fileType |
( |
| ) |
const |
|
overridevirtual |
Multiple readers can share the same file type.
Implements qSlicerIO.
◆ ioHandler()
◆ load()
| bool qSlicerVTKFileReader::load |
( |
const IOProperties & | properties | ) |
|
|
overridevirtual |
Properties available: fileMode, multipleFiles, fileType.
Reimplemented from qSlicerFileReader.
◆ loadedNodes()
| QStringList qSlicerVTKFileReader::loadedNodes |
( |
| ) |
const |
|
overridevirtual |
◆ setFileReader()
Set the VTK-based reader that performs all the tasks of this class. The current scene is set in the reader.
◆ setLoadedNodes()
| void qSlicerVTKFileReader::setLoadedNodes |
( |
const QStringList & | nodes | ) |
|
|
overrideprotectedvirtual |
Must be called in load() on success with the list of nodes added into the scene.
Reimplemented from qSlicerFileReader.
◆ setMRMLScene()
| void qSlicerVTKFileReader::setMRMLScene |
( |
vtkMRMLScene * | scene | ) |
|
|
overridevirtual |
Set the scene of this object and of the VTK-based reader.
Reimplemented from qSlicerIO.
◆ userMessages()
Additional warning or error messages occurred during IO operation.
Reimplemented from qSlicerIO.
◆ d_ptr
| QScopedPointer<qSlicerVTKFileReaderPrivate> qSlicerVTKFileReader::d_ptr |
|
protected |
The documentation for this class was generated from the following file: