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

osg::StateChunk Class Reference
[OpenGL State Handling]

The abstract base class for StateChunks, see StateChunk for a description. More...

#include <OSGStateChunk.h>

Inheritance diagram for osg::StateChunk:

osg::StateChunkBase osg::Attachment osg::FieldContainer osg::BlendChunkBase osg::ClipPlaneChunkBase osg::ColorMaskChunkBase osg::DepthChunkBase osg::LightChunkBase osg::LineChunkBase osg::MaterialChunkBase osg::PointChunkBase osg::PolygonChunkBase osg::ProgramChunkBase osg::RegisterCombinersChunkBase osg::ShaderParameterChunkBase osg::StencilChunkBase osg::TexGenChunkBase osg::TextureChunkBase osg::TransformChunkBase osg::TwoSidedLightingChunkBase List of all members.

General Fieldcontainer Declaration

virtual osg::FieldContainerPtr shallowCopy (void) const
static AttachmentPtr create (void)
static AttachmentPtr createEmpty (void)

Public Types

typedef StateChunkPtr Ptr
enum  { ParentsFieldId = Inherited::NextFieldId, InternalFieldId = ParentsFieldId + 1, NextFieldId = InternalFieldId + 1 }

Public Member Functions

Chunk Class Access
*UInt32 getClassId (void) const
virtual const StateChunkClassgetClass (void) const
Sync
*virtual void changed (BitVector whichField, UInt32 origin)
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
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
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)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)

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
Get Class Type Information
static UInt16 getClassGroupId (void)

Static Public Attributes

static const osg::BitVector MTInfluenceMask
static const BitVector InternalFieldMask = (1 << Attachment::InternalFieldId)
static const BitVector ParentsFieldMask = (1 << Attachment::ParentsFieldId)
static const BitVector NextFieldMask
CoredNodePtr helper
static const bool isNodeCore = false

Protected Member Functions

Constructors
StateChunk (void)
 StateChunk (const StateChunk &source)
Destructors
*virtual ~StateChunk (void)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Destruction
*virtual void onDestroy (void)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)

Static Protected Member Functions

static void initMethod (void)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)

Protected Attributes

Fields
*SFBool _sfInternal
MFFieldContainerPtr _parents
Member
*UInt32 _shares

Static Protected Attributes

Type information
*static FieldDescription_desc []

Private Types

typedef StateChunkBase Inherited

Private Member Functions

void operator= (const StateChunk &source)

Static Private Attributes

static char cvsid [] = "@(#)$Id: $"

Friends

class FieldContainer
class StateChunkBase

Detailed Description

See State Handling for the conceptual background.

Definition at line 104 of file OSGStateChunk.h.


Member Typedef Documentation

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

Reimplemented from osg::StateChunkBase.

Reimplemented in osg::FatBorderChunk, osg::FatBorderChunkBase, osg::BlendChunk, osg::BlendChunkBase, osg::ClipPlaneChunk, osg::ClipPlaneChunkBase, osg::ColorMaskChunk, osg::ColorMaskChunkBase, osg::CubeTextureChunk, osg::CubeTextureChunkBase, osg::DepthChunk, osg::DepthChunkBase, osg::FragmentProgramChunk, osg::FragmentProgramChunkBase, osg::LightChunk, osg::LightChunkBase, osg::LineChunk, osg::LineChunkBase, osg::MaterialChunk, osg::MaterialChunkBase, osg::PointChunk, osg::PointChunkBase, osg::PolygonChunk, osg::PolygonChunkBase, osg::ProgramChunk, osg::ProgramChunkBase, osg::RegisterCombinersChunk, osg::RegisterCombinersChunkBase, osg::StencilChunk, osg::StencilChunkBase, osg::TexGenChunk, osg::TexGenChunkBase, osg::TextureChunk, osg::TextureChunkBase, osg::TextureTransformChunk, osg::TextureTransformChunkBase, osg::TransformChunk, osg::TransformChunkBase, osg::TwoSidedLightingChunk, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunk, osg::VertexProgramChunkBase, osg::ShaderChunk, osg::ShaderChunkBase, osg::ShaderParameterChunk, osg::ShaderParameterChunkBase, osg::SHLChunk, osg::SHLChunkBase, osg::SHLParameterChunk, and osg::SHLParameterChunkBase.

Definition at line 192 of file OSGStateChunk.h.

