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

osg::RegisterCombinersChunk Class Reference

#include <OSGRegisterCombinersChunk.h>

Inheritance diagram for osg::RegisterCombinersChunk:

osg::RegisterCombinersChunkBase osg::StateChunk osg::StateChunkBase osg::Attachment osg::FieldContainer List of all members.

Public Types

typedef RegisterCombinersChunkPtr Ptr
enum  {
  Color0FieldId = Inherited::NextFieldId, Color1FieldId = Color0FieldId + 1, ColorSumClampFieldId = Color1FieldId + 1, VariableArgbFieldId = ColorSumClampFieldId + 1,
  VariableBrgbFieldId = VariableArgbFieldId + 1, VariableCrgbFieldId = VariableBrgbFieldId + 1, VariableDrgbFieldId = VariableCrgbFieldId + 1, VariableAalphaFieldId = VariableDrgbFieldId + 1,
  VariableBalphaFieldId = VariableAalphaFieldId + 1, VariableCalphaFieldId = VariableBalphaFieldId + 1, VariableDalphaFieldId = VariableCalphaFieldId + 1, OutputABrgbFieldId = VariableDalphaFieldId + 1,
  OutputCDrgbFieldId = OutputABrgbFieldId + 1, OutputSumrgbFieldId = OutputCDrgbFieldId + 1, ScalergbFieldId = OutputSumrgbFieldId + 1, BiasrgbFieldId = ScalergbFieldId + 1,
  OutputABalphaFieldId = BiasrgbFieldId + 1, OutputCDalphaFieldId = OutputABalphaFieldId + 1, OutputSumalphaFieldId = OutputCDalphaFieldId + 1, DotABrgbFieldId = OutputSumalphaFieldId + 1,
  DotCDrgbFieldId = DotABrgbFieldId + 1, MuxSumrgbFieldId = DotCDrgbFieldId + 1, ScalealphaFieldId = MuxSumrgbFieldId + 1, BiasalphaFieldId = ScalealphaFieldId + 1,
  MuxSumalphaFieldId = BiasalphaFieldId + 1, VariableEFieldId = MuxSumalphaFieldId + 1, VariableFFieldId = VariableEFieldId + 1, VariableGFieldId = VariableFFieldId + 1,
  CombinerColor0FieldId = VariableGFieldId + 1, CombinerColor1FieldId = CombinerColor0FieldId + 1, PerStageConstantsFieldId = CombinerColor1FieldId + 1, NextFieldId = PerStageConstantsFieldId + 1
}

Public Member Functions

Chunk Class Access
*virtual const StateChunkClassgetClass (void) const
Sync
*virtual void changed (BitVector whichField, UInt32 from)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
State
*virtual void activate (DrawActionBase *action, UInt32 index=0)
virtual void changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0)
virtual void deactivate (DrawActionBase *action, UInt32 index=0)
virtual bool isTransparent (void) const
Comparison
*virtual Real32 switchCost (StateChunk *chunk)
virtual bool operator< (const StateChunk &other) const
virtual bool operator== (const StateChunk &other) const
virtual bool operator!= (const StateChunk &other) const
Register Combiner Specific
*void clearCombiners (void)
void clearCombiner (UInt16 which)
void setConstantColors (Color4f &color0, Color4f &color1)
void setCombinerColors (UInt16 which, Color4f &color0, Color4f &color1)
void setCombinerRGB (UInt16 which, GLenum ainput, GLenum amapping, GLenum acompusage, GLenum binput, GLenum bmapping, GLenum bcompusage, GLenum cinput, GLenum cmapping, GLenum ccompusage, GLenum dinput, GLenum dmapping, GLenum dcompusage, GLenum outputAB, GLenum outputCD, GLenum outputSum, GLenum scale, GLenum bias, GLboolean dotAB, GLboolean dotCD, GLboolean muxSum)
void setCombinerAlpha (UInt16 which, GLenum ainput, GLenum amapping, GLenum acompusage, GLenum binput, GLenum bmapping, GLenum bcompusage, GLenum cinput, GLenum cmapping, GLenum ccompusage, GLenum dinput, GLenum dmapping, GLenum dcompusage, GLenum outputAB, GLenum outputCD, GLenum outputSum, GLenum scale, GLenum bias, GLboolean muxSum)
void setFinalCombiner (GLenum ainput, GLenum amapping, GLenum acompusage, GLenum binput, GLenum bmapping, GLenum bcompusage, GLenum cinput, GLenum cmapping, GLenum ccompusage, GLenum dinput, GLenum dmapping, GLenum dcompusage, GLenum einput, GLenum emapping, GLenum ecompusage, GLenum finput, GLenum fmapping, GLenum fcompusage, GLenum ginput, GLenum gmapping, GLenum gcompusage)
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFColor4fgetSFColor0 (void)
 Get the RegisterCombinersChunk::_sfColor0 field.
SFColor4fgetSFColor1 (void)
 Get the RegisterCombinersChunk::_sfColor1 field.
SFBoolgetSFColorSumClamp (void)
 Get the RegisterCombinersChunk::_sfColorSumClamp field.
MFGLenumgetMFVariableArgb (void)
 Get the RegisterCombinersChunk::_mfVariableArgb field.
MFGLenumgetMFVariableBrgb (void)
 Get the RegisterCombinersChunk::_mfVariableBrgb field.
MFGLenumgetMFVariableCrgb (void)
 Get the RegisterCombinersChunk::_mfVariableCrgb field.
MFGLenumgetMFVariableDrgb (void)
 Get the RegisterCombinersChunk::_mfVariableDrgb field.
MFGLenumgetMFVariableAalpha (void)
 Get the RegisterCombinersChunk::_mfVariableAalpha field.
MFGLenumgetMFVariableBalpha (void)
 Get the RegisterCombinersChunk::_mfVariableBalpha field.
MFGLenumgetMFVariableCalpha (void)
 Get the RegisterCombinersChunk::_mfVariableCalpha field.
MFGLenumgetMFVariableDalpha (void)
 Get the RegisterCombinersChunk::_mfVariableDalpha field.
MFGLenumgetMFOutputABrgb (void)
 Get the RegisterCombinersChunk::_mfOutputABrgb field.
MFGLenumgetMFOutputCDrgb (void)
 Get the RegisterCombinersChunk::_mfOutputCDrgb field.
MFGLenumgetMFOutputSumrgb (void)
 Get the RegisterCombinersChunk::_mfOutputSumrgb field.
MFGLenumgetMFScalergb (void)
 Get the RegisterCombinersChunk::_mfScalergb field.
MFGLenumgetMFBiasrgb (void)
 Get the RegisterCombinersChunk::_mfBiasrgb field.
MFGLenumgetMFOutputABalpha (void)
 Get the RegisterCombinersChunk::_mfOutputABalpha field.
MFGLenumgetMFOutputCDalpha (void)
 Get the RegisterCombinersChunk::_mfOutputCDalpha field.
MFGLenumgetMFOutputSumalpha (void)
 Get the RegisterCombinersChunk::_mfOutputSumalpha field.
MFUInt8getMFDotABrgb (void)
 Get the RegisterCombinersChunk::_mfDotABrgb field.
MFUInt8getMFDotCDrgb (void)
 Get the RegisterCombinersChunk::_mfDotCDrgb field.
MFUInt8getMFMuxSumrgb (void)
 Get the RegisterCombinersChunk::_mfMuxSumrgb field.
MFGLenumgetMFScalealpha (void)
 Get the RegisterCombinersChunk::_mfScalealpha field.
MFGLenumgetMFBiasalpha (void)
 Get the RegisterCombinersChunk::_mfBiasalpha field.
MFUInt8getMFMuxSumalpha (void)
 Get the RegisterCombinersChunk::_mfMuxSumalpha field.
MFGLenumgetMFVariableE (void)
 Get the RegisterCombinersChunk::_mfVariableE field.
MFGLenumgetMFVariableF (void)
 Get the RegisterCombinersChunk::_mfVariableF field.
MFGLenumgetMFVariableG (void)
 Get the RegisterCombinersChunk::_mfVariableG field.
MFColor4fgetMFCombinerColor0 (void)
 Get the RegisterCombinersChunk::_mfCombinerColor0 field.
