A pseudo-filter for loading images. More...
#include <loadfilter.h>
Public Member Functions | |
LoadFilter () | |
~LoadFilter () | |
QuillImage | apply (const QuillImage &tile) const |
QSize | newFullImageSize (const QSize &fullImageSize) const |
bool | setOption (const QString &option, const QVariant &value) |
QVariant | option (const QString &option) const |
const QStringList | supportedOptions () const |
QIODevice * | iODevice () const |
void | setIODevice (QIODevice *iODevice) |
QuillImageFilter::ImageFilterError | error () const |
virtual const QString | name () const |
QuillImageFilter::QuillFilterRole | role () const |
A pseudo-filter for loading images.
Loads an image from the file system or if iODevice() is set, from the given IO device. Any input QuillImage is treated as a request for an area and resolution of interest.
Supports options: FileName, FileFormat (as in QImageReader).
Default behavior: does nothing (if iODevice() is specified, reads full image from the device).
LoadFilter::LoadFilter | ( | ) |
LoadFilter::~LoadFilter | ( | ) |
QuillImage LoadFilter::apply | ( | const QuillImage & | tile | ) | const [virtual] |
Loads the given tile or preview.
tile | the tile, ignores any image data. |
Reimplemented from QuillImageFilterImplementation.
QuillImageFilter::ImageFilterError LoadFilter::error | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.
QIODevice * LoadFilter::iODevice | ( | ) | const [virtual] |
Returns the IO device used, see setIODevice().
Reimplemented from QuillImageFilterImplementation.
virtual const QString LoadFilter::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QSize LoadFilter::newFullImageSize | ( | const QSize & | fullImageSize | ) | const [virtual] |
Gets the full image size of the image (re-implementation.)
Reimplemented from QuillImageFilterImplementation.
QVariant LoadFilter::option | ( | const QString & | filterOption | ) | const [virtual] |
Returns the value of a filter option. These options are the recommended way to pass information to the filters. This function needs to be reimplemented in a derived class to support options.
Reimplemented from QuillImageFilterImplementation.
QuillImageFilter::QuillFilterRole LoadFilter::role | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.
void LoadFilter::setIODevice | ( | QIODevice * | iODevice | ) | [virtual] |
Sets the IO device used. This is only used by filters which represent file system access (loading and saving). The device remains property of the caller but remains in use by the filter; it should only be deleted after the filter has been removed.
Reimplemented from QuillImageFilterImplementation.
bool LoadFilter::setOption | ( | const QString & | filterOption, | |
const QVariant & | value | |||
) | [virtual] |
Sets the value of a filter option. These options are the recommended way to pass information to the filters. This function needs to be reimplemented in a derived class to support options.
Reimplemented from QuillImageFilterImplementation.
const QStringList LoadFilter::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.