A filter for fixed rotate. More...
#include <rotate.h>
Public Member Functions | |
Rotate () | |
~Rotate () | |
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 &filterOption, const QVariant &value) |
QVariant | option (const QString &filterOption) const |
const QStringList | supportedOptions () const |
virtual const QString | name () const |
A filter for fixed rotate.
For free rotate, use FreeRotate instead.
Supports options: Angle (rotate angle, this must be integer divisible by 90 otherwise it is ignored.)
Default behavior: rotates 90 degrees clockwise.
Rotate::Rotate | ( | ) |
Rotate::~Rotate | ( | ) |
QuillImage Rotate::apply | ( | const QuillImage & | image | ) | const [virtual] |
Applies the filter to a given preview or fragment.
Reimplemented from QuillImageFilterImplementation.
virtual const QString Rotate::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QRect Rotate::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 Rotate::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 Rotate::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 Rotate::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 Rotate::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.