#include <OSGBlendChunkBase.h>
Inheritance diagram for osg::BlendChunkBase:


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 FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| SFUInt32 * | getSFSrcFactor (void) |
| SFUInt32 * | getSFDestFactor (void) |
| SFColor4f * | getSFColor (void) |
| SFUInt32 * | getSFAlphaFunc (void) |
| SFReal32 * | getSFAlphaValue (void) |
| UInt32 & | getSrcFactor (void) |
| const UInt32 & | getSrcFactor (void) const |
| UInt32 & | getDestFactor (void) |
| const UInt32 & | getDestFactor (void) const |
| Color4f & | getColor (void) |
| const Color4f & | getColor (void) const |
| UInt32 & | getAlphaFunc (void) |
| const UInt32 & | getAlphaFunc (void) const |
| Real32 & | getAlphaValue (void) |
| const Real32 & | getAlphaValue (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 | |
| FieldContainerType & | getClassType (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 |
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::BlendChunk. |
|
|
|
|
|
Constructor.
|
|
|
Copy Constructor.
|
|
|
Destructor.
|
|
|
access the type of the class
Reimplemented from osg::StateChunkBase. |
|
|
access the numerical type of the class
Reimplemented from osg::StateChunkBase. |
|
|
Reimplemented from osg::StateChunkBase. |
|
|
Reimplemented from osg::StateChunkBase. |
|
|
Reimplemented from osg::StateChunkBase. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. |
|
|
Reimplemented from osg::StateChunkBase. |
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. |
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. |
|
|
create a new instance of the class
|
|
|
create an empty new instance of the class, do not copy the prototype
|
|
|
Implements osg::FieldContainer. |
|
||||||||||||
|
|
|
|
|
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::BlendChunk. |
|
|
Initial value:
(1 << BlendChunkBase::SrcFactorFieldId) |
|
|
Initial value:
(1 << BlendChunkBase::DestFactorFieldId) |
|
|
Initial value:
(1 << BlendChunkBase::ColorFieldId) |
|
|
Initial value:
(1 << BlendChunkBase::AlphaFuncFieldId) |
|
|
Initial value:
(1 << BlendChunkBase::AlphaValueFieldId) |
|
|
The incoming pixel is multiplied by the source factor. Legal values are directly taken from the glBlendFunc() manpage. |
|
|
The frame buffer pixel is multiplied by the destination factor. Legal values are directly taken from the glBlendFunc() manpage. |
|
|
This is the constant color used by blend modes *_CONSTANT_*. |
|
|
The alphaFunc defines how fragments which do not fulfill a certain condition are handled. See glAlphaFunc() for details. |
|
|
The incoming pixel is multiplied by the source factor. Legal values are directly taken from the glBlendFunc() manpage. |
|
|
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 type.
Reimplemented from osg::StateChunkBase. |
1.2.16