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

Combine inputs together. More...

#include <ProceduralTextureModifiers.h>

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

Public Types

enum  COMBINE_METHOD {
  METHOD_ADD_CLAMP, METHOD_ADD_WRAP, METHOD_SUB_CLAMP, METHOD_SUB_WRAP,
  METHOD_MULTIPLY, METHOD_MULTIPLY2, METHOD_BLEND, METHOD_ALPHA,
  METHOD_LAYER
}
 Methods how to combine image. More...
 

Public Member Functions

 Combine (TextureBufferPtr pBuffer)
 Default constructor. More...
 
CombineaddImage (TextureBufferPtr image, COMBINE_METHOD method=METHOD_LAYER)
 Add image to process queue. More...
 
CombinesetColour (Ogre::ColourValue colour)
 Set the percent colour to add on image. More...
 
CombinesetColour (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f)
 Set the percent colour to add on image. 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

Combine inputs together.

Provides several ways of combining. Clamps bitmap to base input size.

Example:

dot_texture_08.png

Member Enumeration Documentation

◆ COMBINE_METHOD

Methods how to combine image.

Enumerator
METHOD_ADD_CLAMP 
METHOD_ADD_WRAP 
METHOD_SUB_CLAMP 
METHOD_SUB_WRAP 
METHOD_MULTIPLY 
METHOD_MULTIPLY2 
METHOD_BLEND 
METHOD_ALPHA 
METHOD_LAYER 

Constructor & Destructor Documentation

◆ Combine()

Procedural::Combine::Combine ( TextureBufferPtr  pBuffer)

Default constructor.

Parameters
pBufferImage buffer where to modify the image.

Member Function Documentation

◆ addImage()

Combine& Procedural::Combine::addImage ( TextureBufferPtr  image,
COMBINE_METHOD  method = METHOD_LAYER 
)

Add image to process queue.

Parameters
imagePointer on image to process
methodMethod how to process the image

◆ 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::Combine::process ( )
virtual

Run image manipulation.

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

Implements Procedural::TextureProcessing.

◆ setColour() [1/2]

Combine& Procedural::Combine::setColour ( Ogre::ColourValue  colour)

Set the percent colour to add on image.

Parameters
colourNew colour for drawing (default Ogre::ColourValue::White)

◆ setColour() [2/2]

Combine& Procedural::Combine::setColour ( Ogre::Real  red,
Ogre::Real  green,
Ogre::Real  blue,
Ogre::Real  alpha = 1.0f 
)

Set the percent colour to add on image.

Parameters
redRed value of drawing colour [0.0, 1.0] (default 1.0)
greenGreen value of drawing colour [0.0, 1.0] (default 1.0)
blueBlue value of drawing colour [0.0, 1.0] (default 1.0)
alphaAlpha value of drawing colour [0.0, 1.0] (default 1.0)

◆ 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:
Ogre::ColourValue::Red
static const ColourValue Red
Procedural::Combine::METHOD_ADD_CLAMP
@ METHOD_ADD_CLAMP
Definition: ProceduralTextureModifiers.h:770
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.
Procedural::Cloud
Creates a cloud structured image.
Definition: ProceduralTextureGenerator.h:174
Ogre::ColourValue::Blue
static const ColourValue Blue
Procedural::Combine::addImage
Combine & addImage(TextureBufferPtr image, COMBINE_METHOD method=METHOD_LAYER)
Add image to process queue.
Procedural::Gradient
Fills full image with given colour gradients.
Definition: ProceduralTextureGenerator.h:229
Procedural::Cloud::process
TextureBufferPtr process()
Run image generation.
Procedural::Combine::process
TextureBufferPtr process()
Run image manipulation.
Ogre::ColourValue::Green
static const ColourValue Green
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Procedural::Combine
Combine inputs together.
Definition: ProceduralTextureModifiers.h:764