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

osg::ClipPlaneChunkBase Class Reference

ClipPlaneChunk Base Class.

#include <OSGClipPlaneChunkBase.h>

Inheritance diagram for osg::ClipPlaneChunkBase:

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

Public Types

typedef ClipPlaneChunkPtr Ptr
enum  { EquationFieldId = Inherited::NextFieldId, EnableFieldId = EquationFieldId + 1, BeaconFieldId = EnableFieldId + 1, NextFieldId = BeaconFieldId + 1 }

Public Member Functions

FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFVec4fgetSFEquation (void)
 Get the ClipPlaneChunk::_sfEquation field.
SFBoolgetSFEnable (void)
 Get the ClipPlaneChunk::_sfEnable field.
SFNodePtrgetSFBeacon (void)
 Get the ClipPlaneChunk::_sfBeacon field.
Vec4fgetEquation (void)
 Get the value of the ClipPlaneChunk::_sfEquation field.
const Vec4fgetEquation (void) const
 Get the value of the ClipPlaneChunk::_sfEquation field.
bool & getEnable (void)
 Get the value of the ClipPlaneChunk::_sfEnable field.
const bool & getEnable (void) const
 Get the value of the ClipPlaneChunk::_sfEnable field.
NodePtrgetBeacon (void)
 Get the value of the ClipPlaneChunk::_sfBeacon field.
const NodePtrgetBeacon (void) const
 Get the value of the ClipPlaneChunk::_sfBeacon field.
Field Set
*void setEquation (const Vec4f &value)
 Set the value of the ClipPlaneChunk::_sfEquation field.
void setEnable (const bool &value)
 Set the value of the ClipPlaneChunk::_sfEnable field.
void setBeacon (const NodePtr &value)
 Set the value of the ClipPlaneChunk::_sfBeacon 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
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

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
Construction
*static ClipPlaneChunkPtr create (void)
 create a new instance of the class
static ClipPlaneChunkPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Static Chunk Class Access
*static UInt32 getStaticClassId (void)
static const StateChunkClassgetStaticClass (void)

Static Public Attributes

static const osg::BitVector EquationFieldMask
static const osg::BitVector EnableFieldMask
static const osg::BitVector BeaconFieldMask
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
ClipPlaneChunkBase (void)
 ClipPlaneChunkBase (const ClipPlaneChunkBase &source)
Destructors
*virtual ~ClipPlaneChunkBase (void)
Sync
*void executeSyncImpl (ClipPlaneChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)

Static Protected Member Functions

static void initMethod (void)

Protected Attributes

Fields
*SFVec4f _sfEquation
SFBool _sfEnable
SFNodePtr _sfBeacon

Private Types

typedef StateChunk Inherited

Private Member Functions

void operator= (const ClipPlaneChunkBase &source)

Static Private Attributes

static FieldDescription_desc []
 ClipPlaneChunk description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 83 of file OSGClipPlaneChunkBase.h.


Member Typedef Documentation

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

Reimplemented from osg::StateChunk.

Reimplemented in osg::ClipPlaneChunk.

Definition at line 87 of file OSGClipPlaneChunkBase.h.

typedef ClipPlaneChunkPtr osg::ClipPlaneChunkBase::Ptr
 

Reimplemented from osg::StateChunkBase.

Definition at line 92 of file OSGClipPlaneChunkBase.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
EquationFieldId 
EnableFieldId 
BeaconFieldId 
NextFieldId 

Reimplemented from osg::Attachment.

Definition at line 94 of file OSGClipPlaneChunkBase.h.

00095     {
00096         EquationFieldId = Inherited::NextFieldId,
00097         EnableFieldId   = EquationFieldId + 1,
00098         BeaconFieldId   = EnableFieldId   + 1,
00099         NextFieldId     = BeaconFieldId   + 1
00100     };


Constructor & Destructor Documentation

ClipPlaneChunkBase::ClipPlaneChunkBase void   )  [protected]
 

Definition at line 187 of file OSGClipPlaneChunkBase.cpp.

00187                                            :
00188     _sfEquation               (Vec4f(0, 0, 1, 0)), 
00189     _sfEnable                 (bool(GL_TRUE)), 
00190     _sfBeacon                 (NodePtr(NullFC)), 
00191     Inherited() 
00192 {
00193 }

ClipPlaneChunkBase::ClipPlaneChunkBase const ClipPlaneChunkBase source  )  [protected]
 

Definition at line 199 of file OSGClipPlaneChunkBase.cpp.

00199                                                                        :
00200     _sfEquation               (source._sfEquation               ), 
00201     _sfEnable                 (source._sfEnable                 ), 
00202     _sfBeacon                 (source._sfBeacon                 ), 
00203     Inherited                 (source)
00204 {
00205 }

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

Definition at line 209 of file OSGClipPlaneChunkBase.cpp.

00210 {
00211 }


Member Function Documentation

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

