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

Creates a marble structured image. More...

#include <ProceduralTextureGenerator.h>

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

Public Member Functions

 Marble (TextureBufferPtr pBuffer)
 Default constructor. More...
 
MarblesetColour (Ogre::ColourValue colour)
 Set the colour of the background. More...
 
MarblesetColour (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f)
 Set the colour of the background. More...
 
MarblesetSeed (Ogre::uint seed)
 Set the seed for "random" number generator. More...
 
TextureBufferPtr process ()
 Run image generation. 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

Creates a marble structured image.

Creates a marbel structure from a specified perlin noise on a coloured background.

Example:

Procedural::TextureBuffer bufferMarble(256);
Procedural::Marble(&bufferMarble).process();

Constructor & Destructor Documentation

◆ Marble()

Procedural::Marble::Marble ( TextureBufferPtr  pBuffer)

Default constructor.

Parameters
pBufferImage buffer where to store the generated 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::Marble::process ( )
virtual

Run image generation.

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

Implements Procedural::TextureProcessing.

◆ setColour() [1/2]

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

Set the colour of the background.

Parameters
colourNew colour for marble structure (default Ogre::ColourValue::White)

◆ setColour() [2/2]

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

Set the colour of the background.

Parameters
redRed value of the marble structure colour [0.0, 1.0] (default 1.0)
greenGreen value of the marble structure colour [0.0, 1.0] (default 1.0)
blueBlue valu of the marble structure coloure [0.0, 1.0] (default 1.0)
alphaAlpha value of the marble structure 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

◆ setSeed()

Marble& Procedural::Marble::setSeed ( Ogre::uint  seed)

Set the seed for "random" number generator.

Parameters
seedSeed value where to set the random number generator (default 5120)

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::Marble::process
TextureBufferPtr process()
Run image generation.
Procedural::Marble
Creates a marble structured image.
Definition: ProceduralTextureGenerator.h:430
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50