Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::BlendChunkBase Class Reference

BlendChunk Base Class. More...

#include <OSGBlendChunkBase.h>

Inheritance diagram for osg::BlendChunkBase:

Inheritance graph
[legend]
Collaboration diagram for osg::BlendChunkBase:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  SrcFactorFieldId = Inherited::NextFieldId, DestFactorFieldId = SrcFactorFieldId + 1, ColorFieldId = DestFactorFieldId + 1, AlphaFuncFieldId = ColorFieldId + 1,
  AlphaValueFieldId = AlphaFuncFieldId + 1, NextFieldId = AlphaValueFieldId + 1
}

Public Methods

Get
virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
SFUInt32getSFSrcFactor (void)
SFUInt32getSFDestFactor (void)
SFColor4fgetSFColor (void)
SFUInt32getSFAlphaFunc (void)
SFReal32getSFAlphaValue (void)
UInt32getSrcFactor (void)
const UInt32getSrcFactor (void) const
UInt32getDestFactor (void)
const UInt32getDestFactor (void) const
Color4fgetColor (void)
const Color4fgetColor (void) const
UInt32getAlphaFunc (void)
const UInt32getAlphaFunc (void) const
Real32getAlphaValue (void)
const Real32getAlphaValue (void) const
Field Set
void setSrcFactor (const UInt32 &value)
void setDestFactor (const UInt32 &value)
void setColor (const Color4f &value)
void setAlphaFunc (const UInt32 &value)
void setAlphaValue (const Real32 &value)
Sync
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Binary Access
virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
virtual FieldContainerPtr shallowCopy (void) const

Static Public Methods

Class Get
FieldContainerTypegetClassType (void)
 access the type of the class

UInt32 getClassTypeId (void)
 access the numerical type of the class

Construction
BlendChunkPtr create (void)
 create a new instance of the class

BlendChunkPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype


Static Public Attributes

const osg::BitVector SrcFactorFieldMask
const osg::BitVector DestFactorFieldMask
const osg::BitVector ColorFieldMask
const osg::BitVector AlphaFuncFieldMask
const osg::BitVector AlphaValueFieldMask

Protected Methods

Constructors
 BlendChunkBase (void)
 Constructor.

 BlendChunkBase (const BlendChunkBase &source)
 Copy Constructor.

Destructors
virtual ~BlendChunkBase (void)
 Destructor.

Sync
void executeSyncImpl (BlendChunkBase *pOther, const BitVector &whichField)

Protected Attributes

Fields
SFUInt32 _sfSrcFactor
SFUInt32 _sfDestFactor
SFColor4f _sfColor
SFUInt32 _sfAlphaFunc
SFReal32 _sfAlphaValue

Private Types

typedef StateChunk Inherited

Private Methods

void operator= (const BlendChunkBase &source)

Static Private Attributes

FieldDescription_desc []
 BlendChunk description.

FieldContainerType _type
 BlendChunk type.


Friends

class FieldContainer

Detailed Description

BlendChunk Base Class.


Member Typedef Documentation

typedef StateChunk osg::BlendChunkBase::Inherited [private]
 

Reimplemented from osg::StateChunk.

Reimplemented in osg::BlendChunk.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
SrcFactorFieldId 
DestFactorFieldId 
ColorFieldId 
AlphaFuncFieldId 
AlphaValueFieldId 
NextFieldId 


Constructor & Destructor Documentation

BlendChunkBase::BlendChunkBase void    [protected]
 

Constructor.

BlendChunkBase::BlendChunkBase const BlendChunkBase &    source [protected]
 

Copy Constructor.

BlendChunkBase::~BlendChunkBase void    [protected, virtual]
 

Destructor.


Member Function Documentation

osg::FieldContainerType & osg::BlendChunkBase::getClassType void    [inline, static]
 

access the type of the class

Reimplemented from osg::StateChunkBase.

osg::UInt32 osg::BlendChunkBase::getClassTypeId void    [inline, static]
 

access the numerical type of the class

Reimplemented from osg::StateChunkBase.

FieldContainerType & BlendChunkBase::getType void    [virtual]
 

Reimplemented from osg::StateChunkBase.

const FieldContainerType & BlendChunkBase::getType void    const [virtual]
 

Reimplemented from osg::StateChunkBase.

UInt32 BlendChunkBase::getContainerSize void    const [virtual]
 

Reimplemented from osg::StateChunkBase.

SFUInt32 * osg::BlendChunkBase::getSFSrcFactor void    [inline]
 

SFUInt32 * osg::BlendChunkBase::getSFDestFactor void    [inline]
 

SFColor4f * osg::BlendChunkBase::getSFColor void    [inline]
 

SFUInt32 * osg::BlendChunkBase::getSFAlphaFunc void    [inline]
 

SFReal32 * osg::BlendChunkBase::getSFAlphaValue void    [inline]
 

UInt32 & osg::BlendChunkBase::getSrcFactor void    [inline]
 

const UInt32 & osg::BlendChunkBase::getSrcFactor void    const [inline]
 

UInt32 & osg::BlendChunkBase::getDestFactor void    [inline]
 

const UInt32 & osg::BlendChunkBase::getDestFactor void    const [inline]
 

Color4f & osg::BlendChunkBase::getColor void    [inline]
 

const Color4f & osg::BlendChunkBase::getColor void    const [inline]
 

