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

osg::StateChunkBase Class Reference

StateChunk Base Class.

#include <OSGStateChunkBase.h>

Inheritance diagram for osg::StateChunkBase:

osg::Attachment osg::FieldContainer osg::StateChunk 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)

Sync

*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)

Public Types

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

Public Member Functions

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)
Dump
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const

Static Public Member Functions

Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class

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

Protected Member Functions

Constructors
StateChunkBase (void)
 StateChunkBase (const StateChunkBase &source)
Destructors
*virtual ~StateChunkBase (void)

Private Types

typedef Attachment Inherited

Private Member Functions

void operator= (const StateChunkBase &source)

Static Private Attributes

static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 80 of file OSGStateChunkBase.h.


Member Typedef Documentation

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

Reimplemented from osg::Attachment.

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::StateChunk, 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 84 of file OSGStateChunkBase.h.

typedef StateChunkPtr osg::StateChunkBase::Ptr
 

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

StateChunkBase::StateChunkBase void   )  [protected]
 

Definition at line 135 of file OSGStateChunkBase.cpp.

00135                                    :
00136     Inherited() 
00137 {
00138 }

StateChunkBase::StateChunkBase const StateChunkBase source  )  [protected]
 

Definition at line 144 of file OSGStateChunkBase.cpp.

00144                                                            :
00145     Inherited                 (source)
00146 {
00147 }

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

Definition at line 151 of file OSGStateChunkBase.cpp.

00152 {
00153 }


Member Function Documentation

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

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 _type.

00059 {
00060     return _type; 
00061 } 

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

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 _type, and osg::TypeBase::getId().

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

FieldContainerType & StateChunkBase::getType void   )  [virtual]
 

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 _type.

00087 {
00088     return _type; 
00089 } 

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

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 _type.

00092 {
00093     return _type;
00094 } 

UInt32 StateChunkBase::getContainerSize void   )  const [virtual]
 

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 97 of file OSGStateChunkBase.cpp.

00098 { 
00099     return sizeof(StateChunk); 
00100 }

UInt32 StateChunkBase::getBinSize const BitVector whichField  )  [virtual]
 

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 157 of file OSGStateChunkBase.cpp.

References osg::Attachment::getBinSize().

Referenced by osg::TwoSidedLightingChunkBase::getBinSize(), osg::TransformChunkBase::getBinSize(), osg::TextureChunkBase::getBinSize(), osg::TexGenChunkBase::getBinSize(), osg::StencilChunkBase::getBinSize(), osg::ShaderParameterChunkBase::getBinSize(), osg::RegisterCombinersChunkBase::getBinSize(), osg::ProgramChunkBase::getBinSize(), osg::PolygonChunkBase::getBinSize(), osg::PointChunkBase::getBinSize(), osg::MaterialChunkBase::getBinSize(), osg::LineChunkBase::getBinSize(), osg::LightChunkBase::getBinSize(), osg::DepthChunkBase::getBinSize(), osg::ColorMaskChunkBase::getBinSize(), osg::ClipPlaneChunkBase::getBinSize(), and osg::BlendChunkBase::getBinSize().

00158 {
00159     UInt32 returnValue = Inherited::getBinSize(whichField);
00160 
00161 
00162     return returnValue;
00163 }

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

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 165 of file OSGStateChunkBase.cpp.

References osg::Attachment::copyToBin().

Referenced by osg::TwoSidedLightingChunkBase::copyToBin(), osg::TransformChunkBase::copyToBin(), osg::TextureChunkBase::copyToBin(), osg::TexGenChunkBase::copyToBin(), osg::StencilChunkBase::copyToBin(), osg::ShaderParameterChunkBase::copyToBin(), osg::RegisterCombinersChunkBase::copyToBin(), osg::ProgramChunkBase::copyToBin(), osg::PolygonChunkBase::copyToBin(), osg::PointChunkBase::copyToBin(), osg::MaterialChunkBase::copyToBin(), osg::LineChunkBase::copyToBin(), osg::LightChunkBase::copyToBin(), osg::DepthChunkBase::copyToBin(), osg::ColorMaskChunkBase::copyToBin(), osg::ClipPlaneChunkBase::copyToBin(), and osg::BlendChunkBase::copyToBin().

00167 {
00168     Inherited::copyToBin(pMem, whichField);
00169 
00170 
00171 }

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

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 173 of file OSGStateChunkBase.cpp.

References osg::Attachment::copyFromBin().