typedef StateChunkPtr osg::StateChunkBase::Ptr [inherited]
 

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::ShaderChunkBase, osg::ShaderParameterChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase.

Definition at line 89 of file OSGStateChunkBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
ParentsFieldId 
InternalFieldId 
NextFieldId 

Reimplemented from osg::FieldContainer.

Definition at line 86 of file OSGAttachmentImpl.h.

00087     { 
00088         ParentsFieldId     = Inherited::NextFieldId, 
00089         InternalFieldId    = ParentsFieldId  + 1,
00090         NextFieldId        = InternalFieldId + 1
00091     };


Constructor & Destructor Documentation

StateChunk::StateChunk void   )  [protected]
 

Definition at line 207 of file OSGStateChunk.cpp.

00207                            :
00208     Inherited()
00209 {
00210 }

StateChunk::StateChunk const StateChunk source  )  [protected]
 

Definition at line 212 of file OSGStateChunk.cpp.

00212                                                :
00213     Inherited(source)
00214 {
00215 }

StateChunk::~StateChunk void   )  [protected, virtual]
 

Definition at line 217 of file OSGStateChunk.cpp.

00218 {
00219 }


Member Function Documentation

UInt32 osg::StateChunk::getClassId void   )  const [inline]
 

Definition at line 48 of file OSGStateChunk.inl.

References getClass(), and osg::StateChunkClass::getId().

00049 {
00050     return getClass()->getId();
00051 }

const StateChunkClass * StateChunk::getClass void   )  const [virtual]
 

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 282 of file OSGStateChunk.cpp.

Referenced by getClassId().

00283 {
00284     return NULL;
00285 }

UInt32 osg::StateChunk::getStaticClassId void   )  [inline, static]
 

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, and osg::VertexProgramChunk.

Definition at line 56 of file OSGStateChunk.inl.

References osg::StateChunkClass::getId(), and getStaticClass().

00057 {
00058     return StateChunk::getStaticClass()->getId();
00059 }

const StateChunkClass * osg::StateChunk::getStaticClass void   )  [inline, static]
 

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, and osg::VertexProgramChunk.

Definition at line 62 of file OSGStateChunk.inl.

Referenced by getStaticClassId().

00063 {
00064     return NULL;
00065 }

void StateChunk::changed BitVector  whichField,
UInt32  origin
[virtual]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::FatBorderChunk, osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 223 of file OSGStateChunk.cpp.

Referenced by osg::TwoSidedLightingChunk::changed(), osg::TransformChunk::changed(), osg::TextureChunk::changed(), osg::TexGenChunk::changed(), osg::StencilChunk::changed(), osg::ShaderParameterChunk::changed(), osg::RegisterCombinersChunk::changed(), osg::ProgramChunk::changed(), osg::PolygonChunk::changed(), osg::PointChunk::changed(), osg::MaterialChunk::changed(), osg::LineChunk::changed(), osg::LightChunk::changed(), osg::DepthChunk::changed(), osg::ColorMaskChunk::changed(), and osg::BlendChunk::changed().

00224 {
00225 }

void StateChunk::dump UInt32  uiIndent = 0,
const BitVector  bvFlags = 0
const [virtual]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunk, osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 229 of file OSGStateChunk.cpp.

References SLOG.

Referenced by osg::PolygonChunk::dump().

00231 {
00232     SLOG << "Dump StateChunk NI" << std::endl;
00233 }

void StateChunk::activate DrawActionBase action,
UInt32  index = 0
[virtual]
 

Activate the chunk, i.e. set the OpenGl state covered by the chunk which is different from the default state to the given state.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 242 of file OSGStateChunk.cpp.

References FWARNING.

Referenced by changeFrom().

00244 {
00245     FWARNING(("StateChunk::activate called!\n"));
00246 }

void StateChunk::changeFrom DrawActionBase action,
StateChunk old,
UInt32  index = 0
[virtual]
 

Change from an old chunk of the same type to this chunk. Note that in general no type checking is done, make sure to use this on a legal combination of chunks!

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 253 of file OSGStateChunk.cpp.

References activate(), and deactivate().

00256 {
00257     old->deactivate(action, index);
00258     activate(action, index);
00259 }

void StateChunk::deactivate DrawActionBase action,
UInt32  index = 0
[virtual]
 

Deactivate the chunk, i.e. set the OpenGl state covered by the chunk which is different from the default state to the default state.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 265 of file OSGStateChunk.cpp.

