#include <Base/QTCore/qSlicerFileReader.h>
|
QScopedPointer< qSlicerFileReaderPrivate > | d_ptr |
|
QScopedPointer< qSlicerIOPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
Definition at line 34 of file qSlicerFileReader.h.
◆ Superclass
◆ qSlicerFileReader()
qSlicerFileReader::qSlicerFileReader |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~qSlicerFileReader()
qSlicerFileReader::~qSlicerFileReader |
( |
| ) |
|
|
override |
◆ canLoadFile()
virtual bool qSlicerFileReader::canLoadFile |
( |
const QString & |
file | ) |
const |
|
virtual |
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.
Reimplemented in qSlicerScriptedFileReader.
◆ examineFileInfoList()
virtual bool qSlicerFileReader::examineFileInfoList |
( |
QFileInfoList & |
fileInfoList, |
|
|
QFileInfo & |
archetypeFileInfo, |
|
|
qSlicerIO::IOProperties & |
ioProperties |
|
) |
| const |
|
virtual |
◆ extensions()
virtual QStringList qSlicerFileReader::extensions |
( |
| ) |
const |
|
virtual |
Return a list of the supported extensions. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
Reimplemented in qSlicerScriptedFileReader, qSlicerSceneReader, qSlicerTablesReader, qSlicerShaderPropertyReader, qSlicerVolumeRenderingReader, qSlicerSlicer2SceneReader, qSlicerAnnotationsReader, qSlicerFiducialsReader, qSlicerDoubleArraysReader, qSlicerModelsReader, qSlicerSegmentationsReader, qSlicerSequencesReader, qSlicerTerminologiesReader, qSlicerSceneBundleReader, qSlicerColorsReader, qSlicerTransformsReader, qSlicerVolumesReader, qSlicerMarkupsReader, and qSlicerTextsReader.
◆ load()
virtual bool qSlicerFileReader::load |
( |
const IOProperties & |
properties | ) |
|
|
virtual |
Properties availables : fileMode, multipleFiles, fileType.
Reimplemented in qSlicerScriptedFileReader, qSlicerSceneReader, qSlicerTablesReader, qSlicerSceneBundleReader, qSlicerShaderPropertyReader, qSlicerVolumeRenderingReader, qSlicerAnnotationsReader, qSlicerModelsReader, qSlicerSegmentationsReader, qSlicerSlicer2SceneReader, qSlicerFiducialsReader, qSlicerDoubleArraysReader, qSlicerSequencesReader, qSlicerTerminologiesReader, qSlicerVolumesReader, qSlicerColorsReader, qSlicerTransformsReader, qSlicerMarkupsReader, and qSlicerTextsReader.
◆ loadedNodes()
virtual QStringList qSlicerFileReader::loadedNodes |
( |
| ) |
const |
|
virtual |
◆ setLoadedNodes()
virtual void qSlicerFileReader::setLoadedNodes |
( |
const QStringList & |
nodes | ) |
|
|
protectedvirtual |
◆ supportedNameFilters()
QStringList qSlicerFileReader::supportedNameFilters |
( |
const QString & |
fileName, |
|
|
int * |
longestExtensionMatchPtr = nullptr |
|
) |
| const |
Return the matching name filters -> if the fileName is "myimage.nrrd" and the supported extensions are "Volumes (*.mha *.nrrd *.raw)", "Images (*.png" *.jpg")", "DICOM (*)" then it returns "Volumes (*.mha *.nrrd *.raw), DICOM (*)"
- Parameters
-
longestExtensionMatchPtr | If non-zero then the method returns the length of the longest matched extension length in this argument. It can be used to determine how specifically extension matched. |
◆ d_ptr
QScopedPointer<qSlicerFileReaderPrivate> qSlicerFileReader::d_ptr |
|
protected |
The documentation for this class was generated from the following file: