Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Common interface for all MITK file reader and writer. More...
#include <mitkIFileIO.h>
Public Types | |
enum | ConfidenceLevel { Unsupported, PartiallySupported, Supported } |
A confidence level describing the confidence of the reader or writer in handling the given data. More... | |
typedef std::map< std::string, us::Any > | Options |
Options for reading or writing data. More... | |
typedef mitk::MessageAbstractDelegate1< float > | ProgressCallback |
Public Member Functions | |
virtual | ~IFileIO () |
virtual ConfidenceLevel | GetConfidenceLevel () const =0 |
The confidence level of the reader or writer implementation. More... | |
virtual Options | GetOptions () const =0 |
returns a list of the supported options More... | |
virtual us::Any | GetOption (const std::string &name) const =0 |
virtual void | SetOptions (const Options &options)=0 |
virtual void | SetOption (const std::string &name, const us::Any &value)=0 |
virtual void | AddProgressCallback (const ProgressCallback &callback)=0 |
virtual void | RemoveProgressCallback (const ProgressCallback &callback)=0 |
Static Public Member Functions | |
static std::string | PROP_DESCRIPTION () |
Service property name for a description. More... | |
static std::string | PROP_MIMETYPE () |
Service property name for the mime-type associated with this file writer. More... | |
Common interface for all MITK file reader and writer.
This interface is not meant to be implemented directly. It is inherited from IFileWriter and IFileReader and a default implementation is provided in AbstractFileIO via AbstractFileWriter and AbstractFileReader.
Definition at line 35 of file mitkIFileIO.h.
typedef std::map<std::string, us::Any> mitk::IFileIO::Options |
Options for reading or writing data.
Options are used in reader or writer implementations to customize certain aspects of the reading/writing process. Options may be supplied by users calling the SetOption() method or they may be presented as an input mask in the context of a graphical user interface.
The keys are human-readable labels and the type of the option value specifies the user interface representation. If a key contains multiple segments (sub-strings separated by a '.' character, only the last segment is displayed. If the last segment is equal to the string 'enum', the option is treated as a finite enumeration of values where the values are contained in a corresponding std::vector<std::string>
value. the same option key without the 'enum' segment is considered to hold the current selection from the enumeration.
Definition at line 69 of file mitkIFileIO.h.
typedef mitk::MessageAbstractDelegate1<float> mitk::IFileIO::ProgressCallback |
Definition at line 71 of file mitkIFileIO.h.
A confidence level describing the confidence of the reader or writer in handling the given data.
Enumerator | |
---|---|
Unsupported | |
PartiallySupported | |
Supported |
Definition at line 45 of file mitkIFileIO.h.
|
virtual |
|
pure virtual |
Implemented in mitk::AbstractFileWriter, and mitk::AbstractFileReader.
|
pure virtual |
The confidence level of the reader or writer implementation.
The level is used to rank multiple competing implementations.
Implemented in mitk::AbstractFileWriter, mitk::AbstractFileReader, mitk::AbstractFileIOWriter, mitk::LegacyLabelSetImageIO, mitk::LegacyFileWriterService, mitk::BaseDICOMReaderService, and mitk::AbstractFileIOReader.
|
pure virtual |
Implemented in mitk::AbstractFileWriter, mitk::AbstractFileReader, and mitk::CESTDICOMManualReaderService.
|
pure virtual |
returns a list of the supported options
Options are strings that are treated as flags when passed to the write method.
Implemented in mitk::AbstractFileWriter, mitk::AbstractFileReader, and mitk::CESTDICOMManualReaderService.
|
static |
Service property name for a description.
The property value must be of type std::string
.
|
static |
Service property name for the mime-type associated with this file writer.
The property value must be of type std::string
.
|
pure virtual |
Implemented in mitk::AbstractFileWriter, and mitk::AbstractFileReader.
|
pure virtual |
Implemented in mitk::AbstractFileWriter, and mitk::AbstractFileReader.
|
pure virtual |
Implemented in mitk::AbstractFileWriter, and mitk::AbstractFileReader.