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

osg::StencilChunk Class Reference

StencilChunk class. See PageSystemStencilChunk for a description. More...

#include <OSGStencilChunk.h>

Inheritance diagram for osg::StencilChunk:

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

Public Types

typedef StencilChunkPtr Ptr
enum  {
  StencilFuncFieldId = Inherited::NextFieldId, StencilValueFieldId = StencilFuncFieldId + 1, StencilMaskFieldId = StencilValueFieldId + 1, StencilOpFailFieldId = StencilMaskFieldId + 1,
  StencilOpZFailFieldId = StencilOpFailFieldId + 1, StencilOpZPassFieldId = StencilOpZFailFieldId + 1, ClearBufferFieldId = StencilOpZPassFieldId + 1, NextFieldId = ClearBufferFieldId + 1
}

Public Member Functions

Chunk Class Access
*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 Commands
*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)
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
Field Get
*SFGLenumgetSFStencilFunc (void)
 Get the StencilChunk::_sfStencilFunc field.
SFInt32getSFStencilValue (void)
 Get the StencilChunk::_sfStencilValue field.
SFUInt32getSFStencilMask (void)
 Get the StencilChunk::_sfStencilMask field.
SFGLenumgetSFStencilOpFail (void)
 Get the StencilChunk::_sfStencilOpFail field.
SFGLenumgetSFStencilOpZFail (void)
 Get the StencilChunk::_sfStencilOpZFail field.
SFGLenumgetSFStencilOpZPass (void)
 Get the StencilChunk::_sfStencilOpZPass field.
SFInt32getSFClearBuffer (void)
 Get the StencilChunk::_sfClearBuffer field.
GLenumgetStencilFunc (void)
 Get the value of the StencilChunk::_sfStencilFunc field.
const GLenumgetStencilFunc (void) const
 Get the value of the StencilChunk::_sfStencilFunc field.
Int32getStencilValue (void)
 Get the value of the StencilChunk::_sfStencilValue field.
const Int32getStencilValue (void) const
 Get the value of the StencilChunk::_sfStencilValue field.
UInt32getStencilMask (void)
 Get the value of the StencilChunk::_sfStencilMask field.
const UInt32getStencilMask (void) const
 Get the value of the StencilChunk::_sfStencilMask field.
GLenumgetStencilOpFail (void)
 Get the value of the StencilChunk::_sfStencilOpFail field.
const GLenumgetStencilOpFail (void) const
 Get the value of the StencilChunk::_sfStencilOpFail field.
GLenumgetStencilOpZFail (void)
 Get the value of the StencilChunk::_sfStencilOpZFail field.
const GLenumgetStencilOpZFail (void) const
 Get the value of the StencilChunk::_sfStencilOpZFail field.
GLenumgetStencilOpZPass (void)
 Get the value of the StencilChunk::_sfStencilOpZPass field.
const GLenumgetStencilOpZPass (void) const
 Get the value of the StencilChunk::_sfStencilOpZPass field.
Int32getClearBuffer (void)
 Get the value of the StencilChunk::_sfClearBuffer field.
const Int32getClearBuffer (void) const
 Get the value of the StencilChunk::_sfClearBuffer field.
Field Set
*void setStencilFunc (const GLenum &value)
 Set the value of the StencilChunk::_sfStencilFunc field.
void setStencilValue (const Int32 &value)
 Set the value of the StencilChunk::_sfStencilValue field.
void setStencilMask (const UInt32 &value)
 Set the value of the StencilChunk::_sfStencilMask field.
void setStencilOpFail (const GLenum &value)
 Set the value of the StencilChunk::_sfStencilOpFail field.
void setStencilOpZFail (const GLenum &value)
 Set the value of the StencilChunk::_sfStencilOpZFail field.
void setStencilOpZPass (const GLenum &value)
 Set the value of the StencilChunk::_sfStencilOpZPass field.
void setClearBuffer (const Int32 &value)
 Set the value of the StencilChunk::_sfClearBuffer 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

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 StencilChunkPtr create (void)
 create a new instance of the class
static StencilChunkPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype

Static Public Attributes

static const osg::BitVector StencilFuncFieldMask
static const osg::BitVector StencilValueFieldMask
static const osg::BitVector StencilMaskFieldMask
static const osg::BitVector StencilOpFailFieldMask
static const osg::BitVector StencilOpZFailFieldMask
static const osg::BitVector StencilOpZPassFieldMask
static const osg::BitVector ClearBufferFieldMask
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
StencilChunk (void)
 StencilChunk (const StencilChunk &source)
Destructors
*virtual ~StencilChunk (void)
Sync
*void executeSyncImpl (StencilChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)

Protected Attributes