MFColor4fgetMFCombinerColor1 (void)
 Get the RegisterCombinersChunk::_mfCombinerColor1 field.
SFUInt8getSFPerStageConstants (void)
 Get the RegisterCombinersChunk::_sfPerStageConstants field.
Color4fgetColor0 (void)
 Get the value of the RegisterCombinersChunk::_sfColor0 field.
const Color4fgetColor0 (void) const
 Get the value of the RegisterCombinersChunk::_sfColor0 field.
Color4fgetColor1 (void)
 Get the value of the RegisterCombinersChunk::_sfColor1 field.
const Color4fgetColor1 (void) const
 Get the value of the RegisterCombinersChunk::_sfColor1 field.
bool & getColorSumClamp (void)
 Get the value of the RegisterCombinersChunk::_sfColorSumClamp field.
const bool & getColorSumClamp (void) const
 Get the value of the RegisterCombinersChunk::_sfColorSumClamp field.
UInt8getPerStageConstants (void)
 Get the value of the RegisterCombinersChunk::_sfPerStageConstants field.
const UInt8getPerStageConstants (void) const
 Get the value of the RegisterCombinersChunk::_sfPerStageConstants field.
GLenumgetVariableArgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableArgb field.
MFGLenumgetVariableArgb (void)
 Get the RegisterCombinersChunk::_mfVariableArgb field.
const MFGLenumgetVariableArgb (void) const
 Get the RegisterCombinersChunk::_mfVariableArgb field.
GLenumgetVariableBrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableBrgb field.
MFGLenumgetVariableBrgb (void)
 Get the RegisterCombinersChunk::_mfVariableBrgb field.
const MFGLenumgetVariableBrgb (void) const
 Get the RegisterCombinersChunk::_mfVariableBrgb field.
GLenumgetVariableCrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableCrgb field.
MFGLenumgetVariableCrgb (void)
 Get the RegisterCombinersChunk::_mfVariableCrgb field.
const MFGLenumgetVariableCrgb (void) const
 Get the RegisterCombinersChunk::_mfVariableCrgb field.
GLenumgetVariableDrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableDrgb field.
MFGLenumgetVariableDrgb (void)
 Get the RegisterCombinersChunk::_mfVariableDrgb field.
const MFGLenumgetVariableDrgb (void) const
 Get the RegisterCombinersChunk::_mfVariableDrgb field.
GLenumgetVariableAalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableAalpha field.
MFGLenumgetVariableAalpha (void)
 Get the RegisterCombinersChunk::_mfVariableAalpha field.
const MFGLenumgetVariableAalpha (void) const
 Get the RegisterCombinersChunk::_mfVariableAalpha field.
GLenumgetVariableBalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableBalpha field.
MFGLenumgetVariableBalpha (void)
 Get the RegisterCombinersChunk::_mfVariableBalpha field.
const MFGLenumgetVariableBalpha (void) const
 Get the RegisterCombinersChunk::_mfVariableBalpha field.
GLenumgetVariableCalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableCalpha field.
MFGLenumgetVariableCalpha (void)
 Get the RegisterCombinersChunk::_mfVariableCalpha field.
const MFGLenumgetVariableCalpha (void) const
 Get the RegisterCombinersChunk::_mfVariableCalpha field.
GLenumgetVariableDalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableDalpha field.
MFGLenumgetVariableDalpha (void)
 Get the RegisterCombinersChunk::_mfVariableDalpha field.
const MFGLenumgetVariableDalpha (void) const
 Get the RegisterCombinersChunk::_mfVariableDalpha field.
GLenumgetOutputABrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputABrgb field.
MFGLenumgetOutputABrgb (void)
 Get the RegisterCombinersChunk::_mfOutputABrgb field.
const MFGLenumgetOutputABrgb (void) const
 Get the RegisterCombinersChunk::_mfOutputABrgb field.
GLenumgetOutputCDrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputCDrgb field.
MFGLenumgetOutputCDrgb (void)
 Get the RegisterCombinersChunk::_mfOutputCDrgb field.
const MFGLenumgetOutputCDrgb (void) const
 Get the RegisterCombinersChunk::_mfOutputCDrgb field.
GLenumgetOutputSumrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputSumrgb field.
MFGLenumgetOutputSumrgb (void)
 Get the RegisterCombinersChunk::_mfOutputSumrgb field.
const MFGLenumgetOutputSumrgb (void) const
 Get the RegisterCombinersChunk::_mfOutputSumrgb field.
GLenumgetScalergb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfScalergb field.
MFGLenumgetScalergb (void)
 Get the RegisterCombinersChunk::_mfScalergb field.
const MFGLenumgetScalergb (void) const
 Get the RegisterCombinersChunk::_mfScalergb field.
GLenumgetBiasrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfBiasrgb field.
MFGLenumgetBiasrgb (void)
 Get the RegisterCombinersChunk::_mfBiasrgb field.
const MFGLenumgetBiasrgb (void) const
 Get the RegisterCombinersChunk::_mfBiasrgb field.
GLenumgetOutputABalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputABalpha field.
MFGLenumgetOutputABalpha (void)
 Get the RegisterCombinersChunk::_mfOutputABalpha field.
const MFGLenumgetOutputABalpha (void) const
 Get the RegisterCombinersChunk::_mfOutputABalpha field.
GLenumgetOutputCDalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputCDalpha field.
MFGLenumgetOutputCDalpha (void)
 Get the RegisterCombinersChunk::_mfOutputCDalpha field.
const MFGLenumgetOutputCDalpha (void) const
 Get the RegisterCombinersChunk::_mfOutputCDalpha field.
GLenumgetOutputSumalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfOutputSumalpha field.
MFGLenumgetOutputSumalpha (void)
 Get the RegisterCombinersChunk::_mfOutputSumalpha field.
const MFGLenumgetOutputSumalpha (void) const
 Get the RegisterCombinersChunk::_mfOutputSumalpha field.
UInt8getDotABrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfDotABrgb field.
MFUInt8getDotABrgb (void)
 Get the RegisterCombinersChunk::_mfDotABrgb field.
const MFUInt8getDotABrgb (void) const
 Get the RegisterCombinersChunk::_mfDotABrgb field.
UInt8getDotCDrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfDotCDrgb field.
MFUInt8getDotCDrgb (void)
 Get the RegisterCombinersChunk::_mfDotCDrgb field.
const MFUInt8getDotCDrgb (void) const
 Get the RegisterCombinersChunk::_mfDotCDrgb field.
UInt8getMuxSumrgb (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfMuxSumrgb field.
MFUInt8getMuxSumrgb (void)
 Get the RegisterCombinersChunk::_mfMuxSumrgb field.
const MFUInt8getMuxSumrgb (void) const
 Get the RegisterCombinersChunk::_mfMuxSumrgb field.
GLenumgetScalealpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfScalealpha field.
MFGLenumgetScalealpha (void)
 Get the RegisterCombinersChunk::_mfScalealpha field.
const MFGLenumgetScalealpha (void) const
 Get the RegisterCombinersChunk::_mfScalealpha field.
GLenumgetBiasalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfBiasalpha field.
MFGLenumgetBiasalpha (void)
 Get the RegisterCombinersChunk::_mfBiasalpha field.
const MFGLenumgetBiasalpha (void) const
 Get the RegisterCombinersChunk::_mfBiasalpha field.
UInt8getMuxSumalpha (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfMuxSumalpha field.
MFUInt8getMuxSumalpha (void)
 Get the RegisterCombinersChunk::_mfMuxSumalpha field.
const MFUInt8getMuxSumalpha (void) const
 Get the RegisterCombinersChunk::_mfMuxSumalpha field.
GLenumgetVariableE (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableE field.
MFGLenumgetVariableE (void)
 Get the RegisterCombinersChunk::_mfVariableE field.
const MFGLenumgetVariableE (void) const
 Get the RegisterCombinersChunk::_mfVariableE field.
GLenumgetVariableF (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableF field.
MFGLenumgetVariableF (void)
 Get the RegisterCombinersChunk::_mfVariableF field.
const MFGLenumgetVariableF (void) const
 Get the RegisterCombinersChunk::_mfVariableF field.
GLenumgetVariableG (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfVariableG field.
MFGLenumgetVariableG (void)
 Get the RegisterCombinersChunk::_mfVariableG field.
const MFGLenumgetVariableG (void) const
 Get the RegisterCombinersChunk::_mfVariableG field.
Color4fgetCombinerColor0 (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfCombinerColor0 field.
MFColor4fgetCombinerColor0 (void)
 Get the RegisterCombinersChunk::_mfCombinerColor0 field.
const MFColor4fgetCombinerColor0 (void) const
 Get the RegisterCombinersChunk::_mfCombinerColor0 field.
Color4fgetCombinerColor1 (const UInt32 index)
 Get the value of the index element the RegisterCombinersChunk::_mfCombinerColor1 field.
MFColor4fgetCombinerColor1 (void)
 Get the RegisterCombinersChunk::_mfCombinerColor1 field.
const MFColor4fgetCombinerColor1 (void) const
 Get the RegisterCombinersChunk::_mfCombinerColor1 field.
Field Set
*void setColor0 (const Color4f &value)
 Set the value of the RegisterCombinersChunk::_sfColor0 field.
void setColor1 (const Color4f &value)
 Set the value of the RegisterCombinersChunk::_sfColor1 field.
void setColorSumClamp (const bool &value)
 Set the value of the RegisterCombinersChunk::_sfColorSumClamp field.
void setPerStageConstants (const UInt8 &value)
 Set the value of the RegisterCombinersChunk::_sfPerStageConstants field.
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
Chunk Class Access
*UInt32 getClassId (void) const
Parents
*MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
*SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
Chunk Class Access
*UInt32 getClassId (void) const
Parents
*MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
*SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)

Static Public Member Functions

Static Chunk Class Access
*static UInt32 getStaticClassId (void)
static const StateChunkClassgetStaticClass (void)
Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static RegisterCombinersChunkPtr create (void)
 create a new instance of the class
static RegisterCombinersChunkPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype

Static Public Attributes

static const osg::BitVector Color0FieldMask
static const osg::BitVector Color1FieldMask
static const osg::BitVector ColorSumClampFieldMask
static const osg::BitVector VariableArgbFieldMask
static const osg::BitVector VariableBrgbFieldMask
static const osg::BitVector VariableCrgbFieldMask
static const osg::BitVector VariableDrgbFieldMask
static const osg::BitVector VariableAalphaFieldMask
static const osg::BitVector VariableBalphaFieldMask
static const osg::BitVector VariableCalphaFieldMask
static const osg::BitVector VariableDalphaFieldMask
static const osg::BitVector OutputABrgbFieldMask
static const osg::BitVector OutputCDrgbFieldMask
static const osg::BitVector OutputSumrgbFieldMask
static const osg::BitVector ScalergbFieldMask
static const osg::BitVector BiasrgbFieldMask
static const osg::BitVector OutputABalphaFieldMask
static const osg::BitVector OutputCDalphaFieldMask
static const osg::BitVector OutputSumalphaFieldMask
static const osg::BitVector DotABrgbFieldMask
static const osg::BitVector DotCDrgbFieldMask
static const osg::BitVector MuxSumrgbFieldMask
static const osg::BitVector ScalealphaFieldMask
static const osg::BitVector BiasalphaFieldMask
static const osg::BitVector MuxSumalphaFieldMask
static const osg::BitVector VariableEFieldMask
static const osg::BitVector VariableFFieldMask
static const osg::BitVector VariableGFieldMask
static const osg::BitVector CombinerColor0FieldMask
static const osg::BitVector CombinerColor1FieldMask
static const osg::BitVector PerStageConstantsFieldMask
static const osg::BitVector MTInfluenceMask
static const BitVector InternalFieldMask = (1 << Attachment::InternalFieldId)
static const BitVector ParentsFieldMask = (1 << Attachment::ParentsFieldId)
static const BitVector NextFieldMask

Protected Member Functions

Constructors
RegisterCombinersChunk (void)
 RegisterCombinersChunk (const RegisterCombinersChunk &source)
Destructors
*virtual ~RegisterCombinersChunk (void)
Helpers
*void ensureSizes (void)
Sync
*void executeSyncImpl (RegisterCombinersChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
MT Destruction
*virtual void onDestroy (void)
Sync
*void executeSyncImpl (