19#include <FMEThirdPartyWarningsDisable.h>
21#include <FMEThirdPartyWarningsRestore.h>
Project global and OS specific declarations.
#define MLXYLibReaderPlugin_EXPORT
DLL export macro definition.
Base class for a generic file reader plugin with factory interface.
Class which represents an image, which manages properties of an image and image data which is located...
This class manages/represents a rectangular 6d image region which is organized linearly in memory.
Representation for the DM file as data structure.
XYLibReaderPlugin()
Constructor.
static std::string getStringIdentifier()
Returns the string identifier for this plugin.
MLErrorCode loadFile(const std::string &fileName) override
Opens and loads a file such that getPagedImageProperties() and fillSubImage() can be used to retrieve...
double getPluginPriority() const override
XYLibReaderPlugin might detect a loadable file which actually is of another format.
std::string getTagDump(const size_t maxNumBinaryEntries=8, const size_t maxNumStringEntries=20) override
This function returns a tag dump of the loaded file or "" if not possible.
MLErrorCode fillSubImage(SubImage &dstSubImage) override
Copy overlapping regions in dstSubImage with image data from the loaded file; note that the calculati...
void close() override
Closes the file and cleans up data structures.
bool isSupported(const std::string &fileName) const override
Applies a fast check whether the file is probably supported or not, for example via the suffix.
bool supportsFillingInReferenceCoordinates() const override
Returns true if the loader instance support SubImage filling in reference coordinates,...
virtual const XYLibHeader & getHeader() const
For convenience allow access to _header.
~XYLibReaderPlugin() override
Destructor. If still open the the file will also be closed.
const PagedImage & getPagedImageProperties() override
Returns the image properties of the currently loaded image.
size_t getNumberOfImagesInFile() override
Returns the number of images which are accessible in the loaded file; normally one,...
MLint32 MLErrorCode
Type of an ML Error code.
Header file of base class for a generic file reader plugin with factory interface.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.