Reimplemented from osg::StateChunkBase.

Definition at line 58 of file OSGClipPlaneChunkBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 65 of file OSGClipPlaneChunkBase.inl.

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

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

FieldContainerType & ClipPlaneChunkBase::getType void   )  [virtual]
 

Reimplemented from osg::StateChunkBase.

Definition at line 129 of file OSGClipPlaneChunkBase.cpp.

References _type.

00130 {
00131     return _type; 
00132 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 134 of file OSGClipPlaneChunkBase.cpp.

References _type.

00135 {
00136     return _type;
00137 } 

UInt32 ClipPlaneChunkBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::StateChunkBase.

Definition at line 149 of file OSGClipPlaneChunkBase.cpp.

00150 { 
00151     return sizeof(ClipPlaneChunk); 
00152 }

SFVec4f * osg::ClipPlaneChunkBase::getSFEquation void   )  [inline]
 

Definition at line 101 of file OSGClipPlaneChunkBase.inl.

References _sfEquation.

00102 {
00103     return &_sfEquation;
00104 }

SFBool * osg::ClipPlaneChunkBase::getSFEnable void   )  [inline]
 

Definition at line 108 of file OSGClipPlaneChunkBase.inl.

References _sfEnable.

00109 {
00110     return &_sfEnable;
00111 }

SFNodePtr * osg::ClipPlaneChunkBase::getSFBeacon void   )  [inline]
 

Definition at line 115 of file OSGClipPlaneChunkBase.inl.

References _sfBeacon.

00116 {
00117     return &_sfBeacon;
00118 }

Vec4f & osg::ClipPlaneChunkBase::getEquation void   )  [inline]
 

Definition at line 123 of file OSGClipPlaneChunkBase.inl.

References _sfEquation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), and osg::ClipPlaneChunk::operator==().

00124 {
00125     return _sfEquation.getValue();
00126 }

const Vec4f & osg::ClipPlaneChunkBase::getEquation void   )  const [inline]
 

Definition at line 130 of file OSGClipPlaneChunkBase.inl.

References _sfEquation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00131 {
00132     return _sfEquation.getValue();
00133 }

bool & osg::ClipPlaneChunkBase::getEnable void   )  [inline]
 

Definition at line 144 of file OSGClipPlaneChunkBase.inl.

References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), osg::ClipPlaneChunk::deactivate(), and osg::ClipPlaneChunk::operator==().

00145 {
00146     return _sfEnable.getValue();
00147 }

const bool & osg::ClipPlaneChunkBase::getEnable void   )  const [inline]
 

Definition at line 151 of file OSGClipPlaneChunkBase.inl.

References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00152 {
00153     return _sfEnable.getValue();
00154 }

NodePtr & osg::ClipPlaneChunkBase::getBeacon void   )  [inline]
 

Definition at line 165 of file OSGClipPlaneChunkBase.inl.

References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), and osg::ClipPlaneChunk::operator==().

00166 {
00167     return _sfBeacon.getValue();
00168 }

const NodePtr & osg::ClipPlaneChunkBase::getBeacon void   )  const [inline]
 

Definition at line 172 of file OSGClipPlaneChunkBase.inl.

References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00173 {
00174     return _sfBeacon.getValue();
00175 }

void osg::ClipPlaneChunkBase::setEquation const Vec4f value  )  [inline]
 

Definition at line 137 of file OSGClipPlaneChunkBase.inl.

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

00138 {
00139     _sfEquation.setValue(value);
00140 }

void osg::ClipPlaneChunkBase::setEnable const bool &  value  )  [inline]
 

Definition at line 158 of file OSGClipPlaneChunkBase.inl.

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

00159 {
00160     _sfEnable.setValue(value);
00161 }

void osg::ClipPlaneChunkBase::setBeacon const NodePtr value  )  [inline]
 

Definition at line 179 of file OSGClipPlaneChunkBase.inl.

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

00180 {
00181     _sfBeacon.setValue(value);
00182 }

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

Reimplemented from osg::StateChunkBase.

Definition at line 215 of file OSGClipPlaneChunkBase.cpp.

References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, EnableFieldMask, EquationFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::StateChunkBase::getBinSize(), and osg::FieldBits::NoField.

00216 {
00217     UInt32 returnValue = Inherited::getBinSize(whichField);
00218 
00219     if(FieldBits::NoField != (EquationFieldMask & whichField))
00220     {
00221         returnValue += _sfEquation.getBinSize();
00222     }
00223 
00224     if(FieldBits::NoField != (EnableFieldMask & whichField))
00225     {
00226         returnValue += _sfEnable.getBinSize();
00227     }
00228 
00229     if(FieldBits::NoField != (BeaconFieldMask & whichField))
00230     {
00231         returnValue += _sfBeacon.getBinSize();
00232     }
00233 
00234 
00235     return returnValue;
00236 }

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

