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

osg::TexGenChunkBase Class Reference

TexGenChunk Base Class.

#include <OSGTexGenChunkBase.h>

Inheritance diagram for osg::TexGenChunkBase:

osg::StateChunk osg::StateChunkBase osg::Attachment osg::FieldContainer osg::TexGenChunk 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)
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)
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
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
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)
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
Static Chunk Class Access
*static UInt32 getStaticClassId (void)
static const StateChunkClassgetStaticClass (void)
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

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 (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)
Constructors
TexGenChunkBase (void)
 TexGenChunkBase (const TexGenChunkBase &source)
Destructors
*virtual ~TexGenChunkBase (void)
Sync
*void executeSyncImpl (TexGenChunkBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
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 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)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)
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

Member
*UInt32 _shares
Member
*UInt32 _shares
Member
*UInt32 _shares
Fields
*SFGLenum _sfGenFuncS
SFGLenum _sfGenFuncT
SFGLenum _sfGenFuncR
SFGLenum _sfGenFuncQ
SFVec4f _sfGenFuncSPlane
SFVec4f _sfGenFuncTPlane
SFVec4f _sfGenFuncRPlane
SFVec4f _sfGenFuncQPlane
SFNodePtr _sfSBeacon
SFNodePtr _sfTBeacon
SFNodePtr _sfRBeacon
SFNodePtr _sfQBeacon
Fields
*SFBool _sfInternal
MFFieldContainerPtr _parents
Member
*UInt32 _shares

Private Types

typedef StateChunk Inherited

Private Member Functions

void operator= (const TexGenChunkBase &source)

Static Private Attributes

static FieldDescription_desc []
 TexGenChunk description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 92 of file OSGTexGenChunkBase.h.


Member Typedef Documentation

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

Reimplemented from osg::StateChunk.

Reimplemented in osg::TexGenChunk.

Definition at line 96 of file OSGTexGenChunkBase.h.

typedef TexGenChunkPtr osg::TexGenChunkBase::Ptr
 

Reimplemented from osg::StateChunkBase.

Definition at line 101 of file OSGTexGenChunkBase.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
GenFuncSFieldId 
GenFuncTFieldId 
GenFuncRFieldId 
GenFuncQFieldId 
GenFuncSPlaneFieldId 
GenFuncTPlaneFieldId 
GenFuncRPlaneFieldId 
GenFuncQPlaneFieldId 
SBeaconFieldId 
TBeaconFieldId 
RBeaconFieldId 
QBeaconFieldId 
NextFieldId 

Reimplemented from osg::Attachment.

Definition at line 103 of file OSGTexGenChunkBase.h.

00104     {
00105         GenFuncSFieldId      = Inherited::NextFieldId,
00106         GenFuncTFieldId      = GenFuncSFieldId      + 1,
00107         GenFuncRFieldId      = GenFuncTFieldId      + 1,
00108         GenFuncQFieldId      = GenFuncRFieldId      + 1,
00109         GenFuncSPlaneFieldId = GenFuncQFieldId      + 1,
00110         GenFuncTPlaneFieldId = GenFuncSPlaneFieldId + 1,
00111         GenFuncRPlaneFieldId = GenFuncTPlaneFieldId + 1,
00112         GenFuncQPlaneFieldId = GenFuncRPlaneFieldId + 1,
00113         SBeaconFieldId       = GenFuncQPlaneFieldId + 1,
00114         TBeaconFieldId       = SBeaconFieldId       + 1,
00115         RBeaconFieldId       = TBeaconFieldId       + 1,
00116         QBeaconFieldId       = RBeaconFieldId       + 1,
00117         NextFieldId          = QBeaconFieldId       + 1
00118     };


Constructor & Destructor Documentation

TexGenChunkBase::TexGenChunkBase void   )  [protected]
 

Definition at line 289 of file OSGTexGenChunkBase.cpp.

00289                                      :
00290     _sfGenFuncS               (GLenum(GL_NONE)), 
00291     _sfGenFuncT               (GLenum(GL_NONE)), 
00292     _sfGenFuncR               (GLenum(GL_NONE)), 
00293     _sfGenFuncQ               (GLenum(GL_NONE)), 
00294     _sfGenFuncSPlane          (Vec4f(1,0,0,0)), 
00295     _sfGenFuncTPlane          (Vec4f(0,1,0,0)), 
00296     _sfGenFuncRPlane          (Vec4f(0,0,1,0)), 
00297     _sfGenFuncQPlane          (Vec4f(0,0,0,1)), 
00298     _sfSBeacon                (), 
00299     _sfTBeacon                (), 
00300     _sfRBeacon                (), 
00301     _sfQBeacon                (), 
00302     Inherited() 
00303 {
00304 }

TexGenChunkBase::TexGenChunkBase const TexGenChunkBase source  )  [protected]
 

Definition at line 310 of file OSGTexGenChunkBase.cpp.

