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::Channel Class Reference

Extract one channel or create gray image. More...

#include <ProceduralTextureModifiers.h>

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

Public Types

enum  CANNEL_SELECTION {
  SELECT_RED, SELECT_GREEN, SELECT_BLUE, SELECT_ALPHA,
  SELECT_GRAY
}
 

Public Member Functions

 Channel (TextureBufferPtr pBuffer)
 Default constructor. More...
 
ChannelsetSelection (CANNEL_SELECTION selection)
 Set selection. 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

Extract one channel or create gray image.

Reduce given image to a given channel or calculate gray image of it

Examples: SELECT_BLUE

dot_texture_06a.png

SELECT_GRAY

dot_texture_06b.png

Member Enumeration Documentation

◆ CANNEL_SELECTION

Enumerator
SELECT_RED 
SELECT_GREEN 
SELECT_BLUE 
SELECT_ALPHA 
SELECT_GRAY 

Constructor & Destructor Documentation

◆ Channel()

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

Run image manipulation.

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

Implements Procedural::TextureProcessing.

◆ setLog()

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

Enable/Disable logging.

Parameters
enabletrue enables logging of filter actions

◆ setSelection()

Channel& Procedural::Channel::setSelection ( CANNEL_SELECTION  selection)

Set selection.

Parameters
selectionMode which channel should selected (default SELECT_GRAY)

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::Channel::SELECT_BLUE
@ SELECT_BLUE
Definition: ProceduralTextureModifiers.h:505
Procedural::Channel
Extract one channel or create gray image.
Definition: ProceduralTextureModifiers.h:498
Procedural::Image::process
TextureBufferPtr process()
Run image generation.
Procedural::Image
Load an image from a resource.
Definition: ProceduralTextureGenerator.h:334
Procedural::Channel::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.
Procedural::Channel::SELECT_GRAY
@ SELECT_GRAY
Definition: ProceduralTextureModifiers.h:507
Procedural::Channel::setSelection
Channel & setSelection(CANNEL_SELECTION selection)
Set selection.