Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Procedural::RotationZoom Class Reference

Rotate & zoom image. More...

#include <ProceduralTextureModifiers.h>

Inheritance diagram for Procedural::RotationZoom:
Inheritance graph
[legend]

Public Member Functions

 RotationZoom (TextureBufferPtr pBuffer)
 Default constructor. More...
 
RotationZoomsetCenterX (Ogre::Real centerx)
 Set the relative center position of the rotation on x axis. More...
 
RotationZoomsetCenterY (Ogre::Real centery)
 Set the relative center position of the rotation on y axis. More...
 
RotationZoomsetZoomX (Ogre::Real zoomx)
 Set the zoom factor in x direction. More...
 
RotationZoomsetZoomY (Ogre::Real zoomy)
 Set the zoom factor in y direction. More...
 
RotationZoomsetRotation (Ogre::Real rotation)
 Set the rotation angle. More...
 
RotationZoomsetRotation (Ogre::Radian rotation)
 Set the rotation angle. More...
 
RotationZoomsetRotation (Ogre::Degree rotation)
 Set the rotation angle. More...
 
RotationZoomsetWrap (bool wrap)
 Set wrap. More...
 
TextureBufferPtr process ()
 Run image manipulation. More...
 
Ogre::String getName ()
 Get name of the filter as string. More...
 
void setLog (bool enable=true)
 Enable/Disable logging. More...
 

Protected Member Functions

void logMsg (Ogre::String msg)
 

Protected Attributes

TextureBufferPtr mBuffer
 
Ogre::String mName
 
bool mLog
 

Detailed Description

Rotate & zoom image.

Rotate the image and/or zoom on a specific pat of it.

Example:

dot_texture_25.png

Constructor & Destructor Documentation

◆ RotationZoom()

Procedural::RotationZoom::RotationZoom ( TextureBufferPtr  pBuffer)

Default constructor.

Parameters
pBufferImage buffer where to modify the image.

Member Function Documentation

◆ getName()

Ogre::String Procedural::TextureProcessing::getName ( )
inherited

Get name of the filter as string.

◆ logMsg()

void Procedural::TextureProcessing::logMsg ( Ogre::String  msg)
protectedinherited

◆ process()

TextureBufferPtr Procedural::RotationZoom::process ( )
virtual

Run image manipulation.

Returns
Pointer to image buffer which has been set in the constructor.

Implements Procedural::TextureProcessing.

◆ setCenterX()

RotationZoom& Procedural::RotationZoom::setCenterX ( Ogre::Real  centerx)

Set the relative center position of the rotation on x axis.

Parameters
centerxNew relative center of the rotation center [0.0, 1.0] (default 0.5)

◆ setCenterY()

RotationZoom& Procedural::RotationZoom::setCenterY ( Ogre::Real  centery)

Set the relative center position of the rotation on y axis.

Parameters
centeryNew relative center of the rotation center [0.0, 1.0] (default 0.5)

◆ setLog()

void Procedural::TextureProcessing::setLog ( bool  enable = true)
inherited

Enable/Disable logging.

Parameters
enabletrue enables logging of filter actions

◆ setRotation() [1/3]

RotationZoom& Procedural::RotationZoom::setRotation ( Ogre::Degree  rotation)

Set the rotation angle.

Parameters
rotationNew rotation angle [0, 360] degree (default 0)

◆ setRotation() [2/3]

RotationZoom& Procedural::RotationZoom::setRotation ( Ogre::Radian  rotation)

Set the rotation angle.

Parameters
rotationNew rotation angle [0.0, Ogre::Math::TWO_PI] rad (default 0.0)

◆ setRotation() [3/3]

RotationZoom& Procedural::RotationZoom::setRotation ( Ogre::Real  rotation)

Set the rotation angle.

Parameters
rotationNew rotation angle [0.0, 1.0] (default 0.0)

◆ setWrap()

RotationZoom& Procedural::RotationZoom::setWrap ( bool  wrap)

Set wrap.

Parameters
wrapNew wrap value (default true)

◆ setZoomX()

RotationZoom& Procedural::RotationZoom::setZoomX ( Ogre::Real  zoomx)

Set the zoom factor in x direction.

Parameters
zoomxNew factor for zoom in x direction (default 1.0)

◆ setZoomY()

RotationZoom& Procedural::RotationZoom::setZoomY ( Ogre::Real  zoomy)

Set the zoom factor in y direction.

Parameters
zoomyNew factor for zoom in y direction (default 1.0)

Member Data Documentation

◆ mBuffer

TextureBufferPtr Procedural::TextureProcessing::mBuffer
protectedinherited

◆ mLog

bool Procedural::TextureProcessing::mLog
protectedinherited

◆ mName

Ogre::String Procedural::TextureProcessing::mName
protectedinherited

The documentation for this class was generated from the following file:
Procedural::RotationZoom::process
TextureBufferPtr process()
Run image manipulation.
Procedural::RotationZoom::setRotation
RotationZoom & setRotation(Ogre::Real rotation)
Set the rotation angle.
Ogre::ColourValue::Red
static const ColourValue Red
Ogre::ColourValue::Black
static const ColourValue Black
Procedural::Gradient::process
TextureBufferPtr process()
Run image generation.
Procedural::Gradient::setColours
Gradient & setColours(Ogre::ColourValue colourA, Ogre::ColourValue colourB, Ogre::ColourValue colourC, Ogre::ColourValue colourD)
Sets the colours of the image corners.
Ogre::ColourValue::Blue
static const ColourValue Blue
Procedural::RotationZoom
Rotate & zoom image.
Definition: ProceduralTextureModifiers.h:2447
Procedural::Gradient
Fills full image with given colour gradients.
Definition: ProceduralTextureGenerator.h:229
Ogre::ColourValue::Green
static const ColourValue Green
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50