A modifier that will apply a rotation to the image and optionally zoom in on it. More...
#include <rotationzoommodifier.h>
Public Member Functions | |
RotationZoomModifier () | |
Blank constructor. | |
virtual | ~RotationZoomModifier () |
Class destructor. | |
virtual String | GetName () const |
Gets the name of this modifier. More... | |
virtual void | Modify (TextureBuffer &Buffer) |
Alters the generated pixels in a TextureBuffer. More... | |
RotationZoomModifier & | SetRotation (const Real Rot) |
Sets the rotation to be applied. More... | |
RotationZoomModifier & | SetRotationCenter (const Vector2 &Center) |
Sets the relative position on the texture the rotation is to occur around. More... | |
RotationZoomModifier & | SetRotationCenterX (const Real X) |
Sets the relative X position on the texture the rotation is to occur around. More... | |
RotationZoomModifier & | SetRotationCenterY (const Real Y) |
Sets the relative Y position on the texture the rotation is to occur around. More... | |
RotationZoomModifier & | SetZoomFactor (const Vector2 &Zoom) |
Sets the zoom to be applied to the texture after rotation. More... | |
RotationZoomModifier & | SetZoomFactorX (const Real X) |
Sets the zoom to be applied to the texture on the X axis after rotation. More... | |
RotationZoomModifier & | SetZoomFactorY (const Real Y) |
Sets the zoom to be applied to the texture on the Y axis after rotation. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
Real | Rotation |
The amount of rotation to apply in radians. More... | |
Vector2 | RotationCenter |
The center position for the rotation to be applied. More... | |
Vector2 | ZoomFactor |
The amount of zoom to apply on both axes. More... | |
A modifier that will apply a rotation to the image and optionally zoom in on it.
Edges that are clipped as a result of rotation will be rendered to the otherwise blank corners that are also formed from the rotation.
Definition at line 84 of file rotationzoommodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 141 of file rotationzoommodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 92 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetRotation | ( | const Real | Rot | ) |
Sets the rotation to be applied.
Rot | The amount of rotation to apply in radians. Initial Value: 0.0. |
Definition at line 165 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetRotationCenter | ( | const Vector2 & | Center | ) |
Sets the relative position on the texture the rotation is to occur around.
Center | The center position for the rotation to be applied in relative coordinates[0.0-1.0]. Initial Value: 0.5,0.5. |
Definition at line 147 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetRotationCenterX | ( | const Real | X | ) |
Sets the relative X position on the texture the rotation is to occur around.
X | The center position for the rotation to be applied on the X axis in relative coordinates[0.0-1.0]. Initial Value: 0.5. |
Definition at line 150 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetRotationCenterY | ( | const Real | Y | ) |
Sets the relative Y position on the texture the rotation is to occur around.
Y | The center position for the rotation to be applied on the Y axis in relative coordinates[0.0-1.0]. Initial Value: 0.5. |
Definition at line 153 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetZoomFactor | ( | const Vector2 & | Zoom | ) |
Sets the zoom to be applied to the texture after rotation.
Zoom | The amount of zoom to apply on both axes. Initial Value: 1.0,1.0. |
Definition at line 156 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetZoomFactorX | ( | const Real | X | ) |
Sets the zoom to be applied to the texture on the X axis after rotation.
X | The amount of zoom to apply on the X axis. Initial Value: 1.0. |
Definition at line 159 of file rotationzoommodifier.cpp.
RotationZoomModifier & Mezzanine::Graphics::Procedural::RotationZoomModifier::SetZoomFactorY | ( | const Real | Y | ) |
Sets the zoom to be applied to the texture on the Y axis after rotation.
Y | The amount of zoom to apply on the Y axis. Initial Value: 1.0. |
Definition at line 162 of file rotationzoommodifier.cpp.
|
protected |
The amount of rotation to apply in radians.
Definition at line 95 of file rotationzoommodifier.h.
|
protected |
The center position for the rotation to be applied.
Definition at line 89 of file rotationzoommodifier.h.
|
protected |
The amount of zoom to apply on both axes.
Definition at line 92 of file rotationzoommodifier.h.