
Public Member Functions | |
| bool | enabled (self) |
| Gets whether this feature is currently enabled. | |
| None | enabled (self, bool enabled) |
| Enables or disables the feature. | |
| Rotation | angle (self) |
| Gets the current rotation angle. | |
| None | angle (self, Rotation angle) |
| Sets the desired rotation angle. | |
| None | reset_to_default (self) |
| Resets the rotation to its default value (Rotation.NO_ROTATION). | |
| None | __init__ (self, TransformationModule module) |
| Creates a RotationFeature for an existing transformation module. | |
Protected Attributes | |
| _module = module | |
Rotation provides fixed-angle rotation functionality.
|
|
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
This feature rotates images in 90-degree increments, based on the rotation mode set via the angle property.
The default rotation is Rotation.NO_ROTATION.
Definition at line 6 of file rotation_feature.py.
| None __init__ | ( | self, | |
| TransformationModule | module ) |
Creates a RotationFeature for an existing transformation module.
| module | Reference to the underlying TransformationModule. |
Definition at line 85 of file rotation_feature.py.
| Rotation angle | ( | self | ) |
Gets the current rotation angle.
Definition at line 51 of file rotation_feature.py.
| None angle | ( | self, | |
| Rotation | angle ) |
Sets the desired rotation angle.
| angle | The rotation angle to apply (see RotationAngle enum). |
Definition at line 63 of file rotation_feature.py.
| bool enabled | ( | self | ) |
Gets whether this feature is currently enabled.
Reimplemented from IFeature.
Definition at line 27 of file rotation_feature.py.
| None enabled | ( | self, | |
| bool | enabled ) |
Enables or disables the feature.
| enabled | True to enable, False to disable. |
Reimplemented from IFeature.
Definition at line 39 of file rotation_feature.py.
| None reset_to_default | ( | self | ) |
Resets the rotation to its default value (Rotation.NO_ROTATION).
Reimplemented from IFeature.
Definition at line 74 of file rotation_feature.py.
|
protected |
Definition at line 94 of file rotation_feature.py.