Public Member Functions

LoadFilter Class Reference

A pseudo-filter for loading images. More...

#include <loadfilter.h>

Inheritance diagram for LoadFilter:
Inheritance graph
[legend]
Collaboration diagram for LoadFilter:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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).


Constructor & Destructor Documentation

LoadFilter::LoadFilter (  ) 
LoadFilter::~LoadFilter (  ) 

Member Function Documentation

QuillImage LoadFilter::apply ( const QuillImage tile  )  const [virtual]

Loads the given tile or preview.

Parameters:
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.


The documentation for this class was generated from the following files: