#include <Base/QTCore/qSlicerFileReader.h>
|
QScopedPointer< qSlicerFileReaderPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
Definition at line 31 of file qSlicerFileReader.h.
◆ Superclass
◆ qSlicerFileReader()
qSlicerFileReader::qSlicerFileReader |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~qSlicerFileReader()
virtual qSlicerFileReader::~qSlicerFileReader |
( |
| ) |
|
|
virtual |
◆ canLoadFile()
bool qSlicerFileReader::canLoadFile |
( |
const QString & |
file | ) |
const |
Based on the file extensions, returns true if the file can be read, false otherwise. This function is relatively fast as it doesn't try to access the file.
◆ 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 qSlicerSceneReader, qSlicerTablesReader, qSlicerVolumeRenderingReader, qSlicerXcedeCatalogReader, qSlicerSlicer2SceneReader, qSlicerAnnotationsReader, qSlicerFiducialsReader, qSlicerDoubleArraysReader, qSlicerModelsReader, qSlicerSegmentationsReader, qSlicerTerminologiesReader, qSlicerSceneBundleReader, qSlicerColorsReader, qSlicerScalarOverlayReader, qSlicerTransformsReader, qSlicerVolumesReader, and qSlicerMarkupsReader.
◆ load()
virtual bool qSlicerFileReader::load |
( |
const IOProperties & |
properties | ) |
|
|
virtual |
Properties availables : fileMode, multipleFiles, fileType.
Reimplemented in qSlicerSceneReader, qSlicerTablesReader, qSlicerSceneBundleReader, qSlicerVolumeRenderingReader, qSlicerXcedeCatalogReader, qSlicerAnnotationsReader, qSlicerSegmentationsReader, qSlicerSlicer2SceneReader, qSlicerFiducialsReader, qSlicerDoubleArraysReader, qSlicerModelsReader, qSlicerScalarOverlayReader, qSlicerTerminologiesReader, qSlicerVolumesReader, qSlicerColorsReader, qSlicerTransformsReader, and qSlicerMarkupsReader.
◆ loadedNodes()
QStringList qSlicerFileReader::loadedNodes |
( |
| ) |
const |
◆ setLoadedNodes()
void qSlicerFileReader::setLoadedNodes |
( |
const QStringList & |
nodes | ) |
|
|
protected |
Must be called in load() on success with the list of nodes added into the scene.
◆ supportedNameFilters()
QStringList qSlicerFileReader::supportedNameFilters |
( |
const QString & |
fileName, |
|
|
int * |
longestExtensionMatchPtr = NULL |
|
) |
| 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: