Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions

SoColTabTextureChannel2RGBA Class Reference

List of all members.

Public Member Functions

 SoColTabTextureChannel2RGBA ()
const SbImagei32getRGBA (int rgba) const
void processChannels (const SbImagei32 *channels, int nrchannels)

Static Public Member Functions

static void initClass ()

Public Attributes

SoMFImagei32 colorsequences
SoMFBool enabled
SoMFShort opacity

Protected Member Functions

 ~SoColTabTextureChannel2RGBA ()
void sendRGBA (SoState *, const SbList< uint32_t > &dep)
void getTransparencyStatus (const SbImagei32 *channels, int size, int channelidx, char &fullyopaque, char &fullytrans) const
void computeRGBA (const SbImagei32 *channels, int start, int stop, int firstchannel, int lastchannel)
void GLRender (SoGLRenderAction *)

Static Protected Member Functions

static void fieldChangeCB (void *data, SoSensor *)

Protected Attributes

bool needsregeneration_
SoFieldSensor * sequencesensor_
SoFieldSensor * opacitysensor_
SoFieldSensor * enabledsensor_
SbImagei32 rgba_ [4]
char ti_
SoElement * matchinfo_

Private Member Functions

 SO_NODE_HEADER (SoColTabTextureChannel2RGBA)

Detailed Description

Reads any number of texture channels from the state, merges them with one colorsequence per channel, and outputs 4 texture channels (RGBA) on the state.


Constructor & Destructor Documentation

SoColTabTextureChannel2RGBA::SoColTabTextureChannel2RGBA (  ) 
SoColTabTextureChannel2RGBA::~SoColTabTextureChannel2RGBA (  )  [protected]

Member Function Documentation

void SoColTabTextureChannel2RGBA::computeRGBA ( const SbImagei32 channels,
int  start,
int  stop,
int  firstchannel,
int  lastchannel 
) [protected]
static void SoColTabTextureChannel2RGBA::fieldChangeCB ( void *  data,
SoSensor *   
) [static, protected]
const SbImagei32& SoColTabTextureChannel2RGBA::getRGBA ( int  rgba  )  const
Parameters:
rgba is 0 for red, 1 for green, 2 for blue and 3 for opacity.
void SoColTabTextureChannel2RGBA::getTransparencyStatus ( const SbImagei32 channels,
int  size,
int  channelidx,
char &  fullyopaque,
char &  fullytrans 
) const [protected]
void SoColTabTextureChannel2RGBA::GLRender ( SoGLRenderAction *   )  [protected]
static void SoColTabTextureChannel2RGBA::initClass (  )  [static]
void SoColTabTextureChannel2RGBA::processChannels ( const SbImagei32 channels,
int  nrchannels 
)
void SoColTabTextureChannel2RGBA::sendRGBA ( SoState *  ,
const SbList< uint32_t > &  dep 
) [protected]
SoColTabTextureChannel2RGBA::SO_NODE_HEADER ( SoColTabTextureChannel2RGBA   )  [private]

Member Data Documentation

Colorsequences for all images. The colorsequence is an 1-dimensional image where the size in dim0 and dim1 are 1.

SoFieldSensor* SoColTabTextureChannel2RGBA::enabledsensor_ [protected]

Specifies the maximum opacity of each image. 0 is completely transperant, 255 is completely opaque.

SoFieldSensor* SoColTabTextureChannel2RGBA::opacitysensor_ [protected]