Fields
*SFGLenum _sfStencilFunc
SFInt32 _sfStencilValue
SFUInt32 _sfStencilMask
SFGLenum _sfStencilOpFail
SFGLenum _sfStencilOpZFail
SFGLenum _sfStencilOpZPass
SFInt32 _sfClearBuffer

Private Types

typedef StencilChunkBase Inherited

Private Member Functions

void operator= (const StencilChunk &source)

Static Private Member Functions

static void initMethod (void)

Static Private Attributes

static StateChunkClass _class

Friends

class FieldContainer
class StencilChunkBase

Detailed Description

The stencil chunk handles OpenGL stencil tests by wrapping glStencilFunc() and glStencilOp().

Definition at line 55 of file OSGStencilChunk.h.


Member Typedef Documentation

typedef StencilChunkBase osg::StencilChunk::Inherited [private]
 

Reimplemented from osg::StencilChunkBase.

Definition at line 59 of file OSGStencilChunk.h.

typedef StencilChunkPtr osg::StencilChunkBase::Ptr [inherited]
 

Reimplemented from osg::StateChunkBase.

Definition at line 96 of file OSGStencilChunkBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
StencilFuncFieldId 
StencilValueFieldId 
StencilMaskFieldId 
StencilOpFailFieldId 
StencilOpZFailFieldId 
StencilOpZPassFieldId 
ClearBufferFieldId 
NextFieldId 

Reimplemented from osg::Attachment.

Definition at line 98 of file OSGStencilChunkBase.h.

00099     {
00100         StencilFuncFieldId    = Inherited::NextFieldId,
00101         StencilValueFieldId   = StencilFuncFieldId    + 1,
00102         StencilMaskFieldId    = StencilValueFieldId   + 1,
00103         StencilOpFailFieldId  = StencilMaskFieldId    + 1,
00104         StencilOpZFailFieldId = StencilOpFailFieldId  + 1,
00105         StencilOpZPassFieldId = StencilOpZFailFieldId + 1,
00106         ClearBufferFieldId    = StencilOpZPassFieldId + 1,
00107         NextFieldId           = ClearBufferFieldId    + 1
00108     };


Constructor & Destructor Documentation

StencilChunk::StencilChunk void   )  [protected]
 

Definition at line 91 of file OSGStencilChunk.cpp.

00091                                :
00092     Inherited()
00093 {
00094 }

StencilChunk::StencilChunk const StencilChunk source  )  [protected]
 

Definition at line 96 of file OSGStencilChunk.cpp.

00096                                                      :
00097     Inherited(source)
00098 {
00099 }

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

Definition at line 101 of file OSGStencilChunk.cpp.

00102 {
00103 }


Member Function Documentation

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

Reimplemented from osg::StateChunk.

Definition at line 106 of file OSGStencilChunk.cpp.

References _class.

00107 {
00108     return &_class;
00109 }

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

Reimplemented from osg::StateChunk.

Definition at line 49 of file OSGStencilChunk.inl.

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

00050 {
00051     return getStaticClass()->getId();
00052 }

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

Reimplemented from osg::StateChunk.

Definition at line 55 of file OSGStencilChunk.inl.

References _class.

Referenced by getStaticClassId().

00056 {
00057     return &StencilChunk::_class;
00058 }

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

Reimplemented from osg::StateChunk.

Definition at line 111 of file OSGStencilChunk.cpp.

References osg::StateChunk::changed().

00112 {
00113     Inherited::changed(whichField, origin);
00114 }

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

Reimplemented from osg::StateChunk.

Definition at line 116 of file OSGStencilChunk.cpp.

References SLOG.

00118 {
00119     SLOG << "Dump StencilChunk NI" << std::endl;
00120 }

void StencilChunk::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 from osg::StateChunk.

Definition at line 124 of file OSGStencilChunk.cpp.

References osg::StencilChunkBase::_sfClearBuffer, osg::StencilChunkBase::_sfStencilFunc, osg::StencilChunkBase::_sfStencilMask, osg::StencilChunkBase::_sfStencilOpFail, osg::StencilChunkBase::_sfStencilOpZFail, osg::StencilChunkBase::_sfStencilOpZPass, osg::StencilChunkBase::_sfStencilValue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00125 {
00126     if (_sfStencilFunc.getValue() != GL_NONE)
00127     {
00128         glEnable(GL_STENCIL_TEST);
00129         
00130         if (_sfClearBuffer.getValue() == 1)
00131             glClear(GL_STENCIL_BUFFER_BIT);
00132         
00133         glStencilFunc(  _sfStencilFunc.getValue(), 
00134                         _sfStencilValue.getValue(), 
00135                         _sfStencilMask.getValue() );
00136         glStencilOp(    _sfStencilOpFail.getValue(), 
00137                         _sfStencilOpZFail.getValue(), 
00138                         _sfStencilOpZPass.getValue() );
00139     }
00140 }

void StencilChunk::changeFrom DrawActionBase action,
StateChunk old_chunk,
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 from osg::StateChunk.

Definition at line 142 of file OSGStencilChunk.cpp.

References osg::StencilChunkBase::_sfStencilFunc, osg::StencilChunkBase::_sfStencilMask, osg::StencilChunkBase::_sfStencilOpFail, osg::StencilChunkBase::_sfStencilOpZFail, osg::StencilChunkBase::_sfStencilOpZPass, osg::StencilChunkBase::_sfStencilValue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00145 {
00146     StencilChunk *old = dynamic_cast<StencilChunk *>(old_chunk);
00147     
00148     if (_sfStencilFunc.getValue() != GL_NONE)
00149     {
00150         if ( old->_sfStencilFunc.getValue()  != _sfStencilFunc.getValue()    ||
00151              old->_sfStencilValue.getValue() != _sfStencilValue.getValue()   ||
00152              old->_sfStencilMask.getValue()  != _sfStencilMask.getValue() ) 
00153              glStencilFunc( _sfStencilFunc.getValue(), 
00154                             _sfStencilValue.getValue(), 
00155                             _sfStencilMask.getValue() );
00156              
00157         if ( old->_sfStencilOpFail.getValue()  != _sfStencilOpFail.getValue()  ||
00158              old->_sfStencilOpZFail.getValue() != _sfStencilOpZFail.getValue() ||
00159              old->_sfStencilOpZPass.getValue() != _sfStencilOpZPass.getValue() ) 
00160              glStencilOp( _sfStencilOpFail.getValue(), 
00161                           _sfStencilOpZFail.getValue(), 
00162                           _sfStencilOpZPass.getValue() );
00163        
00164        if(old->_sfStencilFunc.getValue() == GL_NONE) {     
00165             glEnable(GL_STENCIL_TEST);
00166             
00167             /*
00168             if (_sfClearBuffer.getValue() == 1)
00169                 glClear(GL_STENCIL_BUFFER_BIT);
00170             */
00171        }
00172     }
00173     else 
00174     {
00175         if (old->_sfStencilFunc.getValue() != GL_NONE) 
00176         {      
00177             /*
00178             if (_sfClearBuffer.getValue() == 2)
00179                 glClear(GL_STENCIL_BUFFER_BIT);
00180             */
00181                       
00182             glDisable(GL_STENCIL_TEST); 
00183         }
00184     }
00185     
00186 }

void StencilChunk::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 from osg::StateChunk.

Definition at line 188 of file OSGStencilChunk.cpp.

References osg::StencilChunkBase::_sfClearBuffer, osg::StencilChunkBase::_sfStencilFunc, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00189 {
00190     if (_sfStencilFunc.getValue() != GL_NONE)
00191     {
00192         if (_sfClearBuffer.getValue() == 2)
00193             glClear(GL_STENCIL_BUFFER_BIT);
00194                 
00195         glDisable(GL_STENCIL_TEST);
00196     }
00197 }

Real32 StencilChunk::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 from osg::StateChunk.

Definition at line 201 of file OSGStencilChunk.cpp.

00202 {
00203     return 0;
00204 }

bool StencilChunk::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 from osg::StateChunk.

Definition at line 206 of file OSGStencilChunk.cpp.

00207 {
00208     return this < &other;
00209 }

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

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

Reimplemented from osg::StateChunk.

Definition at line 211 of file OSGStencilChunk.cpp.

References osg::StencilChunkBase::getClearBuffer(), osg::StencilChunkBase::getStencilFunc(), osg::StencilChunkBase::getStencilMask(), osg::StencilChunkBase::getStencilOpFail(), osg::StencilChunkBase::getStencilOpZFail(), osg::StencilChunkBase::getStencilOpZPass(), and osg::StencilChunkBase::getStencilValue().

00212 {
00213     StencilChunk const *tother = dynamic_cast<StencilChunk const*>(&other);
00214 
00215     if (!tother)
00216         return false;
00217 
00218     if (tother == this)
00219         return true;
00220 
00221     if (getStencilFunc()    != tother->getStencilFunc()    ||
00222         getStencilValue()   != tother->getStencilValue()   ||
00223         getStencilMask()    != tother->getStencilMask()    ||
00224         getStencilOpFail()  != tother->getStencilOpFail()  ||
00225         getStencilOpZFail() != tother->getStencilOpZFail() ||
00226         getStencilOpZPass() != tother->getStencilOpZPass() ||
00227         getClearBuffer()    != tother->getClearBuffer())
00228         return false;
00229 
00230     return true;
00231 }

bool StencilChunk::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 from osg::StateChunk.

Definition at line 233 of file OSGStencilChunk.cpp.

00234 {
00235     return ! (*this == other);
00236 }

void StencilChunk::initMethod void   )  [static, private]
 

Reimplemented from osg::StateChunk.