Referenced by osg::TwoSidedLightingChunkBase::copyFromBin(), osg::TransformChunkBase::copyFromBin(), osg::TextureChunkBase::copyFromBin(), osg::TexGenChunkBase::copyFromBin(), osg::StencilChunkBase::copyFromBin(), osg::ShaderParameterChunkBase::copyFromBin(), osg::RegisterCombinersChunkBase::copyFromBin(), osg::ProgramChunkBase::copyFromBin(), osg::PolygonChunkBase::copyFromBin(), osg::PointChunkBase::copyFromBin(), osg::MaterialChunkBase::copyFromBin(), osg::LineChunkBase::copyFromBin(), osg::LightChunkBase::copyFromBin(), osg::DepthChunkBase::copyFromBin(), osg::ColorMaskChunkBase::copyFromBin(), osg::ClipPlaneChunkBase::copyFromBin(), and osg::BlendChunkBase::copyFromBin().

00175 {
00176     Inherited::copyFromBin(pMem, whichField);
00177 
00178 
00179 }

void StateChunkBase::executeSyncImpl StateChunkBase pOther,
const BitVector whichField
[protected]
 

Definition at line 182 of file OSGStateChunkBase.cpp.

References osg::Attachment::executeSyncImpl().

Referenced by executeSync(), osg::TwoSidedLightingChunkBase::executeSyncImpl(), osg::TransformChunkBase::executeSyncImpl(), osg::TextureChunkBase::executeSyncImpl(), osg::TexGenChunkBase::executeSyncImpl(), osg::StencilChunkBase::executeSyncImpl(), osg::ShaderParameterChunkBase::executeSyncImpl(), osg::RegisterCombinersChunkBase::executeSyncImpl(), osg::ProgramChunkBase::executeSyncImpl(), osg::PolygonChunkBase::executeSyncImpl(), osg::PointChunkBase::executeSyncImpl(), osg::MaterialChunkBase::executeSyncImpl(), osg::LineChunkBase::executeSyncImpl(), osg::LightChunkBase::executeSyncImpl(), osg::DepthChunkBase::executeSyncImpl(), osg::ColorMaskChunkBase::executeSyncImpl(), osg::ClipPlaneChunkBase::executeSyncImpl(), and osg::BlendChunkBase::executeSyncImpl().

00184 {
00185 
00186     Inherited::executeSyncImpl(pOther, whichField);
00187 
00188 
00189 }

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

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 104 of file OSGStateChunkBase.cpp.

References executeSyncImpl().

00106 {
00107     this->executeSyncImpl((StateChunkBase *) &other, whichField);
00108 }

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

static AttachmentPtr osg::Attachment::create void   )  [static, inherited]
 

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, osg::DVRClipObjectsBase, osg::DVRIsoSurfaceBase, osg::DVRLookupTableBase, osg::DVRVolumeTextureBase, 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::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::SHLChunkBase, osg::SHLParameterChunkBase, osg::SimpleAttachment< VoidPAttachmentDesc >, and osg::SimpleAttachment< NameAttachmentDesc >.

static AttachmentPtr osg::Attachment::createEmpty void   )  [static, inherited]
 

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, osg::DVRClipObjectsBase, osg::DVRIsoSurfaceBase, osg::DVRLookupTableBase, osg::DVRVolumeTextureBase, 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::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::SHLChunkBase, osg::SHLParameterChunkBase, osg::SimpleAttachment< VoidPAttachmentDesc >, and osg::SimpleAttachment< NameAttachmentDesc >.

osg::FieldContainerPtr Attachment::shallowCopy void   )  const [virtual, inherited]
 

Implements osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, osg::DVRClipObjectsBase, osg::DVRIsoSurfaceBase, osg::DVRLookupTableBase, osg::DVRVolumeTextureBase, 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::RegisterCombinersChunkBase, osg::StencilChunkBase, osg::TexGenChunkBase, osg::TextureChunkBase, osg::TextureTransformChunkBase, osg::TransformChunkBase, osg::TwoSidedLightingChunkBase, osg::VertexProgramChunkBase, osg::SHLChunkBase, osg::SHLParameterChunkBase, osg::SimpleAttachment< VoidPAttachmentDesc >, and osg::SimpleAttachment< NameAttachmentDesc >.

Definition at line 90 of file OSGAttachment.cpp.

MFFieldContainerPtr & Attachment::getParents void   )  [inherited]
 

Definition at line 95 of file OSGAttachment.cpp.

00096 {
00097     return _parents;
00098 }

const MFFieldContainerPtr & Attachment::getParents void   )  const [inherited]
 

Definition at line 100 of file OSGAttachment.cpp.

References osg::Attachment::_parents.

00101 {
00102     return _parents;
00103 }

MFFieldContainerPtr * Attachment::getMFParents void   )  [inherited]
 

Definition at line 105 of file OSGAttachment.cpp.

References osg::Attachment::_parents.

Referenced by osg::DVRLookupTable::changed().

00106 {
00107     return &_parents;
00108 }

void Attachment::addParent FieldContainerPtr  parent  )  [inherited]
 

Definition at line 110 of file OSGAttachment.cpp.

References osg::Attachment::_parents, and osg::MField< FieldTypeT, fieldNameSpace >::push_back().

00111 {
00112     _parents.push_back(parent);
00113 }

void Attachment::subParent FieldContainerPtr  parent  )  [inherited]
 

Definition at line 115 of file OSGAttachment.cpp.

References osg::Attachment::_parents, osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), and osg::MField< FieldTypeT, fieldNameSpace >::find().

00116 {
00117     MFFieldContainerPtr::iterator parentIt = _parents.find(parent);
00118 
00119     if(parentIt != _parents.end())
00120     {
00121         _parents.erase(parentIt);
00122     }
00123 }

Int32 Attachment::findParent FieldContainerPtr  parent  )  [inherited]
 

Definition at line 125 of file OSGAttachment.cpp.

References osg::Attachment::_parents, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::end(), and osg::MField< FieldTypeT, fieldNameSpace >::find().

00126 {
00127     MFFieldContainerPtr::iterator parentIt = _parents.find(parent);
00128 
00129     if(parentIt != _parents.end())
00130     {
00131         return parentIt - _parents.begin();
00132     }
00133     else
00134     {
00135         return -1;
00136     }
00137 }

SFBool & Attachment::getInternal void   )  [inherited]
 

Definition at line 142 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00143 {
00144     return _sfInternal;
00145 }

const SFBool & Attachment::getInternal void   )  const [inherited]
 

Definition at line 147 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00148 {
00149     return _sfInternal;
00150 }

SFBool * Attachment::getSFInternal void   )  [inherited]
 

Definition at line 152 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00153 {
00154     return &_sfInternal;
00155 }

void Attachment::setInternal bool  bVal  )  [inherited]
 

Definition at line 157 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00158 {
00159     _sfInternal.setValue(bVal);
00160 }

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

Implements osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, osg::DVRClipObjects, osg::DVRIsoSurface, osg::DVRLookupTable, osg::DVRVolumeTexture, 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::StateChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, osg::SHLParameterChunk, osg::SimpleAttachment< VoidPAttachmentDesc >, and osg::SimpleAttachment< NameAttachmentDesc >.

Definition at line 213 of file OSGAttachment.cpp.

References osg::Attachment::_parents, osg::FieldContainerPtrBase::getFieldContainerId(), osg::TypeBase::getName(), osg::Attachment::getType(), osg::indentLog(), PLOG, and osg::MField< FieldTypeT, fieldNameSpace >::size().

Referenced by osg::SimpleAttachment< AttachmentDescT >::dump().

00215 {
00216     UInt32 i;
00217 
00218     AttachmentPtr thisP(this);
00219 
00220     indentLog(uiIndent, PLOG);
00221 
00222     PLOG << "Attachment"
00223          << "(" 
00224          << std::dec
00225          << thisP.getFieldContainerId()
00226          << ") : " 
00227          << getType().getName()
00228          << "("       
00229          << this 
00230          << ")" 
00231          << std::endl;
00232 
00233     indentLog(uiIndent, PLOG);
00234     PLOG << "[" << std::endl;
00235 
00236     indentLog(uiIndent + 4, PLOG);
00237     PLOG << "Parents : " << std::endl;
00238 
00239     for(i = 0; i < _parents.size(); i++)
00240     {
00241         indentLog(uiIndent + 4, PLOG);
00242         PLOG << "           " << i << ") " << &(*(_parents[i])) << std::endl;
00243     }
00244 
00245 //    thisP.dump(uiIndent, FCDumpFlags::RefCount);
00246 
00247     indentLog(uiIndent, PLOG);
00248     PLOG << "]" << std::endl;
00249 
00250     indentLog(uiIndent, PLOG);
00251     PLOG << "{" << std::endl;
00252 
00253     indentLog(uiIndent, PLOG);
00254     PLOG << "}" << std::endl;
00255 }

void Attachment::onDestroy void   )  [protected, virtual, inherited]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::ShaderParameterChunk, and osg::SHLChunk.