Reimplemented from osg::StateChunkBase.

Definition at line 238 of file OSGClipPlaneChunkBase.cpp.

References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::StateChunkBase::copyToBin(), EnableFieldMask, EquationFieldMask, and osg::FieldBits::NoField.

00240 {
00241     Inherited::copyToBin(pMem, whichField);
00242 
00243     if(FieldBits::NoField != (EquationFieldMask & whichField))
00244     {
00245         _sfEquation.copyToBin(pMem);
00246     }
00247 
00248     if(FieldBits::NoField != (EnableFieldMask & whichField))
00249     {
00250         _sfEnable.copyToBin(pMem);
00251     }
00252 
00253     if(FieldBits::NoField != (BeaconFieldMask & whichField))
00254     {
00255         _sfBeacon.copyToBin(pMem);
00256     }
00257 
00258 
00259 }

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

Reimplemented from osg::StateChunkBase.

Definition at line 261 of file OSGClipPlaneChunkBase.cpp.

References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::StateChunkBase::copyFromBin(), EnableFieldMask, EquationFieldMask, and osg::FieldBits::NoField.

00263 {
00264     Inherited::copyFromBin(pMem, whichField);
00265 
00266     if(FieldBits::NoField != (EquationFieldMask & whichField))
00267     {
00268         _sfEquation.copyFromBin(pMem);
00269     }
00270 
00271     if(FieldBits::NoField != (EnableFieldMask & whichField))
00272     {
00273         _sfEnable.copyFromBin(pMem);
00274     }
00275 
00276     if(FieldBits::NoField != (BeaconFieldMask & whichField))
00277     {
00278         _sfBeacon.copyFromBin(pMem);
00279     }
00280 
00281 
00282 }

ClipPlaneChunkPtr osg::ClipPlaneChunkBase::create void   )  [inline, static]
 

Reimplemented from osg::Attachment.

Definition at line 72 of file OSGClipPlaneChunkBase.inl.

References osg::AttachmentPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy().

00073 {
00074     ClipPlaneChunkPtr fc; 
00075 
00076     if(getClassType().getPrototype() != OSG::NullFC) 
00077     {
00078         fc = ClipPlaneChunkPtr::dcast(
00079             getClassType().getPrototype()-> shallowCopy()); 
00080     }
00081     
00082     return fc; 
00083 }

ClipPlaneChunkPtr osg::ClipPlaneChunkBase::createEmpty void   )  [inline, static]
 

Reimplemented from osg::Attachment.

Definition at line 87 of file OSGClipPlaneChunkBase.inl.

References osg::FieldContainer::newPtr().

00088 { 
00089     ClipPlaneChunkPtr returnValue; 
00090     
00091     newPtr(returnValue); 
00092 
00093     return returnValue; 
00094 }

FieldContainerPtr ClipPlaneChunkBase::shallowCopy void   )  const [virtual]
 

Reimplemented from osg::Attachment.

Definition at line 140 of file OSGClipPlaneChunkBase.cpp.

References osg::FieldContainer::newPtr().

Referenced by create().

00141 { 
00142     ClipPlaneChunkPtr returnValue; 
00143 
00144     newPtr(returnValue, dynamic_cast<const ClipPlaneChunk *>(this)); 
00145 
00146     return returnValue; 
00147 }

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

Definition at line 285 of file OSGClipPlaneChunkBase.cpp.

References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, EnableFieldMask, EquationFieldMask, osg::StateChunkBase::executeSyncImpl(), osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith().

Referenced by executeSync().

00287 {
00288 
00289     Inherited::executeSyncImpl(pOther, whichField);
00290 
00291     if(FieldBits::NoField != (EquationFieldMask & whichField))
00292         _sfEquation.syncWith(pOther->_sfEquation);
00293 
00294     if(FieldBits::NoField != (EnableFieldMask & whichField))
00295         _sfEnable.syncWith(pOther->_sfEnable);
00296 
00297     if(FieldBits::NoField != (BeaconFieldMask & whichField))
00298         _sfBeacon.syncWith(pOther->_sfBeacon);
00299 
00300 
00301 }

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

Reimplemented from osg::StateChunkBase.

Definition at line 156 of file OSGClipPlaneChunkBase.cpp.

References executeSyncImpl().

00158 {
00159     this->executeSyncImpl((ClipPlaneChunkBase *) &other, whichField);
00160 }

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

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

Definition at line 48 of file OSGStateChunk.inl.

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

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

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

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 osg::StateChunk::getClassId().

00283 {
00284     return NULL;
00285 }

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

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 osg::StateChunk::getStaticClass().

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

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

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 osg::StateChunk::getStaticClassId().

00063 {
00064     return NULL;
00065 }

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

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, inherited]
 

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, inherited]
 

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 osg::StateChunk::changeFrom().

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

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

Change from an old chunk of the same type to this chunk. Note that in general no type checking is done, make sure to u