References FWARNING.

Referenced by osg::TextureChunk::changeFrom(), osg::TexGenChunk::changeFrom(), changeFrom(), osg::RegisterCombinersChunk::changeFrom(), osg::LineChunk::changeFrom(), osg::DepthChunk::changeFrom(), osg::CubeTextureChunk::changeFrom(), osg::ColorMaskChunk::changeFrom(), and osg::SkyBackground::clear().

00267 {
00268     FWARNING(("StateChunk::deactivate called!\n"));
00269 }

bool StateChunk::isTransparent void   )  const [virtual]
 

Check if the chunk is transparent, i.e. needs to be rendered after the opaque objects.

Reimplemented in osg::BlendChunk, osg::MaterialChunk, osg::PointChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, and osg::TextureChunk.

Definition at line 275 of file OSGStateChunk.cpp.

00276 {
00277     return false;
00278 }

Real32 StateChunk::switchCost StateChunk chunk  )  [virtual]
 

Calculate how expensive it is to switch from one instance of the chunk class to another. In most cases not implemented yet, will return 0.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 293 of file OSGStateChunk.cpp.

00294 {
00295     return 0;
00296 }

bool StateChunk::operator< const StateChunk other  )  const [virtual]
 

Calculate how expensive it is to switch from one instance of the chunk class to another. In most cases not implemented yet, will return 0.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 298 of file OSGStateChunk.cpp.

00299 {
00300     return this < &other;
00301 }

bool StateChunk::operator== const StateChunk other  )  const [virtual]
 

Compare two chunks. In most cases not implemented yet, will return false.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 306 of file OSGStateChunk.cpp.

00307 {
00308     return false;
00309 }

bool StateChunk::operator!= const StateChunk other  )  const [virtual]
 

Calculate how expensive it is to switch from one instance of the chunk class to another. In most cases not implemented yet, will return 0.

Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 311 of file OSGStateChunk.cpp.

00312 {
00313     return !(*this == other);
00314 }

void StateChunk::initMethod void   )  [static, protected]
 

Reimplemented in osg::FatBorderChunk, osg::BlendChunk, osg::ColorMaskChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, and osg::SHLParameterChunk.

Definition at line 192 of file OSGStateChunk.cpp.

Referenced by osg::StencilChunk::initMethod(), osg::LineChunk::initMethod(), and osg::BlendChunk::initMethod().

00193 {
00194 }

void osg::StateChunk::operator= const StateChunk source  )  [private]
 

osg::FieldContainerType & osg::StateChunkBase::getClassType void   )  [inline, static, inherited]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::ShaderChunkBase, osg::ShaderParameterChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase.

Definition at line 58 of file OSGStateChunkBase.inl.

References osg::StateChunkBase::_type.

00059 {
00060     return _type; 
00061 } 

osg::UInt32 osg::StateChunkBase::getClassTypeId void   )  [inline, static, inherited]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::ShaderChunkBase, osg::ShaderParameterChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase.

Definition at line 65 of file OSGStateChunkBase.inl.

References osg::StateChunkBase::_type, and osg::TypeBase::getId().

00066 {
00067     return _type.getId(); 
00068 } 

FieldContainerType & StateChunkBase::getType void   )  [virtual, inherited]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::ShaderChunkBase, osg::ShaderParameterChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase.

Definition at line 86 of file OSGStateChunkBase.cpp.

References osg::StateChunkBase::_type.

00087 {
00088     return _type; 
00089 } 

const FieldContainerType & StateChunkBase::getType void   )  const [virtual, inherited]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::ShaderChunkBase, osg::ShaderParameterChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase.

Definition at line 91 of file OSGStateChunkBase.cpp.

References osg::StateChunkBase::_type.

00092 {
00093     return _type;
00094 } 

UInt32 StateChunkBase::getContainerSize void   )  const [virtual, inherited]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::FatBorderChunkBase, osg::BlendChunkBase, osg::ClipPlaneChunkBase, osg::ColorMaskChunkBase, osg::CubeTextureChunkBase, osg::DepthChunkBase, osg::FragmentProgramChunkBase, osg::LightChunkBase, osg::LineChunkBase, osg::MaterialChunkBase, osg::PointChunkBase, osg::PolygonChunkBase, osg::ProgramChunkBase, osg::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase,