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

Expands bright areas over darker areas. More...

#include <ProceduralTextureModifiers.h>

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

Public Member Functions

 Dilate (TextureBufferPtr pBuffer)
 Default constructor. More...
 
DilatesetIterations (Ogre::uchar iterations)
 Set number of iterations for dilating. 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

Expands bright areas over darker areas.

This filter dilate mid range area of the input image.

Example:

Procedural::TextureBuffer bufferCloud(256);
Procedural::Cloud(&bufferCloud).process();
Procedural::Dilate(&bufferCloud).process();

dot_texture_11.png

Constructor & Destructor Documentation

◆ Dilate()

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

Run image manipulation.

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

Implements Procedural::TextureProcessing.

◆ setIterations()

Dilate& Procedural::Dilate::setIterations ( Ogre::uchar  iterations)

Set number of iterations for dilating.

Parameters
iterationsNew number of dilating iterations [1, 255] (default 10)

◆ 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::Dilate
Expands bright areas over darker areas.
Definition: ProceduralTextureModifiers.h:1228
Procedural::Cloud
Creates a cloud structured image.
Definition: ProceduralTextureGenerator.h:174
Procedural::Cloud::process
TextureBufferPtr process()
Run image generation.
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Procedural::Dilate::process
TextureBufferPtr process()
Run image manipulation.