Representation for the DM file as data structure.
More...
#include <mlXYLibReaderPlugin.h>
Representation for the DM file as data structure.
Definition at line 33 of file mlXYLibReaderPlugin.h.
◆ XYLibReaderPlugin()
| ml::XYLibReaderPlugin::XYLibReaderPlugin |
( |
| ) |
|
◆ ~XYLibReaderPlugin()
| ml::XYLibReaderPlugin::~XYLibReaderPlugin |
( |
| ) |
|
|
override |
Destructor. If still open the the file will also be closed.
◆ close()
| void ml::XYLibReaderPlugin::close |
( |
| ) |
|
|
overridevirtual |
Closes the file and cleans up data structures. Property requests and fillSubImage calls will not operate successfully any more after this call.
Implements ml::FileReaderPluginsBase.
◆ fillSubImage()
Copy overlapping regions in dstSubImage with image data from the loaded file; note that the calculation of the overlapping region depends on whether a PagedImage was set with setReferenceForFillingInReferenceCoordinates or not. Loaders which do not support filling in reference coordinates (which return false on supportsFillingInReferenceCoordinates()) will silently ignore the reference image.
- Parameters
-
| dstSubImage | The subimage to be filled with data from the loaded file where the image regions overlap. Non overlapping regions are left unchanged. |
- Returns
- ML_RESULT_OK on success or an error or a descriptive code explaining the error. On error free operation and empty overlapping region also ML_RESULT_OK is returned.
Implements ml::FileReaderPluginsBase.
◆ getHeader()
| virtual const XYLibHeader & ml::XYLibReaderPlugin::getHeader |
( |
| ) |
const |
|
virtual |
◆ getNumberOfImagesInFile()
| size_t ml::XYLibReaderPlugin::getNumberOfImagesInFile |
( |
| ) |
|
|
overridevirtual |
Returns the number of images which are accessible in the loaded file; normally one, but some formats can contain more than on image per file.
Implements ml::FileReaderPluginsBase.
◆ getPagedImageProperties()
| const PagedImage & ml::XYLibReaderPlugin::getPagedImageProperties |
( |
| ) |
|
|
overridevirtual |
Returns the image properties of the currently loaded image. Validity can be determined with isValid() on returned object.
Implements ml::FileReaderPluginsBase.
◆ getPluginPriority()
| double ml::XYLibReaderPlugin::getPluginPriority |
( |
| ) |
const |
|
overridevirtual |
XYLibReaderPlugin might detect a loadable file which actually is of another format. Known collisions are, for example, that .raw files of DMFileReaderPlugin are recognized as readable. Therefore use this plugin only if no other loader is found and return the smallest possible priority value. [0,1] is the allowed range, i.e. use 0.
Reimplemented from ml::FileReaderPluginsBase.
◆ getStringIdentifier()
| std::string ml::XYLibReaderPlugin::getStringIdentifier |
( |
| ) |
|
|
static |
Returns the string identifier for this plugin.
◆ getTagDump()
| std::string ml::XYLibReaderPlugin::getTagDump |
( |
const size_t | maxNumBinaryEntries = 8, |
|
|
const size_t | maxNumStringEntries = 20 ) |
|
overridevirtual |
This function returns a tag dump of the loaded file or "" if not possible. Parameters maxNumBinaryEntries and maxNumStringEntries are ignored by this loader.
Reimplemented from ml::FileReaderPluginsBase.
◆ isSupported()
| bool ml::XYLibReaderPlugin::isSupported |
( |
const std::string & | fileName | ) |
const |
|
overridevirtual |
Applies a fast check whether the file is probably supported or not, for
example via the suffix. If false is returned then file is definitely not loadable; if true then opening with loadFile() is worth a try.
Implements ml::FileReaderPluginsBase.
◆ loadFile()
| MLErrorCode ml::XYLibReaderPlugin::loadFile |
( |
const std::string & | fileName | ) |
|
|
overridevirtual |
Opens and loads a file such that getPagedImageProperties() and fillSubImage() can be used to retrieve information from the file. Corresponding close is performed with close() or the destructor.
- Parameters
-
| fileName | The absolute path to the file to be loaded. |
- Returns
- ML_RESULT_OK on successfully opened file or a descriptive code explaining the error.
Implements ml::FileReaderPluginsBase.
◆ supportsFillingInReferenceCoordinates()
| bool ml::XYLibReaderPlugin::supportsFillingInReferenceCoordinates |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: