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

Flip the image. More...

#include <ProceduralTextureModifiers.h>

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

Public Types

enum  FLIP_AXIS { FLIP_HORIZONTAL, FLIP_VERTICAL, FLIP_POINT }
 Flip axis selection. More...
 

Public Member Functions

 Flip (TextureBufferPtr pBuffer)
 Default constructor. More...
 
FlipsetAxis (FLIP_AXIS axis)
 Set the axis to flip. 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

Flip the image.

Flip the input image on different axis.

Examples: FLIP_POINT

Procedural::TextureBuffer bufferImage(256);
Procedural::Image(&bufferImage).setFile("red_brick.jpg").process();

dot_texture_14a.png

FLIP_VERTICAL

Procedural::TextureBuffer bufferImage(256);
Procedural::Image(&bufferImage).setFile("red_brick.jpg").process();

dot_texture_14b.png

FLIP_HORIZONTAL

dot_texture_14c.png

Member Enumeration Documentation

◆ FLIP_AXIS

Flip axis selection.

Enumerator
FLIP_HORIZONTAL 

Flip horizontal.

FLIP_VERTICAL 

Flip vertical.

FLIP_POINT 

Flip middle.

Constructor & Destructor Documentation

◆ Flip()

Procedural::Flip::Flip ( 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::Flip::process ( )
virtual

Run image manipulation.

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

Implements Procedural::TextureProcessing.

◆ setAxis()

Flip& Procedural::Flip::setAxis ( FLIP_AXIS  axis)

Set the axis to flip.

Parameters
axisAxis where to flip the image arround (default FLIP_VERTICAL)

◆ setLog()

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

Enable/Disable logging.

Parameters
enabletrue enables logging of filter actions

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::Image::process
TextureBufferPtr process()
Run image generation.
Procedural::Image
Load an image from a resource.
Definition: ProceduralTextureGenerator.h:334
Procedural::Flip::FLIP_VERTICAL
@ FLIP_VERTICAL
Flip vertical.
Definition: ProceduralTextureModifiers.h:1563
Procedural::Flip::setAxis
Flip & setAxis(FLIP_AXIS axis)
Set the axis to flip.
Procedural::Flip::FLIP_POINT
@ FLIP_POINT
Flip middle.
Definition: ProceduralTextureModifiers.h:1564
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Procedural::Flip::FLIP_HORIZONTAL
@ FLIP_HORIZONTAL
Flip horizontal.
Definition: ProceduralTextureModifiers.h:1562
Procedural::Image::setFile
Image & setFile(Ogre::String filename, Ogre::String groupname=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
Set the colour of the background.
Procedural::Flip
Flip the image.
Definition: ProceduralTextureModifiers.h:1556
Procedural::Flip::process
TextureBufferPtr process()
Run image manipulation.