OpenGL::ChannelSelector Class Reference

#include <TextureContainerActions.h>

Inheritance diagram for OpenGL::ChannelSelector:

OpenGL::TextureContainerAction Console::Action List of all members.

Public Member Functions

 ChannelSelector (TextureContainer *container)
std::string run (const std::vector< std::string > &parameters)

Detailed Description

Represents channel selector actions for a specified TextureContainer instance.

The run() function can be called with the following arguments:
"range <minValue> <maxValue>" - calls setRange().
"<channel>" - calls activateSingleChannel().
"<channel><channel>" - calls activateDualChannels().
"<channel><channel><channel>" - calls activateTripleChannels().

<channel> must be a character with value 'r', 'g', 'b', or 'a'.


Constructor & Destructor Documentation

OpenGL::ChannelSelector::ChannelSelector TextureContainer container  ) 
 

Creates a ChannelSelector for the given TextureContainer.

Parameters:
container the TextureContainer to affect.


Member Function Documentation

std::string OpenGL::ChannelSelector::run const std::vector< std::string > &  parameters  )  [virtual]
 

Implementation of handle, must be supplied by concrete subclasses.

Parameters:
parameters the action's parameters.
Returns:
the result of the action.

Implements Console::Action.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:53 2006 for GPU Thesis by  doxygen 1.4.6-NO