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

osg::TexGenChunk Class Reference
[OpenGL State Handling]

State chunk for texture coordinate generation. See TexGenChunk for a description. More...

#include <OSGTexGenChunk.h>

Inheritance diagram for osg::TexGenChunk:

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

Public Types

typedef TexGenChunkPtr Ptr
enum  {
  GenFuncSFieldId = Inherited::NextFieldId, GenFuncTFieldId = GenFuncSFieldId + 1, GenFuncRFieldId = GenFuncTFieldId + 1, GenFuncQFieldId = GenFuncRFieldId + 1,
  GenFuncSPlaneFieldId = GenFuncQFieldId + 1, GenFuncTPlaneFieldId = GenFuncSPlaneFieldId + 1, GenFuncRPlaneFieldId = GenFuncTPlaneFieldId + 1, GenFuncQPlaneFieldId = GenFuncRPlaneFieldId + 1,
  SBeaconFieldId = GenFuncQPlaneFieldId + 1, TBeaconFieldId = SBeaconFieldId + 1, RBeaconFieldId = TBeaconFieldId + 1, QBeaconFieldId = RBeaconFieldId + 1,
  NextFieldId = QBeaconFieldId + 1
}

Public Member Functions

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)
Chunk Class Access
*UInt32 getClassId (void) const
Parents
*MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
*SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Chunk Class Access
*virtual const StateChunkClassgetClass (void) const
Sync
*virtual void changed (BitVector whichField, UInt32 from)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
State
*virtual void activate (DrawActionBase *action, UInt32 index=0)
virtual void changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0)
virtual void deactivate (DrawActionBase *action, UInt32 index=0)
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
*SFGLenumgetSFGenFuncS (void)
 Get the TexGenChunk::_sfGenFuncS field.
SFGLenumgetSFGenFuncT (void)
 Get the TexGenChunk::_sfGenFuncT field.
SFGLenumgetSFGenFuncR (void)
 Get the TexGenChunk::_sfGenFuncR field.
SFGLenumgetSFGenFuncQ (void)
 Get the TexGenChunk::_sfGenFuncQ field.
SFVec4fgetSFGenFuncSPlane (void)
 Get the TexGenChunk::_sfGenFuncSPlane field.
SFVec4fgetSFGenFuncTPlane (void)
 Get the TexGenChunk::_sfGenFuncTPlane field.
SFVec4fgetSFGenFuncRPlane (void)
 Get the TexGenChunk::_sfGenFuncRPlane field.
SFVec4fgetSFGenFuncQPlane (void)
 Get the TexGenChunk::_sfGenFuncQPlane field.
SFNodePtrgetSFSBeacon (void)
 Get the TexGenChunk::_sfSBeacon field.
SFNodePtrgetSFTBeacon (void)
 Get the TexGenChunk::_sfTBeacon field.
SFNodePtrgetSFRBeacon (void)
 Get the TexGenChunk::_sfRBeacon field.
SFNodePtrgetSFQBeacon (void)
 Get the TexGenChunk::_sfQBeacon field.
GLenumgetGenFuncS (void)
 Get the value of the TexGenChunk::_sfGenFuncS field.
const GLenumgetGenFuncS (void) const
 Get the value of the TexGenChunk::_sfGenFuncS field.
GLenumgetGenFuncT (void)
 Get the value of the TexGenChunk::_sfGenFuncT field.
const GLenumgetGenFuncT (void) const
 Get the value of the TexGenChunk::_sfGenFuncT field.
GLenumgetGenFuncR (void)
 Get the value of the TexGenChunk::_sfGenFuncR field.
const GLenumgetGenFuncR (void) const
 Get the value of the TexGenChunk::_sfGenFuncR field.
GLenumgetGenFuncQ (void)
 Get the value of the TexGenChunk::_sfGenFuncQ field.
const GLenumgetGenFuncQ (void) const
 Get the value of the TexGenChunk::_sfGenFuncQ field.
Vec4fgetGenFuncSPlane (void)
 Get the value of the TexGenChunk::_sfGenFuncSPlane field.
const Vec4fgetGenFuncSPlane (void) const
 Get the value of the TexGenChunk::_sfGenFuncSPlane field.