UInt32 & osg::BlendChunkBase::getAlphaFunc void    [inline]
 

const UInt32 & osg::BlendChunkBase::getAlphaFunc void    const [inline]
 

Real32 & osg::BlendChunkBase::getAlphaValue void    [inline]
 

const Real32 & osg::BlendChunkBase::getAlphaValue void    const [inline]
 

void osg::BlendChunkBase::setSrcFactor const UInt32   value [inline]
 

void osg::BlendChunkBase::setDestFactor const UInt32   value [inline]
 

void osg::BlendChunkBase::setColor const Color4f   value [inline]
 

void osg::BlendChunkBase::setAlphaFunc const UInt32   value [inline]
 

void osg::BlendChunkBase::setAlphaValue const Real32   value [inline]
 

void BlendChunkBase::executeSync FieldContainer   other,
const BitVector   whichField
[virtual]
 

Reimplemented from osg::StateChunkBase.

UInt32 BlendChunkBase::getBinSize const BitVector   whichField [virtual]
 

Reimplemented from osg::StateChunkBase.

void BlendChunkBase::copyToBin BinaryDataHandler   pMem,
const BitVector   whichField
[virtual]
 

Reimplemented from osg::StateChunkBase.

void BlendChunkBase::copyFromBin BinaryDataHandler   pMem,
const BitVector   whichField
[virtual]
 

Reimplemented from osg::StateChunkBase.

BlendChunkPtr osg::BlendChunkBase::create void    [inline, static]
 

create a new instance of the class

BlendChunkPtr osg::BlendChunkBase::createEmpty void    [inline, static]
 

create an empty new instance of the class, do not copy the prototype

FieldContainerPtr BlendChunkBase::shallowCopy void    const [virtual]
 

Implements osg::FieldContainer.

void BlendChunkBase::executeSyncImpl BlendChunkBase *    pOther,
const BitVector   whichField
[protected]
 

void osg::BlendChunkBase::operator= const BlendChunkBase &    source [private]
 


Friends And Related Function Documentation

friend class FieldContainer [friend]
 

Reimplemented from osg::StateChunk.

Reimplemented in osg::BlendChunk.


Member Data Documentation

const osg::BitVector BlendChunkBase::SrcFactorFieldMask [static]
 

Initial value:

 
    (1 << BlendChunkBase::SrcFactorFieldId)

const osg::BitVector BlendChunkBase::DestFactorFieldMask [static]
 

Initial value:

 
    (1 << BlendChunkBase::DestFactorFieldId)

const osg::BitVector BlendChunkBase::ColorFieldMask [static]
 

Initial value:

 
    (1 << BlendChunkBase::ColorFieldId)

const osg::BitVector BlendChunkBase::AlphaFuncFieldMask [static]
 

Initial value:

 
    (1 << BlendChunkBase::AlphaFuncFieldId)

const osg::BitVector BlendChunkBase::AlphaValueFieldMask [static]
 

Initial value:

 
    (1 << BlendChunkBase::AlphaValueFieldId)

UInt32 BlendChunkBase::_sfSrcFactor [protected]
 

The incoming pixel is multiplied by the source factor. Legal values are directly taken from the glBlendFunc() manpage.

UInt32 BlendChunkBase::_sfDestFactor [protected]
 

The frame buffer pixel is multiplied by the destination factor. Legal values are directly taken from the glBlendFunc() manpage.

Color4f BlendChunkBase::_sfColor [protected]
 

This is the constant color used by blend modes *_CONSTANT_*.

UInt32 BlendChunkBase::_sfAlphaFunc [protected]
 

The alphaFunc defines how fragments which do not fulfill a certain condition are handled. See glAlphaFunc() for details.

Real32 BlendChunkBase::_sfAlphaValue [protected]
 

The incoming pixel is multiplied by the source factor. Legal values are directly taken from the glBlendFunc() manpage.

FieldDescription * BlendChunkBase::_desc [static, private]
 

Initial value:

 
{
    new FieldDescription(SFUInt32::getClassType(), 
                     "SrcFactor", 
                     SrcFactorFieldId, SrcFactorFieldMask,
                     false,
                     (FieldAccessMethod) &BlendChunkBase::getSFSrcFactor),
    new FieldDescription(SFUInt32::getClassType(), 
                     "DestFactor", 
                     DestFactorFieldId, DestFactorFieldMask,
                     false,
                     (FieldAccessMethod) &BlendChunkBase::getSFDestFactor),
    new FieldDescription(SFColor4f::getClassType(), 
                     "Color", 
                     ColorFieldId, ColorFieldMask,
                     false,
                     (FieldAccessMethod) &BlendChunkBase::getSFColor),
    new FieldDescription(SFUInt32::getClassType(), 
                     "alphaFunc", 
                     AlphaFuncFieldId, AlphaFuncFieldMask,
                     false,
                     (FieldAccessMethod) &BlendChunkBase::getSFAlphaFunc),
    new FieldDescription(SFReal32::getClassType(), 
                     "alphaValue", 
                     AlphaValueFieldId, AlphaValueFieldMask,
                     false,
                     (FieldAccessMethod) &BlendChunkBase::getSFAlphaValue)
}
BlendChunk description.

FieldContainerType BlendChunkBase::_type [static, private]
 

BlendChunk type.

Reimplemented from osg::StateChunkBase.


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:28:40 2002 for OpenSG by doxygen1.2.16