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

Create an oil painted image. More...

#include <ProceduralTextureModifiers.h>

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

Public Member Functions

 OilPaint (TextureBufferPtr pBuffer)
 Default constructor. More...
 
OilPaintsetRadius (Ogre::uchar radius)
 Set radius size for calculation. More...
 
OilPaintsetIntensity (Ogre::Real intensity)
 Set intensity for painting. 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

Create an oil painted image.

Combine similar pixels to a small group which gives the effect of an oil painted picture.

Example:

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

dot_texture_22.png

Constructor & Destructor Documentation

◆ OilPaint()

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

Run image manipulation.

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

Implements Procedural::TextureProcessing.

◆ setIntensity()

OilPaint& Procedural::OilPaint::setIntensity ( Ogre::Real  intensity)

Set intensity for painting.

Parameters
intensityNew intensity factor which affects brush size (default 20.0)

◆ setLog()

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

Enable/Disable logging.

Parameters
enabletrue enables logging of filter actions

◆ setRadius()

OilPaint& Procedural::OilPaint::setRadius ( Ogre::uchar  radius)

Set radius size for calculation.

Parameters
radiusNew radius for detection arround current pixel [3, 255] (default 3)

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::OilPaint
Create an oil painted image.
Definition: ProceduralTextureModifiers.h:2071
Procedural::OilPaint::setRadius
OilPaint & setRadius(Ogre::uchar radius)
Set radius size for calculation.
Procedural::OilPaint::process
TextureBufferPtr process()
Run image manipulation.
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Procedural::Image::setFile
Image & setFile(Ogre::String filename, Ogre::String groupname=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
Set the colour of the background.