Vec4fgetGenFuncTPlane (void)
 Get the value of the TexGenChunk::_sfGenFuncTPlane field.
const Vec4fgetGenFuncTPlane (void) const
 Get the value of the TexGenChunk::_sfGenFuncTPlane field.
Vec4fgetGenFuncRPlane (void)
 Get the value of the TexGenChunk::_sfGenFuncRPlane field.
const Vec4fgetGenFuncRPlane (void) const
 Get the value of the TexGenChunk::_sfGenFuncRPlane field.
Vec4fgetGenFuncQPlane (void)
 Get the value of the TexGenChunk::_sfGenFuncQPlane field.
const Vec4fgetGenFuncQPlane (void) const
 Get the value of the TexGenChunk::_sfGenFuncQPlane field.
NodePtrgetSBeacon (void)
 Get the value of the TexGenChunk::_sfSBeacon field.
const NodePtrgetSBeacon (void) const
 Get the value of the TexGenChunk::_sfSBeacon field.
NodePtrgetTBeacon (void)
 Get the value of the TexGenChunk::_sfTBeacon field.
const NodePtrgetTBeacon (void) const
 Get the value of the TexGenChunk::_sfTBeacon field.
NodePtrgetRBeacon (void)
 Get the value of the TexGenChunk::_sfRBeacon field.
const NodePtrgetRBeacon (void) const
 Get the value of the TexGenChunk::_sfRBeacon field.
NodePtrgetQBeacon (void)
 Get the value of the TexGenChunk::_sfQBeacon field.
const NodePtrgetQBeacon (void) const
 Get the value of the TexGenChunk::_sfQBeacon field.
Field Set
*void setGenFuncS (const GLenum &value)
 Set the value of the TexGenChunk::_sfGenFuncS field.
void setGenFuncT (const GLenum &value)
 Set the value of the TexGenChunk::_sfGenFuncT field.
void setGenFuncR (const GLenum &value)
 Set the value of the TexGenChunk::_sfGenFuncR field.
void setGenFuncQ (const GLenum &value)
 Set the value of the TexGenChunk::_sfGenFuncQ field.
void setGenFuncSPlane (const Vec4f &value)
 Set the value of the TexGenChunk::_sfGenFuncSPlane field.
void setGenFuncTPlane (const Vec4f &value)
 Set the value of the TexGenChunk::_sfGenFuncTPlane field.
void setGenFuncRPlane (const Vec4f &value)
 Set the value of the TexGenChunk::_sfGenFuncRPlane field.
void setGenFuncQPlane (const Vec4f &value)
 Set the value of the TexGenChunk::_sfGenFuncQPlane field.
void setSBeacon (const NodePtr &value)
 Set the value of the TexGenChunk::_sfSBeacon field.
void setTBeacon (const NodePtr &value)
 Set the value of the TexGenChunk::_sfTBeacon field.
void setRBeacon (const NodePtr &value)
 Set the value of the TexGenChunk::_sfRBeacon field.
void setQBeacon (const NodePtr &value)
 Set the value of the TexGenChunk::_sfQBeacon 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
State
virtual bool isTransparent (void) const
Parents
*MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
*SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
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

Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
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 TexGenChunkPtr create (void)
 create a new instance of the class
static TexGenChunkPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Get Class Type Information
static UInt16 getClassGroupId (void)

Static Public Attributes

static const osg::BitVector GenFuncSFieldMask
static const osg::BitVector GenFuncTFieldMask
static const osg::BitVector GenFuncRFieldMask
static const osg::BitVector GenFuncQFieldMask
static const osg::BitVector GenFuncSPlaneFieldMask
static const osg::BitVector GenFuncTPlaneFieldMask
static const osg::BitVector GenFuncRPlaneFieldMask
static const osg::BitVector GenFuncQPlaneFieldMask
static const osg::BitVector SBeaconFieldMask
static const osg::BitVector TBeaconFieldMask
static const osg::BitVector RBeaconFieldMask
static const osg::BitVector QBeaconFieldMask
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
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false

Protected Member Functions

Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
Sync
*void executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Edit
template<class FieldTypeT>
*void