Public Member Functions

FreeRotate Class Reference

A free rotate / straighten horizon filter with autocrop. More...

#include <freerotate.h>

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

List of all members.

Public Member Functions

 FreeRotate ()
 ~FreeRotate ()
QuillImage apply (const QuillImage &image) const
QSize newFullImageSize (const QSize &fullImageSize) const
QRect newArea (const QSize &fullImageSize, const QRect &area) const
bool setOption (const QString &option, const QVariant &value)
QVariant option (const QString &option) const
const QStringList supportedOptions () const
virtual const QString name () const

Detailed Description

A free rotate / straighten horizon filter with autocrop.

Straightens the image by a low angle, autocrops the image afterwards. May break tile boundaries, and as a result tiles may become partially transparent on top of each other.

Supports options: Angle (-15 to +15).

Default behavior: does nothing.


Constructor & Destructor Documentation

FreeRotate::FreeRotate (  ) 
FreeRotate::~FreeRotate (  ) 

Member Function Documentation

QuillImage FreeRotate::apply ( const QuillImage image  )  const [virtual]

Applies the filter to a given preview or fragment.

Reimplemented from QuillImageFilterImplementation.

virtual const QString FreeRotate::name (  )  const [inline, virtual]

Reimplemented from QuillImageFilterImplementation.

QRect FreeRotate::newArea ( const QSize &  fullImageSize,
const QRect &  area 
) const [virtual]

If the filter changes dimensions of the image, this can be used to re-calculate a new position for a specific tile.

Reimplemented from QuillImageFilterImplementation.

QSize FreeRotate::newFullImageSize ( const QSize &  fullImageSize  )  const [virtual]

If the filter changes dimensions of the image, this can be used to re-calculate a new size for the full image.

Reimplemented from QuillImageFilterImplementation.

QVariant FreeRotate::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.

bool FreeRotate::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 FreeRotate::supportedOptions (  )  const [virtual]

Reimplemented from QuillImageFilterImplementation.


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