00310                                                               :
00311     _sfGenFuncS               (source._sfGenFuncS               ), 
00312     _sfGenFuncT               (source._sfGenFuncT               ), 
00313     _sfGenFuncR               (source._sfGenFuncR               ), 
00314     _sfGenFuncQ               (source._sfGenFuncQ               ), 
00315     _sfGenFuncSPlane          (source._sfGenFuncSPlane          ), 
00316     _sfGenFuncTPlane          (source._sfGenFuncTPlane          ), 
00317     _sfGenFuncRPlane          (source._sfGenFuncRPlane          ), 
00318     _sfGenFuncQPlane          (source._sfGenFuncQPlane          ), 
00319     _sfSBeacon                (source._sfSBeacon                ), 
00320     _sfTBeacon                (source._sfTBeacon                ), 
00321     _sfRBeacon                (source._sfRBeacon                ), 
00322     _sfQBeacon                (source._sfQBeacon                ), 
00323     Inherited                 (source)
00324 {
00325 }

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

Definition at line 329 of file OSGTexGenChunkBase.cpp.

00330 {
00331 }


Member Function Documentation

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

Reimplemented from osg::StateChunkBase.

Definition at line 58 of file OSGTexGenChunkBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 65 of file OSGTexGenChunkBase.inl.

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

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

FieldContainerType & TexGenChunkBase::getType void   )  [virtual]
 

Reimplemented from osg::StateChunkBase.

Definition at line 231 of file OSGTexGenChunkBase.cpp.

References _type.

00232 {
00233     return _type; 
00234 } 

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

Reimplemented from osg::StateChunkBase.

Definition at line 236 of file OSGTexGenChunkBase.cpp.

References _type.

00237 {
00238     return _type;
00239 } 

UInt32 TexGenChunkBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::StateChunkBase.

Definition at line 251 of file OSGTexGenChunkBase.cpp.

00252 { 
00253     return sizeof(TexGenChunk); 
00254 }

SFGLenum * osg::TexGenChunkBase::getSFGenFuncS void   )  [inline]
 

Definition at line 101 of file OSGTexGenChunkBase.inl.

References _sfGenFuncS.

00102 {
00103     return &_sfGenFuncS;
00104 }

SFGLenum * osg::TexGenChunkBase::getSFGenFuncT void   )  [inline]
 

Definition at line 108 of file OSGTexGenChunkBase.inl.

References _sfGenFuncT.

00109 {
00110     return &_sfGenFuncT;
00111 }

SFGLenum * osg::TexGenChunkBase::getSFGenFuncR void   )  [inline]
 

Definition at line 115 of file OSGTexGenChunkBase.inl.

References _sfGenFuncR.

00116 {
00117     return &_sfGenFuncR;
00118 }

SFGLenum * osg::TexGenChunkBase::getSFGenFuncQ void   )  [inline]
 

Definition at line 122 of file OSGTexGenChunkBase.inl.

References _sfGenFuncQ.

00123 {
00124     return &_sfGenFuncQ;
00125 }

SFVec4f * osg::TexGenChunkBase::getSFGenFuncSPlane void   )  [inline]
 

Definition at line 129 of file OSGTexGenChunkBase.inl.

References _sfGenFuncSPlane.

00130 {
00131     return &_sfGenFuncSPlane;
00132 }

SFVec4f * osg::TexGenChunkBase::getSFGenFuncTPlane void   )  [inline]
 

Definition at line 136 of file OSGTexGenChunkBase.inl.

References _sfGenFuncTPlane.

00137 {
00138     return &_sfGenFuncTPlane;
00139 }

SFVec4f * osg::TexGenChunkBase::getSFGenFuncRPlane void   )  [inline]
 

Definition at line 143 of file OSGTexGenChunkBase.inl.

References _sfGenFuncRPlane.

00144 {
00145     return &_sfGenFuncRPlane;
00146 }

SFVec4f * osg::TexGenChunkBase::getSFGenFuncQPlane void   )  [inline]
 

Definition at line 150 of file OSGTexGenChunkBase.inl.

References _sfGenFuncQPlane.

00151 {
00152     return &_sfGenFuncQPlane;
00153 }

SFNodePtr * osg::TexGenChunkBase::getSFSBeacon void   )  [inline]
 

Definition at line 157 of file OSGTexGenChunkBase.inl.

References _sfSBeacon.

00158 {
00159     return &_sfSBeacon;
00160 }

SFNodePtr * osg::TexGenChunkBase::getSFTBeacon void   )  [inline]
 

Definition at line 164 of file OSGTexGenChunkBase.inl.

References _sfTBeacon.

00165 {
00166     return &_sfTBeacon;
00167 }

SFNodePtr * osg::TexGenChunkBase::getSFRBeacon void   )  [inline]
 

Definition at line 171 of file OSGTexGenChunkBase.inl.

References _sfRBeacon.

00172 {
00173     return &_sfRBeacon;
00174 }

SFNodePtr<