classPiiImageRotationOperation
#include <PiiImageRotationOperation.h>
Rotate images to arbitrary angles in two dimension.
Inherits PiiDefaultOperation
Description
Inputs
angle property will be used. Outputs
Properties
|
double
|
Rotation angle in radians, measured clockwise. |
|
double
|
Rotation angle in degrees. |
|
The color used for the parts of the output image that are outside of the input image. |
|
|
How to handle the size of the result. |
Constructors and destructor
Public member functions
|
double
|
(
)
|
|
double
|
(
)
|
|
(
)
|
|
|
void
|
(
|
|
void
|
(
|
|
void
|
|
|
void
|
|
|
(
)
|
Protected member functions
|
virtual void
|
(
)
Executes one round of processing. |
Property details
-
double angle
[read, write]Rotation angle in radians, measured clockwise.
This value is used only if the
angleinput is not connected. Default is 0. -
double angleDeg
[read, write]Rotation angle in degrees.
-
QColor backgroundColor
[read, write]The color used for the parts of the output image that are outside of the input image.
The default color is black.
-
PiiImage::TransformedSize transformedSize
[read, write]How to handle the size of the result.
Default is
ExpandAsNecessary.
Function details
-
PiiImageRotationOperation
() -
double angle
() -
double angleDeg
() -
QColor backgroundColor
() -
void setAngle
(- double angle
-
void setAngleDeg
(- double angleDeg
-
void setBackgroundColor
-
void setTransformedSize
-
PiiImage::TransformedSize transformedSize
() -
virtual void process
()[protected, virtual]Executes one round of processing.
This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.
Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().
Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns
Running.Exceptions
- PiiExecutionException
whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.
Reimplemented from PiiDefaultOperation.
Add a note
Not a single note added yet. Be the first, add yours.