Definition at line 75 of file OSGStencilChunk.cpp.

References osg::StateChunk::initMethod().

00076 {
00077     Inherited::initMethod();
00078 }

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

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

Reimplemented from osg::StateChunkBase.

Definition at line 58 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_type.

Referenced by osg::StencilChunkBase::create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 65 of file OSGStencilChunkBase.inl.

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

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

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

Reimplemented from osg::StateChunkBase.

Definition at line 176 of file OSGStencilChunkBase.cpp.

References osg::StencilChunkBase::_type.

00177 {
00178     return _type; 
00179 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 181 of file OSGStencilChunkBase.cpp.

References osg::StencilChunkBase::_type.

00182 {
00183     return _type;
00184 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 196 of file OSGStencilChunkBase.cpp.

00197 { 
00198     return sizeof(StencilChunk); 
00199 }

SFGLenum * osg::StencilChunkBase::getSFStencilFunc void   )  [inline, inherited]
 

Definition at line 101 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilFunc.

00102 {
00103     return &_sfStencilFunc;
00104 }

SFInt32 * osg::StencilChunkBase::getSFStencilValue void   )  [inline, inherited]
 

Definition at line 108 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilValue.

00109 {
00110     return &_sfStencilValue;
00111 }

SFUInt32 * osg::StencilChunkBase::getSFStencilMask void   )  [inline, inherited]
 

Definition at line 115 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilMask.

00116 {
00117     return &_sfStencilMask;
00118 }

SFGLenum * osg::StencilChunkBase::getSFStencilOpFail void   )  [inline, inherited]
 

Definition at line 122 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilOpFail.

00123 {
00124     return &_sfStencilOpFail;
00125 }

SFGLenum * osg::StencilChunkBase::getSFStencilOpZFail void   )  [inline, inherited]
 

Definition at line 129 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilOpZFail.

00130 {
00131     return &_sfStencilOpZFail;
00132 }

SFGLenum * osg::StencilChunkBase::getSFStencilOpZPass void   )  [inline, inherited]
 

Definition at line 136 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfStencilOpZPass.

00137 {
00138     return &_sfStencilOpZPass;
00139 }

SFInt32 * osg::StencilChunkBase::getSFClearBuffer void   )  [inline, inherited]
 

Definition at line 143 of file OSGStencilChunkBase.inl.

References osg::StencilChunkBase::_sfClearBuffer.

00144 {
00145     return &_sfClearBuffer;
00146 }

GLenum & osg::StencilChunkBase::getStencilFunc void   )  [inline, inherited]
 

Definition at line 151 of file OSGStencilChunkBase.inl.

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

Referenced by operator==().

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

const GLenum & osg::StencilChunkBase::getStencilFunc void   )  const [inline, inherited]
 

Definition at line 158 of file OSGStencilChunkBase.inl.

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

00159 {
00160     return _sfStencilFunc.getValue();
00161 }

Int32 & osg::StencilChunkBase::getStencilValue void   )  [inline, inherited]
 

Definition at line 172 of file OSGStencilChunkBase.inl.

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

Referenced by operator==().

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

const Int32 & osg::StencilChunkBase::getStencilValue void   )  const [inline, inherited]
 

Definition at line 179 of file OSGStencilChunkBase.inl.

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

00180 {
00181     return _sfStencilValue.getValue();
00182 }

UInt32 & osg::StencilChunkBase::getStencilMask void   )  [inline, inherited]
 

Definition at line 193 of file OSGStencilChunkBase.inl.

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

Referenced by operator==().

00194 {
00195     return _sfStencilMask.getValue();
00196 }

const UInt32 & osg::StencilChunkBase::getStencilMask void   )  const [inline, inherited]
 

Definition at line 200 of file OSGStencilChunkBase.inl.

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

00201 {
00202     return _sfStencilMask.getValue();
00203 }

GLenum & osg::StencilChunkBase::getStencilOpFail void   )  [inline, inherited]
 

Definition at line 214 of file OSGStencilChunkBase.inl.

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

Referenced by operator==().

00215 {
00216     return _sfStencilOpFail.getValue();
00217 }

const GLenum & osg::StencilChunkBase::getStencilOpFail void   )  const [inline, inherited]
 

Definition at line 221 of file OSGStencilChunkBase.inl.

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

00222 {
00223     return _sfStencilOpFail.getValue();
00224 }

GLenum & osg::StencilChunkBase::getStencilOpZFail void   )  [inline, inherited]
 

Definition at line 235 of file OSGStencilChunkBase.inl.

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

Referenced by operator==().

00236 {
00237     return _sfStencilOpZFail.getValue();
00238 }

const GLenum & osg::StencilChunkBase::getStencilOpZFail void   )  const [inline, inherited]
 

Definition at line 242 of file OSGStencilChunkBase.inl.

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

00243 {
00244