osg::GeometryBase Class Reference

Geometry Base Class.

#include <OSGGeometryBase.h>

Inheritance diagram for osg::GeometryBase:

osg::MaterialDrawable osg::MaterialDrawableBase osg::Drawable osg::DrawableBase osg::NodeCore osg::AttachmentContainer osg::FieldContainer osg::Geometry osg::DVRGeometryBase osg::SurfaceBase osg::DVRGeometry osg::Surface

List of all members.

Public Types

enum  {
  TypesFieldId = Inherited::NextFieldId, LengthsFieldId = TypesFieldId + 1, PositionsFieldId = LengthsFieldId + 1, NormalsFieldId = PositionsFieldId + 1,
  ColorsFieldId = NormalsFieldId + 1, SecondaryColorsFieldId = ColorsFieldId + 1, TexCoordsFieldId = SecondaryColorsFieldId + 1, TexCoords1FieldId = TexCoordsFieldId + 1,
  TexCoords2FieldId = TexCoords1FieldId + 1, TexCoords3FieldId = TexCoords2FieldId + 1, TexCoords4FieldId = TexCoords3FieldId + 1, TexCoords5FieldId = TexCoords4FieldId + 1,
  TexCoords6FieldId = TexCoords5FieldId + 1, TexCoords7FieldId = TexCoords6FieldId + 1, IndicesFieldId = TexCoords7FieldId + 1, IndexMappingFieldId = IndicesFieldId + 1,
  DlistCacheFieldId = IndexMappingFieldId + 1, GLIdFieldId = DlistCacheFieldId + 1, IgnoreGLForAspectFieldId = GLIdFieldId + 1, MinindexFieldId = IgnoreGLForAspectFieldId + 1,
  MaxindexFieldId = MinindexFieldId + 1, LowindicesFieldId = MaxindexFieldId + 1, HighindicesFieldId = LowindicesFieldId + 1, VboFieldId = HighindicesFieldId + 1,
  NextFieldId = VboFieldId + 1
}
typedef GeometryPtr Ptr
enum  { MaterialFieldId = Inherited::NextFieldId, NextFieldId = MaterialFieldId + 1 }
enum  { ParentsFieldId = Inherited::NextFieldId, NextFieldId = ParentsFieldId + 1 }
typedef MFNodePtr ParentField
typedef MFNodePtrParentFieldPtr
typedef MFNodePtr::iterator ParentFieldIt
enum  { AttachmentsFieldId = Inherited::NextFieldId, NextFieldId = AttachmentsFieldId + 1 }
enum  { NextFieldId = 1 }

Public Member Functions

FieldContainer Get


virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get


SFGeoPTypesPtrgetSFTypes (void)
 Get the Geometry::_sfTypes field.
SFGeoPLengthsPtrgetSFLengths (void)
 Get the Geometry::_sfLengths field.
SFGeoPositionsPtrgetSFPositions (void)
 Get the Geometry::_sfPositions field.
SFGeoNormalsPtrgetSFNormals (void)
 Get the Geometry::_sfNormals field.
SFGeoColorsPtrgetSFColors (void)
 Get the Geometry::_sfColors field.
SFGeoColorsPtrgetSFSecondaryColors (void)
 Get the Geometry::_sfSecondaryColors field.
SFGeoTexCoordsPtrgetSFTexCoords (void)
 Get the Geometry::_sfTexCoords field.
SFGeoTexCoordsPtrgetSFTexCoords1 (void)
 Get the Geometry::_sfTexCoords1 field.
SFGeoTexCoordsPtrgetSFTexCoords2 (void)
 Get the Geometry::_sfTexCoords2 field.
SFGeoTexCoordsPtrgetSFTexCoords3 (void)
 Get the Geometry::_sfTexCoords3 field.
SFGeoTexCoordsPtrgetSFTexCoords4 (void)
 Get the Geometry::_sfTexCoords4 field.
SFGeoTexCoordsPtrgetSFTexCoords5 (void)
 Get the Geometry::_sfTexCoords5 field.
SFGeoTexCoordsPtrgetSFTexCoords6 (void)
 Get the Geometry::_sfTexCoords6 field.
SFGeoTexCoordsPtrgetSFTexCoords7 (void)
 Get the Geometry::_sfTexCoords7 field.
SFGeoIndicesPtrgetSFIndices (void)
 Get the Geometry::_sfIndices field.
MFUInt16getMFIndexMapping (void)
 Get the Geometry::_mfIndexMapping field.
SFBoolgetSFDlistCache (void)
 Get the Geometry::_sfDlistCache field.
SFInt32getSFIgnoreGLForAspect (void)
 Get the Geometry::_sfIgnoreGLForAspect field.
SFUInt32getSFMinindex (void)
 Get the Geometry::_sfMinindex field.
SFUInt32getSFMaxindex (void)
 Get the Geometry::_sfMaxindex field.
MFUInt32getMFLowindices (void)
 Get the Geometry::_mfLowindices field.
MFUInt32getMFHighindices (void)
 Get the Geometry::_mfHighindices field.
SFBoolgetSFVbo (void)
 Get the Geometry::_sfVbo field.
GeoPTypesPtrgetTypes (void)
 Get the value of the Geometry::_sfTypes field.
const GeoPTypesPtrgetTypes (void) const
 Get the value of the Geometry::_sfTypes field.
GeoPLengthsPtrgetLengths (void)
 Get the value of the Geometry::_sfLengths field.
const GeoPLengthsPtrgetLengths (void) const
 Get the value of the Geometry::_sfLengths field.
GeoPositionsPtrgetPositions (void)
 Get the value of the Geometry::_sfPositions field.
const GeoPositionsPtrgetPositions (void) const
 Get the value of the Geometry::_sfPositions field.
GeoNormalsPtrgetNormals (void)
 Get the value of the Geometry::_sfNormals field.
const GeoNormalsPtrgetNormals (void) const
 Get the value of the Geometry::_sfNormals field.
GeoColorsPtrgetColors (void)
 Get the value of the Geometry::_sfColors field.
const GeoColorsPtrgetColors (void) const
 Get the value of the Geometry::_sfColors field.
GeoColorsPtrgetSecondaryColors (void)
 Get the value of the Geometry::_sfSecondaryColors field.
const GeoColorsPtrgetSecondaryColors (void) const
 Get the value of the Geometry::_sfSecondaryColors field.
GeoTexCoordsPtrgetTexCoords (void)
 Get the value of the Geometry::_sfTexCoords field.
const GeoTexCoordsPtrgetTexCoords (void) const
 Get the value of the Geometry::_sfTexCoords field.
GeoTexCoordsPtrgetTexCoords1 (void)
 Get the value of the Geometry::_sfTexCoords1 field.
const GeoTexCoordsPtrgetTexCoords1 (void) const
 Get the value of the Geometry::_sfTexCoords1 field.
GeoTexCoordsPtrgetTexCoords2 (void)
 Get the value of the Geometry::_sfTexCoords2 field.
const GeoTexCoordsPtrgetTexCoords2 (void) const
 Get the value of the Geometry::_sfTexCoords2 field.
GeoTexCoordsPtrgetTexCoords3 (void)
 Get the value of the Geometry::_sfTexCoords3 field.
const GeoTexCoordsPtrgetTexCoords3 (void) const
 Get the value of the Geometry::_sfTexCoords3 field.
GeoTexCoordsPtrgetTexCoords4 (void)
 Get the value of the Geometry::_sfTexCoords4 field.
const GeoTexCoordsPtrgetTexCoords4 (void) const
 Get the value of the Geometry::_sfTexCoords4 field.
GeoTexCoordsPtrgetTexCoords5 (void)
 Get the value of the Geometry::_sfTexCoords5 field.
const GeoTexCoordsPtrgetTexCoords5 (void) const
 Get the value of the Geometry::_sfTexCoords5 field.
GeoTexCoordsPtrgetTexCoords6 (void)
 Get the value of the Geometry::_sfTexCoords6 field.
const GeoTexCoordsPtrgetTexCoords6 (void) const
 Get the value of the Geometry::_sfTexCoords6 field.
GeoTexCoordsPtrgetTexCoords7 (void)
 Get the value of the Geometry::_sfTexCoords7 field.
const GeoTexCoordsPtrgetTexCoords7 (void) const
 Get the value of the Geometry::_sfTexCoords7 field.
GeoIndicesPtrgetIndices (void)
 Get the value of the Geometry::_sfIndices field.
const GeoIndicesPtrgetIndices (void) const
 Get the value of the Geometry::_sfIndices field.
bool & getDlistCache (void)
 Get the value of the Geometry::_sfDlistCache field.
const bool & getDlistCache (void) const
 Get the value of the Geometry::_sfDlistCache field.
Int32getIgnoreGLForAspect (void)
 Get the value of the Geometry::_sfIgnoreGLForAspect field.
const Int32getIgnoreGLForAspect (void) const
 Get the value of the Geometry::_sfIgnoreGLForAspect field.
UInt32getMinindex (void)
 Get the value of the Geometry::_sfMinindex field.
const UInt32getMinindex (void) const
 Get the value of the Geometry::_sfMinindex field.
UInt32getMaxindex (void)
 Get the value of the Geometry::_sfMaxindex field.
const UInt32getMaxindex (void) const
 Get the value of the Geometry::_sfMaxindex field.
bool & getVbo (void)
 Get the value of the Geometry::_sfVbo field.
const bool & getVbo (void) const
 Get the value of the Geometry::_sfVbo field.
UInt16getIndexMapping (const UInt32 index)
 Get the value of the index element the Geometry::_mfIndexMapping field.
MFUInt16getIndexMapping (void)
 Get the Geometry::_mfIndexMapping field.
const MFUInt16getIndexMapping (void) const
 Get the Geometry::_mfIndexMapping field.
UInt32getLowindices (const UInt32 index)
 Get the value of the index element the Geometry::_mfLowindices field.
MFUInt32getLowindices (void)
 Get the Geometry::_mfLowindices field.
const MFUInt32getLowindices (void) const
 Get the Geometry::_mfLowindices field.
UInt32getHighindices (const UInt32 index)
 Get the value of the index element the Geometry::_mfHighindices field.
MFUInt32getHighindices (void)
 Get the Geometry::_mfHighindices field.
const MFUInt32getHighindices (void) const
 Get the Geometry::_mfHighindices field.
Field Set


void setTypes (const GeoPTypesPtr &value)
 Set the value of the Geometry::_sfTypes field.
void setLengths (const GeoPLengthsPtr &value)
 Set the value of the Geometry::_sfLengths field.
void setPositions (const GeoPositionsPtr &value)
 Set the value of the Geometry::_sfPositions field.
void setNormals (const GeoNormalsPtr &value)
 Set the value of the Geometry::_sfNormals field.
void setColors (const GeoColorsPtr &value)
 Set the value of the Geometry::_sfColors field.
void setSecondaryColors (const GeoColorsPtr &value)
 Set the value of the Geometry::_sfSecondaryColors field.
void setTexCoords (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords field.
void setTexCoords1 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords1 field.
void setTexCoords2 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords2 field.
void setTexCoords3 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords3 field.
void setTexCoords4 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords4 field.
void setTexCoords5 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords5 field.
void setTexCoords6 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords6 field.
void setTexCoords7 (const GeoTexCoordsPtr &value)
 Set the value of the Geometry::_sfTexCoords7 field.
void setIndices (const GeoIndicesPtr &value)
 Set the value of the Geometry::_sfIndices field.
void setDlistCache (const bool &value)
 Set the value of the Geometry::_sfDlistCache field.
void setIgnoreGLForAspect (const Int32 &value)
 Set the value of the Geometry::_sfIgnoreGLForAspect field.
void setMinindex (const UInt32 &value)
 Set the value of the Geometry::_sfMinindex field.
void setMaxindex (const UInt32 &value)
 Set the value of the Geometry::_sfMaxindex field.
void setVbo (const bool &value)
 Set the value of the Geometry::_sfVbo 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
action handler


virtual Action::ResultE drawPrimitives (DrawActionBase *action)
 initialize the static features of the class, e.g. action callbacks
Action::ResultE drawActionHandler (Action *action)
 initialize the static features of the class, e.g. action callbacks
Action::ResultE renderActionHandler (Action *action)
 initialize the static features of the class, e.g. action callbacks
Sync


virtual void changed (BitVector whichField, UInt32 origin)
 react to field changes
Output


virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
 output the instance for debug purposes
Field Set


void setMaterial (const MaterialPtr &value)
Field Get


SFMaterialPtrgetSFMaterial (void)
 Get the MaterialDrawable::_sfMaterial field.
MaterialPtrgetMaterial (void)
 Get the value of the MaterialDrawable::_sfMaterial field.
const MaterialPtrgetMaterial (void) const
 Get the value of the MaterialDrawable::_sfMaterial field.
Parents


MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume


virtual void invalidateVolume (void)
Handle Attachments


void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)


SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information


UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const


FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)

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 GeometryPtr create (void)
 create a new instance of the class
static GeometryPtr 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 TypesFieldMask
static const osg::BitVector LengthsFieldMask
static const osg::BitVector PositionsFieldMask
static const osg::BitVector NormalsFieldMask
static const osg::BitVector ColorsFieldMask
static const osg::BitVector SecondaryColorsFieldMask
static const osg::BitVector TexCoordsFieldMask
static const osg::BitVector TexCoords1FieldMask
static const osg::BitVector TexCoords2FieldMask
static const osg::BitVector TexCoords3FieldMask
static const osg::BitVector TexCoords4FieldMask
static const osg::BitVector TexCoords5FieldMask
static const osg::BitVector TexCoords6FieldMask
static const osg::BitVector TexCoords7FieldMask
static const osg::BitVector IndicesFieldMask
static const osg::BitVector IndexMappingFieldMask
static const osg::BitVector DlistCacheFieldMask
static const osg::BitVector GLIdFieldMask
static const osg::BitVector IgnoreGLForAspectFieldMask
static const osg::BitVector MinindexFieldMask
static const osg::BitVector MaxindexFieldMask
static const osg::BitVector LowindicesFieldMask
static const osg::BitVector HighindicesFieldMask
static const osg::BitVector VboFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector MaterialFieldMask
static const BitVector ParentsFieldMask = (1 << NodeCore::ParentsFieldId )
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask
static stat elem


static StatElemDesc< StatIntElemstatNTriangles
static StatElemDesc< StatIntElemstatNLines
static StatElemDesc< StatIntElemstatNPoints
static StatElemDesc< StatIntElemstatNVertices
static StatElemDesc< StatIntElemstatNPrimitives
static StatElemDesc
< StatIntOnceElem
statNGeoBytes
CoredNodePtr helper


static const bool isNodeCore = true

Protected Member Functions

Constructors


 GeometryBase (void)
 GeometryBase (const GeometryBase &source)
Destructors


virtual ~GeometryBase (void)
Field Get


SFInt32getSFGLId (void)
 Get the Geometry::_sfGLId field.
Int32getGLId (void)
 Get the value of the Geometry::_sfGLId field.
const Int32getGLId (void) const
 Get the value of the Geometry::_sfGLId field.
Field Set


void setGLId (const Int32 &value)
 Set the value of the Geometry::_sfGLId field.
Sync


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


void executeSyncImpl (MaterialDrawableBase *pOther, const BitVector &whichField)
Sync


void executeSyncImpl (DrawableBase *pOther, const BitVector &whichField)
Sync


void executeSyncImpl (NodeCore *pOther, const BitVector &whichField)
Sync


void executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField)
Sync


void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Destruction


virtual void onDestroy (void)
Set / Get Parents


void addParent (const NodePtr &parent)
void subParent (const NodePtr &parent)
Pointer


NodeCorePtr getPtr (void) const
Pointer


AttachmentContainerPtr getPtr (void)
Transformation


virtual void accumulateMatrix (Matrix &result)
Volume


virtual void adjustVolume (Volume &volume)
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

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

Fields


SFGeoPTypesPtr _sfTypes
SFGeoPLengthsPtr _sfLengths
SFGeoPositionsPtr _sfPositions
SFGeoNormalsPtr _sfNormals
SFGeoColorsPtr _sfColors
SFGeoColorsPtr _sfSecondaryColors
SFGeoTexCoordsPtr _sfTexCoords
SFGeoTexCoordsPtr _sfTexCoords1
SFGeoTexCoordsPtr _sfTexCoords2
SFGeoTexCoordsPtr _sfTexCoords3
SFGeoTexCoordsPtr _sfTexCoords4
SFGeoTexCoordsPtr _sfTexCoords5
SFGeoTexCoordsPtr _sfTexCoords6
SFGeoTexCoordsPtr _sfTexCoords7
SFGeoIndicesPtr _sfIndices
MFUInt16 _mfIndexMapping
SFBool _sfDlistCache
SFInt32 _sfGLId
SFInt32 _sfIgnoreGLForAspect
SFUInt32 _sfMinindex
SFUInt32 _sfMaxindex
MFUInt32 _mfLowindices
MFUInt32 _mfHighindices
SFBool _sfVbo
Fields


SFMaterialPtr _sfMaterial
Fields


MFNodePtr _parents
Fields


SFAttachmentMap _attachmentMap
Member


UInt32 _shares

Private Types

typedef MaterialDrawable Inherited

Private Member Functions

void operator= (const GeometryBase &source)

Static Private Attributes

static FieldDescription_desc []
 Geometry description.
static FieldContainerType _type

Friends

class FieldContainer


Detailed Description

Definition at line 104 of file OSGGeometryBase.h.


Member Typedef Documentation

Reimplemented from osg::MaterialDrawable.

Reimplemented in osg::Geometry, osg::DVRGeometry, osg::DVRGeometryBase, osg::Surface, and osg::SurfaceBase.

Definition at line 108 of file OSGGeometryBase.h.

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 113 of file OSGGeometryBase.h.

Definition at line 85 of file OSGNodeCore.h.

Definition at line 86 of file OSGNodeCore.h.

Definition at line 87 of file OSGNodeCore.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
TypesFieldId 
LengthsFieldId 
PositionsFieldId 
NormalsFieldId 
ColorsFieldId 
SecondaryColorsFieldId 
TexCoordsFieldId 
TexCoords1FieldId 
TexCoords2FieldId 
TexCoords3FieldId 
TexCoords4FieldId 
TexCoords5FieldId 
TexCoords6FieldId 
TexCoords7FieldId 
IndicesFieldId 
IndexMappingFieldId 
DlistCacheFieldId 
GLIdFieldId 
IgnoreGLForAspectFieldId 
MinindexFieldId 
MaxindexFieldId 
LowindicesFieldId 
HighindicesFieldId 
VboFieldId 
NextFieldId 

Definition at line 115 of file OSGGeometryBase.h.

00116     {
00117         TypesFieldId             = Inherited::NextFieldId,
00118         LengthsFieldId           = TypesFieldId             + 1,
00119         PositionsFieldId         = LengthsFieldId           + 1,
00120         NormalsFieldId           = PositionsFieldId         + 1,
00121         ColorsFieldId            = NormalsFieldId           + 1,
00122         SecondaryColorsFieldId   = ColorsFieldId            + 1,
00123         TexCoordsFieldId         = SecondaryColorsFieldId   + 1,
00124         TexCoords1FieldId        = TexCoordsFieldId         + 1,
00125         TexCoords2FieldId        = TexCoords1FieldId        + 1,
00126         TexCoords3FieldId        = TexCoords2FieldId        + 1,
00127         TexCoords4FieldId        = TexCoords3FieldId        + 1,
00128         TexCoords5FieldId        = TexCoords4FieldId        + 1,
00129         TexCoords6FieldId        = TexCoords5FieldId        + 1,
00130         TexCoords7FieldId        = TexCoords6FieldId        + 1,
00131         IndicesFieldId           = TexCoords7FieldId        + 1,
00132         IndexMappingFieldId      = IndicesFieldId           + 1,
00133         DlistCacheFieldId        = IndexMappingFieldId      + 1,
00134         GLIdFieldId              = DlistCacheFieldId        + 1,
00135         IgnoreGLForAspectFieldId = GLIdFieldId              + 1,
00136         MinindexFieldId          = IgnoreGLForAspectFieldId + 1,
00137         MaxindexFieldId          = MinindexFieldId          + 1,
00138         LowindicesFieldId        = MaxindexFieldId          + 1,
00139         HighindicesFieldId       = LowindicesFieldId        + 1,
00140         VboFieldId               = HighindicesFieldId       + 1,
00141         NextFieldId              = VboFieldId               + 1
00142     };

anonymous enum [inherited]

Enumerator:
MaterialFieldId 
NextFieldId 

Definition at line 92 of file OSGMaterialDrawableBase.h.

00093     {
00094         MaterialFieldId = Inherited::NextFieldId,
00095         NextFieldId     = MaterialFieldId + 1
00096     };

anonymous enum [inherited]

Enumerator:
ParentsFieldId 
NextFieldId 

Definition at line 93 of file OSGNodeCore.h.

00094     { 
00095         ParentsFieldId     = Inherited::NextFieldId, 
00096         NextFieldId        = ParentsFieldId + 1
00097     };

anonymous enum [inherited]

Enumerator:
AttachmentsFieldId 
NextFieldId 

Definition at line 78 of file OSGAttachmentContainerImpl.h.

anonymous enum [inherited]

Enumerator:
NextFieldId 

Definition at line 73 of file OSGFieldContainerImpl.h.

00073 { NextFieldId = 1 };


Constructor & Destructor Documentation

osg::GeometryBase::GeometryBase ( void   )  [protected]

Definition at line 420 of file OSGGeometryBase.cpp.

00420                                :
00421     _sfTypes                  (), 
00422     _sfLengths                (), 
00423     _sfPositions              (), 
00424     _sfNormals                (), 
00425     _sfColors                 (), 
00426     _sfSecondaryColors        (), 
00427     _sfTexCoords              (), 
00428     _sfTexCoords1             (), 
00429     _sfTexCoords2             (), 
00430     _sfTexCoords3             (), 
00431     _sfTexCoords4             (), 
00432     _sfTexCoords5             (), 
00433     _sfTexCoords6             (), 
00434     _sfTexCoords7             (), 
00435     _sfIndices                (), 
00436     _mfIndexMapping           (), 
00437     _sfDlistCache             (bool(true)), 
00438     _sfGLId                   (Int32(0)), 
00439     _sfIgnoreGLForAspect      (Int32(-1)), 
00440     _sfMinindex               (), 
00441     _sfMaxindex               (), 
00442     _mfLowindices             (), 
00443     _mfHighindices            (), 
00444     _sfVbo                    (bool(false)), 
00445     Inherited() 
00446 {
00447 }

osg::GeometryBase::GeometryBase ( const GeometryBase source  )  [protected]

Definition at line 453 of file OSGGeometryBase.cpp.

00453                                                      :
00454     _sfTypes                  (source._sfTypes                  ), 
00455     _sfLengths                (source._sfLengths                ), 
00456     _sfPositions              (source._sfPositions              ), 
00457     _sfNormals                (source._sfNormals                ), 
00458     _sfColors                 (source._sfColors                 ), 
00459     _sfSecondaryColors        (source._sfSecondaryColors        ), 
00460     _sfTexCoords              (source._sfTexCoords              ), 
00461     _sfTexCoords1             (source._sfTexCoords1             ), 
00462     _sfTexCoords2             (source._sfTexCoords2             ), 
00463     _sfTexCoords3             (source._sfTexCoords3             ), 
00464     _sfTexCoords4             (source._sfTexCoords4             ), 
00465     _sfTexCoords5             (source._sfTexCoords5             ), 
00466     _sfTexCoords6             (source._sfTexCoords6             ), 
00467     _sfTexCoords7             (source._sfTexCoords7             ), 
00468     _sfIndices                (source._sfIndices                ), 
00469     _mfIndexMapping           (source._mfIndexMapping           ), 
00470     _sfDlistCache             (source._sfDlistCache             ), 
00471     _sfGLId                   (source._sfGLId                   ), 
00472     _sfIgnoreGLForAspect      (source._sfIgnoreGLForAspect      ), 
00473     _sfMinindex               (source._sfMinindex               ), 
00474     _sfMaxindex               (source._sfMaxindex               ), 
00475     _mfLowindices             (source._mfLowindices             ), 
00476     _mfHighindices            (source._mfHighindices            ), 
00477     _sfVbo                    (source._sfVbo                    ), 
00478     Inherited                 (source)
00479 {
00480 }

osg::GeometryBase::~GeometryBase ( void   )  [protected, virtual]

Definition at line 484 of file OSGGeometryBase.cpp.

00485 {
00486 }


Member Function Documentation

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

osg::UInt32 osg::GeometryBase::getClassTypeId ( void   )  [inline, static]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 65 of file OSGGeometryBase.inl.

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

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

FieldContainerType & osg::GeometryBase::getType ( void   )  [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 359 of file OSGGeometryBase.cpp.

References _type.

Referenced by osg::Geometry::dump().

00360 {
00361     return _type; 
00362 } 

const FieldContainerType & osg::GeometryBase::getType ( void   )  const [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 364 of file OSGGeometryBase.cpp.

References _type.

00365 {
00366     return _type;
00367 } 

UInt32 osg::GeometryBase::getContainerSize ( void   )  const [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 379 of file OSGGeometryBase.cpp.

00380 { 
00381     return sizeof(Geometry); 
00382 }

SFGeoPTypesPtr * osg::GeometryBase::getSFTypes ( void   )  [inline]

Definition at line 101 of file OSGGeometryBase.inl.

References _sfTypes.

00102 {
00103     return &_sfTypes;
00104 }

SFGeoPLengthsPtr * osg::GeometryBase::getSFLengths ( void   )  [inline]

Definition at line 108 of file OSGGeometryBase.inl.

References _sfLengths.

00109 {
00110     return &_sfLengths;
00111 }

SFGeoPositionsPtr * osg::GeometryBase::getSFPositions ( void   )  [inline]

Definition at line 115 of file OSGGeometryBase.inl.

References _sfPositions.

00116 {
00117     return &_sfPositions;
00118 }

SFGeoNormalsPtr * osg::GeometryBase::getSFNormals ( void   )  [inline]

Definition at line 122 of file OSGGeometryBase.inl.

References _sfNormals.

00123 {
00124     return &_sfNormals;
00125 }

SFGeoColorsPtr * osg::GeometryBase::getSFColors ( void   )  [inline]

Definition at line 129 of file OSGGeometryBase.inl.

References _sfColors.

00130 {
00131     return &_sfColors;
00132 }

SFGeoColorsPtr * osg::GeometryBase::getSFSecondaryColors ( void   )  [inline]

Definition at line 136 of file OSGGeometryBase.inl.

References _sfSecondaryColors.

00137 {
00138     return &_sfSecondaryColors;
00139 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords ( void   )  [inline]

Definition at line 143 of file OSGGeometryBase.inl.

References _sfTexCoords.

00144 {
00145     return &_sfTexCoords;
00146 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords1 ( void   )  [inline]

Definition at line 150 of file OSGGeometryBase.inl.

References _sfTexCoords1.

00151 {
00152     return &_sfTexCoords1;
00153 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords2 ( void   )  [inline]

Definition at line 157 of file OSGGeometryBase.inl.

References _sfTexCoords2.

00158 {
00159     return &_sfTexCoords2;
00160 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords3 ( void   )  [inline]

Definition at line 164 of file OSGGeometryBase.inl.

References _sfTexCoords3.

00165 {
00166     return &_sfTexCoords3;
00167 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords4 ( void   )  [inline]

Definition at line 171 of file OSGGeometryBase.inl.

References _sfTexCoords4.

00172 {
00173     return &_sfTexCoords4;
00174 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords5 ( void   )  [inline]

Definition at line 178 of file OSGGeometryBase.inl.

References _sfTexCoords5.

00179 {
00180     return &_sfTexCoords5;
00181 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords6 ( void   )  [inline]

Definition at line 185 of file OSGGeometryBase.inl.

References _sfTexCoords6.

00186 {
00187     return &_sfTexCoords6;
00188 }

SFGeoTexCoordsPtr * osg::GeometryBase::getSFTexCoords7 ( void   )  [inline]

Definition at line 192 of file OSGGeometryBase.inl.

References _sfTexCoords7.

00193 {
00194     return &_sfTexCoords7;
00195 }

SFGeoIndicesPtr * osg::GeometryBase::getSFIndices ( void   )  [inline]

Definition at line 199 of file OSGGeometryBase.inl.

References _sfIndices.

00200 {
00201     return &_sfIndices;
00202 }

MFUInt16 * osg::GeometryBase::getMFIndexMapping ( void   )  [inline]

Definition at line 206 of file OSGGeometryBase.inl.

References _mfIndexMapping.

Referenced by osg::Geometry::clone(), and osg::Geometry::merge().

00207 {
00208     return &_mfIndexMapping;
00209 }

SFBool * osg::GeometryBase::getSFDlistCache ( void   )  [inline]

Definition at line 213 of file OSGGeometryBase.inl.

References _sfDlistCache.

00214 {
00215     return &_sfDlistCache;
00216 }

SFInt32 * osg::GeometryBase::getSFIgnoreGLForAspect ( void   )  [inline]

Definition at line 227 of file OSGGeometryBase.inl.

References _sfIgnoreGLForAspect.

00228 {
00229     return &_sfIgnoreGLForAspect;
00230 }

SFUInt32 * osg::GeometryBase::getSFMinindex ( void   )  [inline]

Definition at line 234 of file OSGGeometryBase.inl.

References _sfMinindex.

00235 {
00236     return &_sfMinindex;
00237 }

SFUInt32 * osg::GeometryBase::getSFMaxindex ( void   )  [inline]

Definition at line 241 of file OSGGeometryBase.inl.

References _sfMaxindex.

00242 {
00243     return &_sfMaxindex;
00244 }

MFUInt32 * osg::GeometryBase::getMFLowindices ( void   )  [inline]

Definition at line 248 of file OSGGeometryBase.inl.

References _mfLowindices.

00249 {
00250     return &_mfLowindices;
00251 }

MFUInt32 * osg::GeometryBase::getMFHighindices ( void   )  [inline]

Definition at line 255 of file OSGGeometryBase.inl.

References _mfHighindices.

00256 {
00257     return &_mfHighindices;
00258 }

SFBool * osg::GeometryBase::getSFVbo ( void   )  [inline]

Definition at line 262 of file OSGGeometryBase.inl.

References _sfVbo.

00263 {
00264     return &_sfVbo;
00265 }

GeoPTypesPtr & osg::GeometryBase::getTypes ( void   )  [inline]

const GeoPTypesPtr & osg::GeometryBase::getTypes ( void   )  const [inline]

Definition at line 277 of file OSGGeometryBase.inl.

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

00278 {
00279     return _sfTypes.getValue();
00280 }

GeoPLengthsPtr & osg::GeometryBase::getLengths ( void   )  [inline]

const GeoPLengthsPtr & osg::GeometryBase::getLengths ( void   )  const [inline]

Definition at line 298 of file OSGGeometryBase.inl.

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

00299 {
00300     return _sfLengths.getValue();
00301 }

GeoPositionsPtr & osg::GeometryBase::getPositions ( void   )  [inline]

const GeoPositionsPtr & osg::GeometryBase::getPositions ( void   )  const [inline]

Definition at line 319 of file OSGGeometryBase.inl.

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

00320 {
00321     return _sfPositions.getValue();
00322 }

GeoNormalsPtr & osg::GeometryBase::getNormals ( void   )  [inline]

const GeoNormalsPtr & osg::GeometryBase::getNormals ( void   )  const [inline]

Definition at line 340 of file OSGGeometryBase.inl.

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

00341 {
00342     return _sfNormals.getValue();
00343 }

GeoColorsPtr & osg::GeometryBase::getColors ( void   )  [inline]

const GeoColorsPtr & osg::GeometryBase::getColors ( void   )  const [inline]

Definition at line 361 of file OSGGeometryBase.inl.

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

00362 {
00363     return _sfColors.getValue();
00364 }

GeoColorsPtr & osg::GeometryBase::getSecondaryColors ( void   )  [inline]

const GeoColorsPtr & osg::GeometryBase::getSecondaryColors ( void   )  const [inline]

Definition at line 382 of file OSGGeometryBase.inl.

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

00383 {
00384     return _sfSecondaryColors.getValue();
00385 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords ( void   )  const [inline]

Definition at line 403 of file OSGGeometryBase.inl.

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

00404 {
00405     return _sfTexCoords.getValue();
00406 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords1 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords1 ( void   )  const [inline]

Definition at line 424 of file OSGGeometryBase.inl.

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

00425 {
00426     return _sfTexCoords1.getValue();
00427 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords2 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords2 ( void   )  const [inline]

Definition at line 445 of file OSGGeometryBase.inl.

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

00446 {
00447     return _sfTexCoords2.getValue();
00448 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords3 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords3 ( void   )  const [inline]

Definition at line 466 of file OSGGeometryBase.inl.

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

00467 {
00468     return _sfTexCoords3.getValue();
00469 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords4 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords4 ( void   )  const [inline]

Definition at line 487 of file OSGGeometryBase.inl.

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

00488 {
00489     return _sfTexCoords4.getValue();
00490 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords5 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords5 ( void   )  const [inline]

Definition at line 508 of file OSGGeometryBase.inl.

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

00509 {
00510     return _sfTexCoords5.getValue();
00511 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords6 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords6 ( void   )  const [inline]

Definition at line 529 of file OSGGeometryBase.inl.

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

00530 {
00531     return _sfTexCoords6.getValue();
00532 }

GeoTexCoordsPtr & osg::GeometryBase::getTexCoords7 ( void   )  [inline]

const GeoTexCoordsPtr & osg::GeometryBase::getTexCoords7 ( void   )  const [inline]

Definition at line 550 of file OSGGeometryBase.inl.

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

00551 {
00552     return _sfTexCoords7.getValue();
00553 }

GeoIndicesPtr & osg::GeometryBase::getIndices ( void   )  [inline]

const GeoIndicesPtr & osg::GeometryBase::getIndices ( void   )  const [inline]

Definition at line 571 of file OSGGeometryBase.inl.

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

00572 {
00573     return _sfIndices.getValue();
00574 }

bool & osg::GeometryBase::getDlistCache ( void   )  [inline]

const bool & osg::GeometryBase::getDlistCache ( void   )  const [inline]

Definition at line 592 of file OSGGeometryBase.inl.

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

00593 {
00594     return _sfDlistCache.getValue();
00595 }

Int32 & osg::GeometryBase::getIgnoreGLForAspect ( void   )  [inline]

Definition at line 627 of file OSGGeometryBase.inl.

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

00628 {
00629     return _sfIgnoreGLForAspect.getValue();
00630 }

const Int32 & osg::GeometryBase::getIgnoreGLForAspect ( void   )  const [inline]

Definition at line 634 of file OSGGeometryBase.inl.

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

00635 {
00636     return _sfIgnoreGLForAspect.getValue();
00637 }

UInt32 & osg::GeometryBase::getMinindex ( void   )  [inline]

Definition at line 648 of file OSGGeometryBase.inl.

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

Referenced by GeoPump129().

00649 {
00650     return _sfMinindex.getValue();
00651 }

const UInt32 & osg::GeometryBase::getMinindex ( void   )  const [inline]

Definition at line 655 of file OSGGeometryBase.inl.

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

00656 {
00657     return _sfMinindex.getValue();
00658 }

UInt32 & osg::GeometryBase::getMaxindex ( void   )  [inline]

Definition at line 669 of file OSGGeometryBase.inl.

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

Referenced by GeoPump129().

00670 {
00671     return _sfMaxindex.getValue();
00672 }

const UInt32 & osg::GeometryBase::getMaxindex ( void   )  const [inline]

Definition at line 676 of file OSGGeometryBase.inl.

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

00677 {
00678     return _sfMaxindex.getValue();
00679 }

bool & osg::GeometryBase::getVbo ( void   )  [inline]

Definition at line 690 of file OSGGeometryBase.inl.

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

Referenced by osg::Geometry::changed(), osg::Geometry::drawPrimitives(), and osg::Geometry::handleGL().

00691 {
00692     return _sfVbo.getValue();
00693 }

const bool & osg::GeometryBase::getVbo ( void   )  const [inline]

Definition at line 697 of file OSGGeometryBase.inl.

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

00698 {
00699     return _sfVbo.getValue();
00700 }

UInt16 & osg::GeometryBase::getIndexMapping ( const UInt32  index  )  [inline]

Definition at line 712 of file OSGGeometryBase.inl.

References _mfIndexMapping.

Referenced by osg::GeoPumpFactory::getIndex(), and osg::GeoPumpFactory::masterGeoPump().

00713 {
00714     return _mfIndexMapping[index];
00715 }

MFUInt16 & osg::GeometryBase::getIndexMapping ( void   )  [inline]

const MFUInt16 & osg::GeometryBase::getIndexMapping ( void   )  const [inline]

Definition at line 726 of file OSGGeometryBase.inl.

References _mfIndexMapping.

00727 {
00728     return _mfIndexMapping;
00729 }

UInt32 & osg::GeometryBase::getLowindices ( const UInt32  index  )  [inline]

Definition at line 733 of file OSGGeometryBase.inl.

References _mfLowindices.

Referenced by osg::GeoVBO::draw(), and GeoPump129().

00734 {
00735     return _mfLowindices[index];
00736 }

MFUInt32 & osg::GeometryBase::getLowindices ( void   )  [inline]

Definition at line 740 of file OSGGeometryBase.inl.

References _mfLowindices.

Referenced by osg::Geometry::updateLowHighIndices().

00741 {
00742     return _mfLowindices;
00743 }

const MFUInt32 & osg::GeometryBase::getLowindices ( void   )  const [inline]

Definition at line 747 of file OSGGeometryBase.inl.

References _mfLowindices.

00748 {
00749     return _mfLowindices;
00750 }

UInt32 & osg::GeometryBase::getHighindices ( const UInt32  index  )  [inline]

Definition at line 754 of file OSGGeometryBase.inl.

References _mfHighindices.

Referenced by osg::GeoVBO::draw(), and GeoPump129().

00755 {
00756     return _mfHighindices[index];
00757 }

MFUInt32 & osg::GeometryBase::getHighindices ( void   )  [inline]

Definition at line 761 of file OSGGeometryBase.inl.

References _mfHighindices.

Referenced by osg::Geometry::updateLowHighIndices().

00762 {
00763     return _mfHighindices;
00764 }

const MFUInt32 & osg::GeometryBase::getHighindices ( void   )  const [inline]

Definition at line 768 of file OSGGeometryBase.inl.

References _mfHighindices.

00769 {
00770     return _mfHighindices;
00771 }

void osg::GeometryBase::setTypes ( const GeoPTypesPtr value  )  [inline]

Definition at line 284 of file OSGGeometryBase.inl.

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

00285 {
00286     _sfTypes.setValue(value);
00287 }

void osg::GeometryBase::setLengths ( const GeoPLengthsPtr value  )  [inline]

Definition at line 305 of file OSGGeometryBase.inl.

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

00306 {
00307     _sfLengths.setValue(value);
00308 }

void osg::GeometryBase::setPositions ( const GeoPositionsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 326 of file OSGGeometryBase.inl.

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

00327 {
00328     _sfPositions.setValue(value);
00329 }

void osg::GeometryBase::setNormals ( const GeoNormalsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 347 of file OSGGeometryBase.inl.

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

00348 {
00349     _sfNormals.setValue(value);
00350 }

void osg::GeometryBase::setColors ( const GeoColorsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 368 of file OSGGeometryBase.inl.

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

00369 {
00370     _sfColors.setValue(value);
00371 }

void osg::GeometryBase::setSecondaryColors ( const GeoColorsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 389 of file OSGGeometryBase.inl.

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

00390 {
00391     _sfSecondaryColors.setValue(value);
00392 }

void osg::GeometryBase::setTexCoords ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 410 of file OSGGeometryBase.inl.

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

00411 {
00412     _sfTexCoords.setValue(value);
00413 }

void osg::GeometryBase::setTexCoords1 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 431 of file OSGGeometryBase.inl.

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

00432 {
00433     _sfTexCoords1.setValue(value);
00434 }

void osg::GeometryBase::setTexCoords2 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 452 of file OSGGeometryBase.inl.

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

00453 {
00454     _sfTexCoords2.setValue(value);
00455 }

void osg::GeometryBase::setTexCoords3 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 473 of file OSGGeometryBase.inl.

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

00474 {
00475     _sfTexCoords3.setValue(value);
00476 }

void osg::GeometryBase::setTexCoords4 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 494 of file OSGGeometryBase.inl.

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

00495 {
00496     _sfTexCoords4.setValue(value);
00497 }

void osg::GeometryBase::setTexCoords5 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 515 of file OSGGeometryBase.inl.

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

00516 {
00517     _sfTexCoords5.setValue(value);
00518 }

void osg::GeometryBase::setTexCoords6 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 536 of file OSGGeometryBase.inl.

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

00537 {
00538     _sfTexCoords6.setValue(value);
00539 }

void osg::GeometryBase::setTexCoords7 ( const GeoTexCoordsPtr value  )  [inline]

Reimplemented in osg::Geometry.

Definition at line 557 of file OSGGeometryBase.inl.

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

00558 {
00559     _sfTexCoords7.setValue(value);
00560 }

void osg::GeometryBase::setIndices ( const GeoIndicesPtr value  )  [inline]

Definition at line 578 of file OSGGeometryBase.inl.

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

00579 {
00580     _sfIndices.setValue(value);
00581 }

void osg::GeometryBase::setDlistCache ( const bool &  value  )  [inline]

Definition at line 599 of file OSGGeometryBase.inl.

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

Referenced by osg::Geometry::merge().

00600 {
00601     _sfDlistCache.setValue(value);
00602 }

void osg::GeometryBase::setIgnoreGLForAspect ( const Int32 value  )  [inline]

Definition at line 641 of file OSGGeometryBase.inl.

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

00642 {
00643     _sfIgnoreGLForAspect.setValue(value);
00644 }

void osg::GeometryBase::setMinindex ( const UInt32 value  )  [inline]

Definition at line 662 of file OSGGeometryBase.inl.

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

Referenced by osg::Geometry::updateLowHighIndices().

00663 {
00664     _sfMinindex.setValue(value);
00665 }

void osg::GeometryBase::setMaxindex ( const UInt32 value  )  [inline]

Definition at line 683 of file OSGGeometryBase.inl.

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

Referenced by osg::Geometry::updateLowHighIndices().

00684 {
00685     _sfMaxindex.setValue(value);
00686 }

void osg::GeometryBase::setVbo ( const bool &  value  )  [inline]

Definition at line 704 of file OSGGeometryBase.inl.

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

00705 {
00706     _sfVbo.setValue(value);
00707 }

UInt32 osg::GeometryBase::getBinSize ( const BitVector whichField  )  [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 490 of file OSGGeometryBase.cpp.

References _mfHighindices, _mfIndexMapping, _mfLowindices, _sfColors, _sfDlistCache, _sfGLId, _sfIgnoreGLForAspect, _sfIndices, _sfLengths, _sfMaxindex, _sfMinindex, _sfNormals, _sfPositions, _sfSecondaryColors, _sfTexCoords, _sfTexCoords1, _sfTexCoords2, _sfTexCoords3, _sfTexCoords4, _sfTexCoords5, _sfTexCoords6, _sfTexCoords7, _sfTypes, _sfVbo, ColorsFieldMask, DlistCacheFieldMask, osg::MField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::MaterialDrawableBase::getBinSize(), GLIdFieldMask, HighindicesFieldMask, IgnoreGLForAspectFieldMask, IndexMappingFieldMask, IndicesFieldMask, LengthsFieldMask, LowindicesFieldMask, MaxindexFieldMask, MinindexFieldMask, osg::FieldBits::NoField, NormalsFieldMask, PositionsFieldMask, SecondaryColorsFieldMask, TexCoords1FieldMask, TexCoords2FieldMask, TexCoords3FieldMask, TexCoords4FieldMask, TexCoords5FieldMask, TexCoords6FieldMask, TexCoords7FieldMask, TexCoordsFieldMask, TypesFieldMask, and VboFieldMask.

Referenced by osg::SurfaceBase::getBinSize(), and osg::DVRGeometryBase::getBinSize().

00491 {
00492     UInt32 returnValue = Inherited::getBinSize(whichField);
00493 
00494     if(FieldBits::NoField != (TypesFieldMask & whichField))
00495     {
00496         returnValue += _sfTypes.getBinSize();
00497     }
00498 
00499     if(FieldBits::NoField != (LengthsFieldMask & whichField))
00500     {
00501         returnValue += _sfLengths.getBinSize();
00502     }
00503 
00504     if(FieldBits::NoField != (PositionsFieldMask & whichField))
00505     {
00506         returnValue += _sfPositions.getBinSize();
00507     }
00508 
00509     if(FieldBits::NoField != (NormalsFieldMask & whichField))
00510     {
00511         returnValue += _sfNormals.getBinSize();
00512     }
00513 
00514     if(FieldBits::NoField != (ColorsFieldMask & whichField))
00515     {
00516         returnValue += _sfColors.getBinSize();
00517     }
00518 
00519     if(FieldBits::NoField != (SecondaryColorsFieldMask & whichField))
00520     {
00521         returnValue += _sfSecondaryColors.getBinSize();
00522     }
00523 
00524     if(FieldBits::NoField != (TexCoordsFieldMask & whichField))
00525     {
00526         returnValue += _sfTexCoords.getBinSize();
00527     }
00528 
00529     if(FieldBits::NoField != (TexCoords1FieldMask & whichField))
00530     {
00531         returnValue += _sfTexCoords1.getBinSize();
00532     }
00533 
00534     if(FieldBits::NoField != (TexCoords2FieldMask & whichField))
00535     {
00536         returnValue += _sfTexCoords2.getBinSize();
00537     }
00538 
00539     if(FieldBits::NoField != (TexCoords3FieldMask & whichField))
00540     {
00541         returnValue += _sfTexCoords3.getBinSize();
00542     }
00543 
00544     if(FieldBits::NoField != (TexCoords4FieldMask & whichField))
00545     {
00546         returnValue += _sfTexCoords4.getBinSize();
00547     }
00548 
00549     if(FieldBits::NoField != (TexCoords5FieldMask & whichField))
00550     {
00551         returnValue += _sfTexCoords5.getBinSize();
00552     }
00553 
00554     if(FieldBits::NoField != (TexCoords6FieldMask & whichField))
00555     {
00556         returnValue += _sfTexCoords6.getBinSize();
00557     }
00558 
00559     if(FieldBits::NoField != (TexCoords7FieldMask & whichField))
00560     {
00561         returnValue += _sfTexCoords7.getBinSize();
00562     }
00563 
00564     if(FieldBits::NoField != (IndicesFieldMask & whichField))
00565     {
00566         returnValue += _sfIndices.getBinSize();
00567     }
00568 
00569     if(FieldBits::NoField != (IndexMappingFieldMask & whichField))
00570     {
00571         returnValue += _mfIndexMapping.getBinSize();
00572     }
00573 
00574     if(FieldBits::NoField != (DlistCacheFieldMask & whichField))
00575     {
00576         returnValue += _sfDlistCache.getBinSize();
00577     }
00578 
00579     if(FieldBits::NoField != (GLIdFieldMask & whichField))
00580     {
00581         returnValue += _sfGLId.getBinSize();
00582     }
00583 
00584     if(FieldBits::NoField != (IgnoreGLForAspectFieldMask & whichField))
00585     {
00586         returnValue += _sfIgnoreGLForAspect.getBinSize();
00587     }
00588 
00589     if(FieldBits::NoField != (MinindexFieldMask & whichField))
00590     {
00591         returnValue += _sfMinindex.getBinSize();
00592     }
00593 
00594     if(FieldBits::NoField != (MaxindexFieldMask & whichField))
00595     {
00596         returnValue += _sfMaxindex.getBinSize();
00597     }
00598 
00599     if(FieldBits::NoField != (LowindicesFieldMask & whichField))
00600     {
00601         returnValue += _mfLowindices.getBinSize();
00602     }
00603 
00604     if(FieldBits::NoField != (HighindicesFieldMask & whichField))
00605     {
00606         returnValue += _mfHighindices.getBinSize();
00607     }
00608 
00609     if(FieldBits::NoField != (VboFieldMask & whichField))
00610     {
00611         returnValue += _sfVbo.getBinSize();
00612     }
00613 
00614 
00615     return returnValue;
00616 }

void osg::GeometryBase::copyToBin ( BinaryDataHandler pMem,
const BitVector whichField 
) [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 618 of file OSGGeometryBase.cpp.

References _mfHighindices, _mfIndexMapping, _mfLowindices, _sfColors, _sfDlistCache, _sfGLId, _sfIgnoreGLForAspect, _sfIndices, _sfLengths, _sfMaxindex, _sfMinindex, _sfNormals, _sfPositions, _sfSecondaryColors, _sfTexCoords, _sfTexCoords1, _sfTexCoords2, _sfTexCoords3, _sfTexCoords4, _sfTexCoords5, _sfTexCoords6, _sfTexCoords7, _sfTypes, _sfVbo, ColorsFieldMask, osg::MField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::MaterialDrawableBase::copyToBin(), DlistCacheFieldMask, GLIdFieldMask, HighindicesFieldMask, IgnoreGLForAspectFieldMask, IndexMappingFieldMask, IndicesFieldMask, LengthsFieldMask, LowindicesFieldMask, MaxindexFieldMask, MinindexFieldMask, osg::FieldBits::NoField, NormalsFieldMask, PositionsFieldMask, SecondaryColorsFieldMask, TexCoords1FieldMask, TexCoords2FieldMask, TexCoords3FieldMask, TexCoords4FieldMask, TexCoords5FieldMask, TexCoords6FieldMask, TexCoords7FieldMask, TexCoordsFieldMask, TypesFieldMask, and VboFieldMask.

Referenced by osg::SurfaceBase::copyToBin(), and osg::DVRGeometryBase::copyToBin().

00620 {
00621     Inherited::copyToBin(pMem, whichField);
00622 
00623     if(FieldBits::NoField != (TypesFieldMask & whichField))
00624     {
00625         _sfTypes.copyToBin(pMem);
00626     }
00627 
00628     if(FieldBits::NoField != (LengthsFieldMask & whichField))
00629     {
00630         _sfLengths.copyToBin(pMem);
00631     }
00632 
00633     if(FieldBits::NoField != (PositionsFieldMask & whichField))
00634     {
00635         _sfPositions.copyToBin(pMem);
00636     }
00637 
00638     if(FieldBits::NoField != (NormalsFieldMask & whichField))
00639     {
00640         _sfNormals.copyToBin(pMem);
00641     }
00642 
00643     if(FieldBits::NoField != (ColorsFieldMask & whichField))
00644     {
00645         _sfColors.copyToBin(pMem);
00646     }
00647 
00648     if(FieldBits::NoField != (SecondaryColorsFieldMask & whichField))
00649     {
00650         _sfSecondaryColors.copyToBin(pMem);
00651     }
00652 
00653     if(FieldBits::NoField != (TexCoordsFieldMask & whichField))
00654     {
00655         _sfTexCoords.copyToBin(pMem);
00656     }
00657 
00658     if(FieldBits::NoField != (TexCoords1FieldMask & whichField))
00659     {
00660         _sfTexCoords1.copyToBin(pMem);
00661     }
00662 
00663     if(FieldBits::NoField != (TexCoords2FieldMask & whichField))
00664     {
00665         _sfTexCoords2.copyToBin(pMem);
00666     }
00667 
00668     if(FieldBits::NoField != (TexCoords3FieldMask & whichField))
00669     {
00670         _sfTexCoords3.copyToBin(pMem);
00671     }
00672 
00673     if(FieldBits::NoField != (TexCoords4FieldMask & whichField))
00674     {
00675         _sfTexCoords4.copyToBin(pMem);
00676     }
00677 
00678     if(FieldBits::NoField != (TexCoords5FieldMask & whichField))
00679     {
00680         _sfTexCoords5.copyToBin(pMem);
00681     }
00682 
00683     if(FieldBits::NoField != (TexCoords6FieldMask & whichField))
00684     {
00685         _sfTexCoords6.copyToBin(pMem);
00686     }
00687 
00688     if(FieldBits::NoField != (TexCoords7FieldMask & whichField))
00689     {
00690         _sfTexCoords7.copyToBin(pMem);
00691     }
00692 
00693     if(FieldBits::NoField != (IndicesFieldMask & whichField))
00694     {
00695         _sfIndices.copyToBin(pMem);
00696     }
00697 
00698     if(FieldBits::NoField != (IndexMappingFieldMask & whichField))
00699     {
00700         _mfIndexMapping.copyToBin(pMem);
00701     }
00702 
00703     if(FieldBits::NoField != (DlistCacheFieldMask & whichField))
00704     {
00705         _sfDlistCache.copyToBin(pMem);
00706     }
00707 
00708     if(FieldBits::NoField != (GLIdFieldMask & whichField))
00709     {
00710         _sfGLId.copyToBin(pMem);
00711     }
00712 
00713     if(FieldBits::NoField != (IgnoreGLForAspectFieldMask & whichField))
00714     {
00715         _sfIgnoreGLForAspect.copyToBin(pMem);
00716     }
00717 
00718     if(FieldBits::NoField != (MinindexFieldMask & whichField))
00719     {
00720         _sfMinindex.copyToBin(pMem);
00721     }
00722 
00723     if(FieldBits::NoField != (MaxindexFieldMask & whichField))
00724     {
00725         _sfMaxindex.copyToBin(pMem);
00726     }
00727 
00728     if(FieldBits::NoField != (LowindicesFieldMask & whichField))
00729     {
00730         _mfLowindices.copyToBin(pMem);
00731     }
00732 
00733     if(FieldBits::NoField != (HighindicesFieldMask & whichField))
00734     {
00735         _mfHighindices.copyToBin(pMem);
00736     }
00737 
00738     if(FieldBits::NoField != (VboFieldMask & whichField))
00739     {
00740         _sfVbo.copyToBin(pMem);
00741     }
00742 
00743 
00744 }

void osg::GeometryBase::copyFromBin ( BinaryDataHandler pMem,
const BitVector whichField 
) [virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 746 of file OSGGeometryBase.cpp.

References _mfHighindices, _mfIndexMapping, _mfLowindices, _sfColors, _sfDlistCache, _sfGLId, _sfIgnoreGLForAspect, _sfIndices, _sfLengths, _sfMaxindex, _sfMinindex, _sfNormals, _sfPositions, _sfSecondaryColors, _sfTexCoords, _sfTexCoords1, _sfTexCoords2, _sfTexCoords3, _sfTexCoords4, _sfTexCoords5, _sfTexCoords6, _sfTexCoords7, _sfTypes, _sfVbo, ColorsFieldMask, osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::MaterialDrawableBase::copyFromBin(), DlistCacheFieldMask, GLIdFieldMask, HighindicesFieldMask, IgnoreGLForAspectFieldMask, IndexMappingFieldMask, IndicesFieldMask, LengthsFieldMask, LowindicesFieldMask, MaxindexFieldMask, MinindexFieldMask, osg::FieldBits::NoField, NormalsFieldMask, PositionsFieldMask, SecondaryColorsFieldMask, TexCoords1FieldMask, TexCoords2FieldMask, TexCoords3FieldMask, TexCoords4FieldMask, TexCoords5FieldMask, TexCoords6FieldMask, TexCoords7FieldMask, TexCoordsFieldMask, TypesFieldMask, and VboFieldMask.

Referenced by osg::SurfaceBase::copyFromBin(), and osg::DVRGeometryBase::copyFromBin().

00748 {
00749     Inherited::copyFromBin(pMem, whichField);
00750 
00751     if(FieldBits::NoField != (TypesFieldMask & whichField))
00752     {
00753         _sfTypes.copyFromBin(pMem);
00754     }
00755 
00756     if(FieldBits::NoField != (LengthsFieldMask & whichField))
00757     {
00758         _sfLengths.copyFromBin(pMem);
00759     }
00760 
00761     if(FieldBits::NoField != (PositionsFieldMask & whichField))
00762     {
00763         _sfPositions.copyFromBin(pMem);
00764     }
00765 
00766     if(FieldBits::NoField != (NormalsFieldMask & whichField))
00767     {
00768         _sfNormals.copyFromBin(pMem);
00769     }
00770 
00771     if(FieldBits::NoField != (ColorsFieldMask & whichField))
00772     {
00773         _sfColors.copyFromBin(pMem);
00774     }
00775 
00776     if(FieldBits::NoField != (SecondaryColorsFieldMask & whichField))
00777     {
00778         _sfSecondaryColors.copyFromBin(pMem);
00779     }
00780 
00781     if(FieldBits::NoField != (TexCoordsFieldMask & whichField))
00782     {
00783         _sfTexCoords.copyFromBin(pMem);
00784     }
00785 
00786     if(FieldBits::NoField != (TexCoords1FieldMask & whichField))
00787     {
00788         _sfTexCoords1.copyFromBin(pMem);
00789     }
00790 
00791     if(FieldBits::NoField != (TexCoords2FieldMask & whichField))
00792     {
00793         _sfTexCoords2.copyFromBin(pMem);
00794     }
00795 
00796     if(FieldBits::NoField != (TexCoords3FieldMask & whichField))
00797     {
00798         _sfTexCoords3.copyFromBin(pMem);
00799     }
00800 
00801     if(FieldBits::NoField != (TexCoords4FieldMask & whichField))
00802     {
00803         _sfTexCoords4.copyFromBin(pMem);
00804     }
00805 
00806     if(FieldBits::NoField != (TexCoords5FieldMask & whichField))
00807     {
00808         _sfTexCoords5.copyFromBin(pMem);
00809     }
00810 
00811     if(FieldBits::NoField != (TexCoords6FieldMask & whichField))
00812     {
00813         _sfTexCoords6.copyFromBin(pMem);
00814     }
00815 
00816     if(FieldBits::NoField != (TexCoords7FieldMask & whichField))
00817     {
00818         _sfTexCoords7.copyFromBin(pMem);
00819     }
00820 
00821     if(FieldBits::NoField != (IndicesFieldMask & whichField))
00822     {
00823         _sfIndices.copyFromBin(pMem);
00824     }
00825 
00826     if(FieldBits::NoField != (IndexMappingFieldMask & whichField))
00827     {
00828         _mfIndexMapping.copyFromBin(pMem);
00829     }
00830 
00831     if(FieldBits::NoField != (DlistCacheFieldMask & whichField))
00832     {
00833         _sfDlistCache.copyFromBin(pMem);
00834     }
00835 
00836     if(FieldBits::NoField != (GLIdFieldMask & whichField))
00837     {
00838         _sfGLId.copyFromBin(pMem);
00839     }
00840 
00841     if(FieldBits::NoField != (IgnoreGLForAspectFieldMask & whichField))
00842     {
00843         _sfIgnoreGLForAspect.copyFromBin(pMem);
00844     }
00845 
00846     if(FieldBits::NoField != (MinindexFieldMask & whichField))
00847     {
00848         _sfMinindex.copyFromBin(pMem);
00849     }
00850 
00851     if(FieldBits::NoField != (MaxindexFieldMask & whichField))
00852     {
00853         _sfMaxindex.copyFromBin(pMem);
00854     }
00855 
00856     if(FieldBits::NoField != (LowindicesFieldMask & whichField))
00857     {
00858         _mfLowindices.copyFromBin(pMem);
00859     }
00860 
00861     if(FieldBits::NoField != (HighindicesFieldMask & whichField))
00862     {
00863         _mfHighindices.copyFromBin(pMem);
00864     }
00865 
00866     if(FieldBits::NoField != (VboFieldMask & whichField))
00867     {
00868         _sfVbo.copyFromBin(pMem);
00869     }
00870 
00871 
00872 }

GeometryPtr osg::GeometryBase::create ( void   )  [inline, static]

GeometryPtr osg::GeometryBase::createEmpty ( void   )  [inline, static]

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 87 of file OSGGeometryBase.inl.

References osg::FieldContainer::newPtr().

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

FieldContainerPtr osg::GeometryBase::shallowCopy ( void   )  const [virtual]

Implements osg::FieldContainer.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 370 of file OSGGeometryBase.cpp.

References osg::FieldContainer::newPtr().

Referenced by create().

00371 { 
00372     GeometryPtr returnValue; 
00373 
00374     newPtr(returnValue, dynamic_cast<const Geometry *>(this)); 
00375 
00376     return returnValue; 
00377 }

SFInt32 * osg::GeometryBase::getSFGLId ( void   )  [inline, protected]

Definition at line 220 of file OSGGeometryBase.inl.

References _sfGLId.

00221 {
00222     return &_sfGLId;
00223 }

Int32 & osg::GeometryBase::getGLId ( void   )  [inline, protected]

const Int32 & osg::GeometryBase::getGLId ( void   )  const [inline, protected]

Definition at line 613 of file OSGGeometryBase.inl.

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

00614 {
00615     return _sfGLId.getValue();
00616 }

void osg::GeometryBase::setGLId ( const Int32 value  )  [inline, protected]

Definition at line 620 of file OSGGeometryBase.inl.

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

Referenced by osg::Geometry::changed(), and osg::Geometry::onCreate().

00621 {
00622     _sfGLId.setValue(value);
00623 }

void osg::GeometryBase::executeSyncImpl ( GeometryBase pOther,
const BitVector whichField 
) [protected]

Definition at line 875 of file OSGGeometryBase.cpp.

References _mfHighindices, _mfIndexMapping, _mfLowindices, _sfColors, _sfDlistCache, _sfGLId, _sfIgnoreGLForAspect, _sfIndices, _sfLengths, _sfMaxindex, _sfMinindex, _sfNormals, _sfPositions, _sfSecondaryColors, _sfTexCoords, _sfTexCoords1, _sfTexCoords2, _sfTexCoords3, _sfTexCoords4, _sfTexCoords5, _sfTexCoords6, _sfTexCoords7, _sfTypes, _sfVbo, ColorsFieldMask, DlistCacheFieldMask, osg::MaterialDrawableBase::executeSyncImpl(), GLIdFieldMask, HighindicesFieldMask, IgnoreGLForAspectFieldMask, IndexMappingFieldMask, IndicesFieldMask, LengthsFieldMask, LowindicesFieldMask, MaxindexFieldMask, MinindexFieldMask, osg::FieldBits::NoField, NormalsFieldMask, PositionsFieldMask, SecondaryColorsFieldMask, osg::MField< FieldTypeT, fieldNameSpace >::syncWith(), osg::SField< FieldTypeT, fieldNameSpace >::syncWith(), TexCoords1FieldMask, TexCoords2FieldMask, TexCoords3FieldMask, TexCoords4FieldMask, TexCoords5FieldMask, TexCoords6FieldMask, TexCoords7FieldMask, TexCoordsFieldMask, TypesFieldMask, and VboFieldMask.

Referenced by executeSync(), osg::SurfaceBase::executeSyncImpl(), and osg::DVRGeometryBase::executeSyncImpl().

00877 {
00878 
00879     Inherited::executeSyncImpl(pOther, whichField);
00880 
00881     if(FieldBits::NoField != (TypesFieldMask & whichField))
00882         _sfTypes.syncWith(pOther->_sfTypes);
00883 
00884     if(FieldBits::NoField != (LengthsFieldMask & whichField))
00885         _sfLengths.syncWith(pOther->_sfLengths);
00886 
00887     if(FieldBits::NoField != (PositionsFieldMask & whichField))
00888         _sfPositions.syncWith(pOther->_sfPositions);
00889 
00890     if(FieldBits::NoField != (NormalsFieldMask & whichField))
00891         _sfNormals.syncWith(pOther->_sfNormals);
00892 
00893     if(FieldBits::NoField != (ColorsFieldMask & whichField))
00894         _sfColors.syncWith(pOther->_sfColors);
00895 
00896     if(FieldBits::NoField != (SecondaryColorsFieldMask & whichField))
00897         _sfSecondaryColors.syncWith(pOther->_sfSecondaryColors);
00898 
00899     if(FieldBits::NoField != (TexCoordsFieldMask & whichField))
00900         _sfTexCoords.syncWith(pOther->_sfTexCoords);
00901 
00902     if(FieldBits::NoField != (TexCoords1FieldMask & whichField))
00903         _sfTexCoords1.syncWith(pOther->_sfTexCoords1);
00904 
00905     if(FieldBits::NoField != (TexCoords2FieldMask & whichField))
00906         _sfTexCoords2.syncWith(pOther->_sfTexCoords2);
00907 
00908     if(FieldBits::NoField != (TexCoords3FieldMask & whichField))
00909         _sfTexCoords3.syncWith(pOther->_sfTexCoords3);
00910 
00911     if(FieldBits::NoField != (TexCoords4FieldMask & whichField))
00912         _sfTexCoords4.syncWith(pOther->_sfTexCoords4);
00913 
00914     if(FieldBits::NoField != (TexCoords5FieldMask & whichField))
00915         _sfTexCoords5.syncWith(pOther->_sfTexCoords5);
00916 
00917     if(FieldBits::NoField != (TexCoords6FieldMask & whichField))
00918         _sfTexCoords6.syncWith(pOther->_sfTexCoords6);
00919 
00920     if(FieldBits::NoField != (TexCoords7FieldMask & whichField))
00921         _sfTexCoords7.syncWith(pOther->_sfTexCoords7);
00922 
00923     if(FieldBits::NoField != (IndicesFieldMask & whichField))
00924         _sfIndices.syncWith(pOther->_sfIndices);
00925 
00926     if(FieldBits::NoField != (IndexMappingFieldMask & whichField))
00927         _mfIndexMapping.syncWith(pOther->_mfIndexMapping);
00928 
00929     if(FieldBits::NoField != (DlistCacheFieldMask & whichField))
00930         _sfDlistCache.syncWith(pOther->_sfDlistCache);
00931 
00932     if(FieldBits::NoField != (GLIdFieldMask & whichField))
00933         _sfGLId.syncWith(pOther->_sfGLId);
00934 
00935     if(FieldBits::NoField != (IgnoreGLForAspectFieldMask & whichField))
00936         _sfIgnoreGLForAspect.syncWith(pOther->_sfIgnoreGLForAspect);
00937 
00938     if(FieldBits::NoField != (MinindexFieldMask & whichField))
00939         _sfMinindex.syncWith(pOther->_sfMinindex);
00940 
00941     if(FieldBits::NoField != (MaxindexFieldMask & whichField))
00942         _sfMaxindex.syncWith(pOther->_sfMaxindex);
00943 
00944     if(FieldBits::NoField != (LowindicesFieldMask & whichField))
00945         _mfLowindices.syncWith(pOther->_mfLowindices);
00946 
00947     if(FieldBits::NoField != (HighindicesFieldMask & whichField))
00948         _mfHighindices.syncWith(pOther->_mfHighindices);
00949 
00950     if(FieldBits::NoField != (VboFieldMask & whichField))
00951         _sfVbo.syncWith(pOther->_sfVbo);
00952 
00953 
00954 }

void osg::GeometryBase::executeSync ( FieldContainer other,
const BitVector whichField 
) [protected, virtual]

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 386 of file OSGGeometryBase.cpp.

References executeSyncImpl().

00388 {
00389     this->executeSyncImpl((GeometryBase *) &other, whichField);
00390 }

void osg::GeometryBase::operator= ( const GeometryBase source  )  [private]

Action::ResultE MaterialDrawable::drawPrimitives ( DrawActionBase action  )  [virtual, inherited]

Reimplemented in osg::Geometry, osg::Slices, osg::Particles, and osg::Surface.

Definition at line 87 of file OSGMaterialDrawable.cpp.

References osg::Action::Continue, and FWARNING.

Referenced by osg::MaterialDrawable::drawActionHandler(), and osg::MaterialDrawable::renderActionHandler().

00088 {
00089   FWARNING (("You should overload drawPrimitives in your code\n"));
00090 
00091   return Action::Continue;
00092 }

Action::ResultE MaterialDrawable::drawActionHandler ( Action action  )  [inherited]

Definition at line 122 of file OSGMaterialDrawable.cpp.

References osg::Action::Continue, osg::Material::draw(), osg::MaterialDrawable::drawPrimitives(), FWARNING, osg::getDefaultMaterial(), osg::MaterialDrawableBase::getMaterial(), osg::DrawActionBase::getMaterial(), osg::NullFC, and osg::osgTypedMethodFunctor1ObjPtr().

Referenced by osg::Surface::initMethod(), osg::Slices::initMethod(), osg::Particles::initMethod(), and osg::Geometry::initMethod().

00123 {
00124     DrawAction *a = dynamic_cast<DrawAction*>(action);
00125     Material::DrawFunctor func;
00126 
00127     func=osgTypedMethodFunctor1ObjPtr(&(*this), 
00128                                       &MaterialDrawable::drawPrimitives);
00129 
00130     if(a->getMaterial() != NULL)
00131     {
00132         a->getMaterial()->draw(func, a);
00133     }
00134     else if ( getMaterial() != NullFC )
00135     {
00136         getMaterial()->draw( func, a );
00137     }
00138     else
00139     {
00140         getDefaultMaterial()->draw( func, a );
00141         FWARNING(("MaterialDrawable::draw:: no material!\n"));;
00142     }
00143     return Action::Continue;
00144 }

Action::ResultE MaterialDrawable::renderActionHandler ( Action action  )  [inherited]

Definition at line 94 of file OSGMaterialDrawable.cpp.

References osg::Action::Continue, osg::MaterialDrawable::drawPrimitives(), osg::RenderAction::dropFunctor(), FNOTICE, osg::AttachmentContainerPtr::getCPtr(), osg::getDefaultMaterial(), osg::MaterialDrawableBase::getMaterial(), osg::DrawActionBase::getMaterial(), osg::NullFC, and osg::osgTypedMethodFunctor1ObjPtr().

Referenced by osg::Surface::initMethod(), osg::Slices::initMethod(), osg::Particles::initMethod(), and osg::Geometry::initMethod().

00095 {
00096     RenderAction *a = dynamic_cast<RenderAction *>(action);
00097 
00098     Material::DrawFunctor func;
00099     func = osgTypedMethodFunctor1ObjPtr(this, 
00100                                         &MaterialDrawable::drawPrimitives);
00101 
00102     Material* m = a->getMaterial();
00103 
00104     if(m == NULL)
00105     {
00106         if(getMaterial() != NullFC)
00107         {
00108             m = getMaterial().getCPtr();
00109         }
00110         else
00111         {
00112             m = getDefaultMaterial().getCPtr();
00113             FNOTICE(("MaterialDrawable::render: no Material!?!\n"));
00114         }
00115     }
00116 
00117     a->dropFunctor(func, m);
00118 
00119     return Action::Continue;
00120 }

void MaterialDrawable::changed ( BitVector  whichField,
UInt32  origin 
) [virtual, inherited]

Reimplemented from osg::Drawable.

Reimplemented in osg::Geometry, osg::Slices, osg::Particles, osg::DVRGeometry, and osg::Surface.

Definition at line 153 of file OSGMaterialDrawable.cpp.

References osg::Drawable::changed().

Referenced by osg::Particles::changed(), and osg::Geometry::changed().

00154 {
00155     Inherited::changed(whichField, origin);
00156 }

void MaterialDrawable::dump ( UInt32  uiIndent = 0,
const BitVector  bvFlags = 0 
) const [virtual, inherited]

Reimplemented from osg::Drawable.

Reimplemented in osg::Geometry, osg::Slices, osg::Particles, osg::DVRGeometry, and osg::Surface.

Definition at line 160 of file OSGMaterialDrawable.cpp.

References SLOG.

00162 {
00163     SLOG << "Dump MaterialDrawable NI" << std::endl;
00164 }

void osg::MaterialDrawable::setMaterial ( const MaterialPtr value  )  [inline, inherited]

SFMaterialPtr * osg::MaterialDrawableBase::getSFMaterial ( void   )  [inline, inherited]

Definition at line 75 of file OSGMaterialDrawableBase.inl.

References osg::MaterialDrawableBase::_sfMaterial.

00076 {
00077     return &_sfMaterial;
00078 }

MaterialPtr & osg::MaterialDrawableBase::getMaterial ( void   )  [inline, inherited]

const MaterialPtr & osg::MaterialDrawableBase::getMaterial ( void   )  const [inline, inherited]

Definition at line 90 of file OSGMaterialDrawableBase.inl.

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

00091 {
00092     return _sfMaterial.getValue();
00093 }

void MaterialDrawableBase::executeSyncImpl ( MaterialDrawableBase pOther,
const BitVector whichField 
) [protected, inherited]

void DrawableBase::executeSyncImpl ( DrawableBase pOther,
const BitVector whichField 
) [protected, inherited]

Definition at line 182 of file OSGDrawableBase.cpp.

References osg::NodeCore::executeSyncImpl().

Referenced by osg::DrawableBase::executeSync(), and osg::MaterialDrawableBase::executeSyncImpl().

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

void osg::NodeCore::executeSyncImpl ( NodeCore pOther,
const BitVector whichField 
) [inline, protected, inherited]

void AttachmentContainer::executeSyncImpl ( AttachmentContainer pOther,
const BitVector whichField 
) [protected, inherited]

void osg::FieldContainer::executeSyncImpl ( FieldContainer pOther,
const BitVector whichField 
) [inline, protected, inherited]

MFNodePtr & osg::NodeCore::getParents ( void   )  [inline, inherited]

Definition at line 56 of file OSGNodeCore.inl.

Referenced by osg::Surface::FindClosestPoint().

00057 {
00058     return _parents;
00059 }

const MFNodePtr & osg::NodeCore::getParents ( void   )  const [inline, inherited]

Definition at line 62 of file OSGNodeCore.inl.

References osg::NodeCore::_parents.

00063 {
00064     return _parents;
00065 }

MFNodePtr * osg::NodeCore::getMFParents ( void   )  [inline, inherited]

Definition at line 68 of file OSGNodeCore.inl.

References osg::NodeCore::_parents.

00069 {
00070     return &_parents;
00071 }

void osg::NodeCore::invalidateVolume ( void   )  [inline, virtual, inherited]

Definition at line 237 of file OSGNodeCore.inl.

References osg::NodeCore::_parents, and osg::MField< FieldTypeT, fieldNameSpace >::size().

Referenced by osg::Transform::changed(), and osg::Slices::changed().

00238 {
00239     for(UInt32 i = 0; i < _parents.size(); i++)
00240     {
00241         _parents[i]->invalidateVolume();
00242     }
00243 }

void osg::NodeCore::onDestroy ( void   )  [inline, protected, virtual, inherited]

Reimplemented from osg::FieldContainer.

Reimplemented in osg::Geometry, osg::Surface, and osg::MaterialPool.

Definition at line 142 of file OSGNodeCore.inl.

Referenced by osg::Geometry::onDestroy().

00143 {
00144 }

void osg::NodeCore::addParent ( const NodePtr parent  )  [inline, protected, inherited]

Definition at line 150 of file OSGNodeCore.inl.

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

00151 {
00152     _parents.push_back(parent);
00153 }

void osg::NodeCore::subParent ( const NodePtr parent  )  [inline, protected, inherited]

Definition at line 156 of file OSGNodeCore.inl.

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

00157 {
00158     MFNodePtr::iterator parentIt = _parents.find(parent);
00159 
00160     if(parentIt != _parents.end())
00161     {
00162         _parents.erase(parentIt);
00163     }
00164 }

NodeCorePtr osg::NodeCore::getPtr ( void   )  const [inline, protected, inherited]

Reimplemented in osg::Geometry.

Definition at line 170 of file OSGNodeCore.inl.

Referenced by osg::MaterialPool::add(), osg::NodeCore::dump(), and osg::MaterialPool::sub().

00171 {
00172     return NodeCorePtr(*this);
00173 }

AttachmentContainerPtr AttachmentContainer::getPtr ( void   )  [protected, inherited]

void osg::NodeCore::accumulateMatrix ( Matrix result  )  [inline, protected, virtual, inherited]

Reimplemented in osg::Billboard, osg::InverseTransform, osg::ScreenGroup, and osg::Transform.

Definition at line 224 of file OSGNodeCore.inl.

00225 {
00226 }

void osg::NodeCore::adjustVolume ( Volume volume  )  [inline, protected, virtual, inherited]

void AttachmentContainer::addAttachment ( const AttachmentPtr fieldContainerP,
UInt16  binding = 0 
) [inherited]

Definition at line 84 of file OSGAttachmentContainer.cpp.

References osg::addRefCP(), osg::beginEditCP(), osg::endEditCP(), osg::NullFC, and osg::subRefCP().

Referenced by osg::AttachmentContainer::AttachmentContainer(), osg::Node::onCreate(), and osg::Image::setAttachmentField().

00086 {
00087     UInt32 key;
00088 
00089     if(fieldContainerP == NullFC)
00090         return;
00091 
00092     key = (UInt32 (fieldContainerP->getGroupId()) << 16) | binding;
00093 
00094     addRefCP(fieldContainerP);
00095 
00096     beginEditCP(fieldContainerP, Attachment::ParentsFieldMask);
00097     {
00098         fieldContainerP->addParent(getPtr());
00099     }
00100     endEditCP  (fieldContainerP, Attachment::ParentsFieldMask);
00101 
00102     AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key);
00103 
00104     if(fcI != _attachmentMap.getValue().end())
00105     {
00106         beginEditCP((*fcI).second, Attachment::ParentsFieldMask);
00107         {
00108             (*fcI).second->subParent(getPtr());
00109         }
00110         endEditCP  ((*fcI).second, Attachment::ParentsFieldMask);
00111 
00112         subRefCP((*fcI).second);
00113 
00114         (*fcI).second = fieldContainerP;
00115     }
00116     else
00117     {
00118         _attachmentMap.getValue()[key] = fieldContainerP;
00119     }
00120 }

void AttachmentContainer::subAttachment ( const AttachmentPtr fieldContainerP,
UInt16  binding = 0 
) [inherited]

Definition at line 122 of file OSGAttachmentContainer.cpp.

References osg::AttachmentContainer::_attachmentMap, osg::beginEditCP(), osg::endEditCP(), osg::AttachmentContainer::getPtr(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::NullFC, osg::Attachment::ParentsFieldMask, and osg::subRefCP().

00124 {
00125     UInt32 key;
00126 
00127     AttachmentMap::iterator fcI;
00128 
00129     if(fieldContainerP == NullFC)
00130         return;
00131 
00132     key = (UInt32(fieldContainerP->getGroupId()) << 16) | binding;
00133 
00134     fcI = _attachmentMap.getValue().find(key);
00135 
00136     if(fcI != _attachmentMap.getValue().end())
00137     {
00138         beginEditCP(fieldContainerP, Attachment::ParentsFieldMask);
00139         {
00140             (*fcI).second->subParent(getPtr());
00141         }
00142         endEditCP  (fieldContainerP, Attachment::ParentsFieldMask);
00143 
00144         subRefCP((*fcI).second);
00145 
00146         _attachmentMap.getValue().erase(fcI);
00147     }
00148 }

AttachmentPtr AttachmentContainer::findAttachment ( UInt32  groupId,
UInt16  binding = 0 
) [inherited]

Definition at line 150 of file OSGAttachmentContainer.cpp.

References osg::AttachmentContainer::_attachmentMap, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), and osg::NullFC.

Referenced by osg::Image::findAttachmentField(), and osg::Image::setAttachmentField().

00152 {
00153     UInt32 key = (UInt32(groupId) << 16) | binding;
00154 
00155     AttachmentMap::iterator fcI = _attachmentMap.getValue().find(key);
00156 
00157     if(fcI == _attachmentMap.getValue().end())
00158     {
00159         return NullFC;
00160     }
00161     else
00162     {
00163         return (*fcI).second;
00164     }
00165 }

AttachmentPtr osg::AttachmentContainer::findAttachment ( const FieldContainerType type,
UInt16  binding = 0 
) [inline, inherited]

Definition at line 57 of file OSGAttachmentContainerImpl.inl.

00060 {
00061     return findAttachment(type.getGroupId(), binding);
00062 }

SFAttachmentMap * AttachmentContainer::getSFAttachments ( void   )  [inherited]

Field Access

Definition at line 170 of file OSGAttachmentContainer.cpp.

References osg::AttachmentContainer::_attachmentMap.

00171 {
00172     return &_attachmentMap;
00173 }

UInt16 osg::FieldContainer::getClassGroupId ( void   )  [inline, static, inherited]

Definition at line 71 of file OSGFieldContainerImpl.inl.

References osg::FieldContainer::_type, and osg::FieldContainerType::getGroupId().

00072 {
00073     return _type.getGroupId();
00074 }

UInt32 osg::FieldContainer::getTypeId ( void   )  const [inline, inherited]

Definition at line 77 of file OSGFieldContainerImpl.inl.

References osg::TypeBase::getId(), and osg::FieldContainer::getType().

Referenced by osg::TextureChunk::changeFrom(), and osg::CubeTextureChunk::changeFrom().

00078 {
00079     return getType().getId();
00080 }

UInt16 osg::FieldContainer::getGroupId ( void   )  const [inline, inherited]

const Char8 * osg::FieldContainer::getTypeName ( void   )  const [inline, inherited]

Definition at line 89 of file OSGFieldContainerImpl.inl.

References osg::TypeBase::getCName(), and osg::FieldContainer::getType().

00090 {
00091     return getType().getCName();
00092 }

Field * osg::FieldContainer::getField ( UInt32  fieldId  )  [inline, inherited]

Generic Field Access

Definition at line 95 of file OSGFieldContainerImpl.inl.

References osg::FieldDescription::getField(), osg::FieldContainerType::getFieldDescription(), and osg::FieldContainer::getType().

Referenced by osg::QFCItem::expand(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::QFieldViewBase::getFieldPtr(), osg::QFieldEditorBase::getFieldPtr(), osg::getParentsField(), and osg::QFCItem::setup().

00096 {
00097     const FieldDescription *desc = getType().getFieldDescription(fieldId);
00098 
00099     return desc ? desc->getField(*this) : NULL;
00100 }

Field * osg::FieldContainer::getField ( const Char8 fieldName  )  [inline, inherited]

Generic Field Access

Definition at line 103 of file OSGFieldContainerImpl.inl.

References osg::FieldContainerType::findFieldDescription(), osg::FieldDescription::getField(), and osg::FieldContainer::getType().

00104 {
00105     const FieldDescription *desc =getType().findFieldDescription(fieldName);
00106 
00107     return desc ? desc->getField(*this) : NULL;
00108 }

template<class ObjectPtrT>
void osg::FieldContainer::newPtr ( ObjectPtrT &  result,
const typename ObjectPtrT::StoredObjectType *  prototypeP 
) [inline, static, protected, inherited]

Definition at line 138 of file OSGFieldContainerImpl.inl.

References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().

Referenced by osg::XWindowBase::createEmpty(), osg::WIN32WindowBase::createEmpty(), osg::ViewportBase::createEmpty(), osg::VertexProgramChunkBase::createEmpty(), osg::TwoSidedLightingChunkBase::createEmpty(), osg::TransformChunkBase::createEmpty(), osg::TransformBase::createEmpty(), osg::TileCameraDecoratorBase::createEmpty(), osg::TextureTransformChunkBase::createEmpty(), osg::TextureGrabForegroundBase::createEmpty(), osg::TextureGrabBackgroundBase::createEmpty(), osg::TextureChunkBase::createEmpty(), osg::TextureBackgroundBase::createEmpty(), osg::TexGenChunkBase::createEmpty(), osg::SwitchMaterialBase::createEmpty(), osg::SwitchBase::createEmpty(), osg::SurfaceBase::createEmpty(), osg::StringAttributeMapBase::createEmpty(), osg::StereoBufferViewportBase::createEmpty(), osg::StencilChunkBase::createEmpty(), osg::StateSortingGroupBase::createEmpty(), osg::StateBase::createEmpty(), osg::SpotLightBase::createEmpty(), osg::SortFirstWindowBase::createEmpty(), osg::SolidBackgroundBase::createEmpty(), osg::SlicesBase::createEmpty(), osg::SkyBackgroundBase::createEmpty(), osg::SimpleTexturedMaterialBase::createEmpty(), osg::SimpleStatisticsForegroundBase::createEmpty(), osg::SimpleMaterialBase::createEmpty(), osg::SHLParameterChunkBase::createEmpty(), osg::SHLChunkBase::createEmpty(), osg::ShearedStereoCameraDecoratorBase::createEmpty(), osg::ShaderParameterVec4fBase::createEmpty(), osg::ShaderParameterVec3fBase::createEmpty(), osg::ShaderParameterVec2fBase::createEmpty(), osg::ShaderParameterStringBase::createEmpty(), osg::ShaderParameterRealBase::createEmpty(), osg::ShaderParameterMVec4fBase::createEmpty(), osg::ShaderParameterMVec3fBase::createEmpty(), osg::ShaderParameterMVec2fBase::createEmpty(), osg::ShaderParameterMRealBase::createEmpty(), osg::ShaderParameterMMatrixBase::createEmpty(), osg::ShaderParameterMIntBase::createEmpty(), osg::ShaderParameterMatrixBase::createEmpty(), osg::ShaderParameterIntBase::createEmpty(), osg::ShaderParameterBoolBase::createEmpty(), osg::ScreenGroupBase::createEmpty(), osg::SClipPlaneChunkBase::createEmpty(), osg::ResolutionDisplayFilterBase::createEmpty(), osg::RenderOptionsBase::createEmpty(), osg::RegisterCombinersChunkBase::createEmpty(), osg::QTWindowBase::createEmpty(), osg::ProxyGroupBase::createEmpty(), osg::ProjectionCameraDecoratorBase::createEmpty(), osg::PolygonForegroundBase::createEmpty(), osg::PolygonChunkBase::createEmpty(), osg::PolygonBackgroundBase::createEmpty(), osg::PointLightBase::createEmpty(), osg::PointChunkBase::createEmpty(), osg::PhongMaterialBase::createEmpty(), osg::PerspectiveCameraBase::createEmpty(), osg::PassiveWindowBase::createEmpty(), osg::PassiveViewportBase::createEmpty(), osg::PassiveBackgroundBase::createEmpty(), osg::ParticlesBase::createEmpty(), osg::OrthographicCameraBase::createEmpty(), osg::OffCenterPerspectiveCameraBase::createEmpty(), osg::MultiPassMaterialBase::createEmpty(), osg::MultiDisplayWindowBase::createEmpty(), osg::MatrixCameraDecoratorBase::createEmpty(), osg::MatrixCameraBase::createEmpty(), osg::MaterialPoolBase::createEmpty(), osg::MaterialGroupBase::createEmpty(), osg::MaterialChunkBase::createEmpty(), osg::LogicOpChunkBase::createEmpty(), osg::LineChunkBase::createEmpty(), osg::LightModelChunkBase::createEmpty(), osg::LightEnvBase::createEmpty(), osg::LightChunkBase::createEmpty(), osg::InverseTransformBase::createEmpty(), osg::InlineBase::createEmpty(), osg::ImageForegroundBase::createEmpty(), osg::ImageBase::createEmpty(), osg::ImageBackgroundBase::createEmpty(), osg::GroupBase::createEmpty(), osg::GraphicStatisticsForegroundBase::createEmpty(), osg::GradientBackgroundBase::createEmpty(), osg::GrabForegroundBase::createEmpty(), osg::GLUTWindowBase::createEmpty(), createEmpty(), osg::FresnelMaterialBase::createEmpty(), osg::FragmentProgramChunkBase::createEmpty(), osg::FileGrabForegroundBase::createEmpty(), osg::FCPtrAttributeMapBase::createEmpty(), osg::FBOViewportBase::createEmpty(), osg::FatBorderChunkBase::createEmpty(), osg::DVRVolumeTextureBase::createEmpty(), osg::DVRVolumeBase::createEmpty(), osg::DVRSimpleShaderBase::createEmpty(), osg::DVRSimpleLUTShaderBase::createEmpty(), osg::DVRMtexLUTShaderBase::createEmpty(), osg::DVRLookupTableBase::createEmpty(), osg::DVRIsoSurfaceBase::createEmpty(), osg::DVRIsoShaderBase::createEmpty(), osg::DVRGeometryBase::createEmpty(), osg::DVRClipObjectsBase::createEmpty(), osg::DVRClipGeometryBase::createEmpty(), osg::DVRAppearanceBase::createEmpty(), osg::DistortionDisplayFilterBase::createEmpty(), osg::DistanceLODBase::createEmpty(), osg::DisplayFilterForegroundBase::createEmpty(), osg::DisplayCalibrationBase::createEmpty(), osg::DirectionalLightBase::createEmpty(), osg::DepthClearBackgroundBase::createEmpty(), osg::DepthChunkBase::createEmpty(), osg::CubeTextureChunkBase::createEmpty(), osg::ComponentTransformBase::createEmpty(), osg::ColorMaskChunkBase::createEmpty(), osg::ColorDisplayFilterBase::createEmpty(), osg::ColorBufferViewportBase::createEmpty(), osg::ClusterWindowBase::createEmpty(), osg::ClipPlaneChunkBase::createEmpty(), osg::ClipPlaneBase::createEmpty(), osg::ChunkMaterialBase::createEmpty(), osg::BlendChunkBase::createEmpty(), osg::BillboardBase::createEmpty(), osg::XWindowBase::shallowCopy(), osg::WIN32WindowBase::shallowCopy(), osg::ViewportBase::shallowCopy(), osg::VertexProgramChunkBase::shallowCopy(), osg::TwoSidedLightingChunkBase::shallowCopy(), osg::TransformChunkBase::shallowCopy(), osg::TransformBase::shallowCopy(), osg::TileCameraDecoratorBase::shallowCopy(), osg::TextureTransformChunkBase::shallowCopy(), osg::TextureGrabForegroundBase::shallowCopy(), osg::TextureGrabBackgroundBase::shallowCopy(), osg::TextureChunkBase::shallowCopy(), osg::TextureBackgroundBase::shallowCopy(), osg::TexGenChunkBase::shallowCopy(), osg::SwitchMaterialBase::shallowCopy(), osg::SwitchBase::shallowCopy(), osg::SurfaceBase::shallowCopy(), osg::StringAttributeMapBase::shallowCopy(), osg::StereoBufferViewportBase::shallowCopy(), osg::StencilChunkBase::shallowCopy(), osg::StateSortingGroupBase::shallowCopy(), osg::StateBase::shallowCopy(), osg::SpotLightBase::shallowCopy(), osg::SortFirstWindowBase::shallowCopy(), osg::SolidBackgroundBase::shallowCopy(), osg::SlicesBase::shallowCopy(), osg::SkyBackgroundBase::shallowCopy(), osg::SimpleTexturedMaterialBase::shallowCopy(), osg::SimpleStatisticsForegroundBase::shallowCopy(), osg::SimpleMaterialBase::shallowCopy(), osg::SHLParameterChunkBase::shallowCopy(), osg::SHLChunkBase::shallowCopy(), osg::ShearedStereoCameraDecoratorBase::shallowCopy(), osg::ShaderParameterVec4fBase::shallowCopy(), osg::ShaderParameterVec3fBase::shallowCopy(), osg::ShaderParameterVec2fBase::shallowCopy(), osg::ShaderParameterStringBase::shallowCopy(), osg::ShaderParameterRealBase::shallowCopy(), osg::ShaderParameterMVec4fBase::shallowCopy(), osg::ShaderParameterMVec3fBase::shallowCopy(), osg::ShaderParameterMVec2fBase::shallowCopy(), osg::ShaderParameterMRealBase::shallowCopy(), osg::ShaderParameterMMatrixBase::shallowCopy(), osg::ShaderParameterMIntBase::shallowCopy(), osg::ShaderParameterMatrixBase::shallowCopy(), osg::ShaderParameterIntBase::shallowCopy(), osg::ShaderParameterBoolBase::shallowCopy(), osg::ScreenGroupBase::shallowCopy(), osg::SClipPlaneChunkBase::shallowCopy(), osg::ResolutionDisplayFilterBase::shallowCopy(), osg::RenderOptionsBase::shallowCopy(), osg::RegisterCombinersChunkBase::shallowCopy(), osg::QTWindowBase::shallowCopy(), osg::ProxyGroupBase::shallowCopy(), osg::ProjectionCameraDecoratorBase::shallowCopy(), osg::PolygonForegroundBase::shallowCopy(), osg::PolygonChunkBase::shallowCopy(), osg::PolygonBackgroundBase::shallowCopy(), osg::PointLightBase::shallowCopy(), osg::PointChunkBase::shallowCopy(), osg::PhongMaterialBase::shallowCopy(), osg::PerspectiveCameraBase::shallowCopy(), osg::PassiveWindowBase::shallowCopy(), osg::PassiveViewportBase::shallowCopy(), osg::PassiveBackgroundBase::shallowCopy(), osg::ParticlesBase::shallowCopy(), osg::OrthographicCameraBase::shallowCopy(), osg::OffCenterPerspectiveCameraBase::shallowCopy(), osg::MultiPassMaterialBase::shallowCopy(), osg::MultiDisplayWindowBase::shallowCopy(), osg::MatrixCameraDecoratorBase::shallowCopy(), osg::MatrixCameraBase::shallowCopy(), osg::MaterialPoolBase::shallowCopy(), osg::MaterialGroupBase::shallowCopy(), osg::MaterialChunkBase::shallowCopy(), osg::LogicOpChunkBase::shallowCopy(), osg::LineChunkBase::shallowCopy(), osg::LightModelChunkBase::shallowCopy(), osg::LightEnvBase::shallowCopy(), osg::LightChunkBase::shallowCopy(), osg::InverseTransformBase::shallowCopy(), osg::InlineBase::shallowCopy(), osg::ImageForegroundBase::shallowCopy(), osg::ImageBase::shallowCopy(), osg::ImageBackgroundBase::shallowCopy(), osg::GroupBase::shallowCopy(), osg::GraphicStatisticsForegroundBase::shallowCopy(), osg::GradientBackgroundBase::shallowCopy(), osg::GrabForegroundBase::shallowCopy(), osg::GLUTWindowBase::shallowCopy(), shallowCopy(), osg::FresnelMaterialBase::shallowCopy(), osg::FragmentProgramChunkBase::shallowCopy(), osg::FileGrabForegroundBase::shallowCopy(), osg::FCPtrAttributeMapBase::shallowCopy(), osg::FBOViewportBase::shallowCopy(), osg::FatBorderChunkBase::shallowCopy(), osg::DVRVolumeTextureBase::shallowCopy(), osg::DVRVolumeBase::shallowCopy(), osg::DVRSimpleShaderBase::shallowCopy(), osg::DVRSimpleLUTShaderBase::shallowCopy(), osg::DVRMtexLUTShaderBase::shallowCopy(), osg::DVRLookupTableBase::shallowCopy(), osg::DVRIsoSurfaceBase::shallowCopy(), osg::DVRIsoShaderBase::shallowCopy(), osg::DVRGeometryBase::shallowCopy(), osg::DVRClipObjectsBase::shallowCopy(), osg::DVRClipGeometryBase::shallowCopy(), osg::DVRAppearanceBase::shallowCopy(), osg::DistortionDisplayFilterBase::shallowCopy(), osg::DistanceLODBase::shallowCopy(), osg::DisplayFilterForegroundBase::shallowCopy(), osg::DisplayCalibrationBase::shallowCopy(), osg::DirectionalLightBase::shallowCopy(), osg::DepthClearBackgroundBase::shallowCopy(), osg::DepthChunkBase::shallowCopy(), osg::CubeTextureChunkBase::shallowCopy(), osg::ComponentTransformBase::shallowCopy(), osg::ColorMaskChunkBase::shallowCopy(), osg::ColorDisplayFilterBase::shallowCopy(), osg::ColorBufferViewportBase::shallowCopy(), osg::ClusterWindowBase::shallowCopy(), osg::ClipPlaneChunkBase::shallowCopy(), osg::ClipPlaneBase::shallowCopy(), osg::ChunkMaterialBase::shallowCopy(), osg::BlendChunkBase::shallowCopy(), and osg::BillboardBase::shallowCopy().

00141 {
00142     typedef typename ObjectPtrT::StoredObjectType ObjectType;
00143     
00144     UInt8 *pTmp;
00145     
00146     result._containerSize = sizeof(ObjectType);
00147     
00148     pTmp        = 
00149         static_cast<UInt8 *>(operator new(
00150             sizeof(Int32)      + // ReferenceCount
00151             sizeof(UInt32)     + // ContainerId
00152             sizeof(ObjectType) * ThreadManager::getNumAspects()));
00153     
00154     *(reinterpret_cast<Int32 *>(pTmp)) = 0;
00155     
00156     pTmp += sizeof(Int32);
00157     
00158     result._storeP = (pTmp + sizeof(UInt32));
00159 
00160 #ifdef OSG_DEBUG_FCPTR
00161     result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP);
00162 #endif
00163 
00164     *(reinterpret_cast<UInt32 *>(pTmp)) = 
00165         FieldContainerFactory::the()->registerFieldContainer(result);
00166     
00167     Thread::getCurrentChangeList()->addCreated(
00168         *(reinterpret_cast<UInt32 *>(pTmp)));
00169     
00170     pTmp += sizeof(UInt32);
00171     
00172     ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp);
00173 
00174     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00175     {
00176         pTmp = 
00177             reinterpret_cast<UInt8 *>(new (pTmp) ObjectType(*prototypeP));
00178         
00179         pTmp += sizeof(ObjectType);
00180     }
00181     
00182     result->onCreate(prototypeP);
00183 
00184     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00185     {
00186         aObject[i].onCreateAspect(aObject, prototypeP);
00187     }
00188 
00189 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM)
00190 
00191     fprintf(stderr, "GV_MEM_FC_DBG : (%u) cc (%p|%u)\n", 
00192             Thread::getAspect(),
00193             result._storeP,
00194 //            ObjectType::getClassType().getCName(),
00195             ObjectType::getClassType().getId());
00196 #endif
00197 
00198 #ifdef OSG_DEBUG_TYPED_FCPTR
00199     result.updateTypedStore();
00200 #endif
00201 }

template<class ObjectPtrT>
void osg::FieldContainer::newPtr ( ObjectPtrT &  result  )  [inline, static, protected, inherited]

Definition at line 204 of file OSGFieldContainerImpl.inl.

References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().

00205 {
00206     typedef typename ObjectPtrT::StoredObjectType ObjectType;
00207     
00208     UInt8 *pTmp;
00209     
00210     result._containerSize = sizeof(ObjectType);
00211     
00212     pTmp        =             
00213         static_cast<UInt8 *>(operator new(
00214             sizeof(Int32)      + // ReferenceCount
00215             sizeof(UInt32)     + // ContainerId
00216             sizeof(ObjectType) * ThreadManager::getNumAspects()));
00217     
00218     *(reinterpret_cast<Int32 *>(pTmp)) = 0;
00219     
00220     pTmp  += sizeof(Int32);
00221     
00222     result._storeP = (pTmp + sizeof(UInt32));
00223     
00224 #ifdef OSG_DEBUG_FCPTR
00225     result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP);
00226 #endif
00227 
00228     *(reinterpret_cast<UInt32 *>(pTmp)) = 
00229         FieldContainerFactory::the()->registerFieldContainer(result);
00230     
00231     Thread::getCurrentChangeList()->addCreated(
00232         *(reinterpret_cast<UInt32 *>(pTmp)));
00233     
00234     pTmp += sizeof(UInt32);
00235     
00236     ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp);
00237 
00238     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00239     {
00240         pTmp = reinterpret_cast<UInt8 *>(new (pTmp) ObjectType());
00241         
00242         pTmp += sizeof(ObjectType);
00243     }
00244     
00245     result->onCreate();
00246     
00247     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00248     {
00249         aObject[i].onCreateAspect(aObject);
00250     }
00251 
00252 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM)
00253     fprintf(stderr, "GV_MEM_FC_DBG : (%u) c (%p|%u)\n", 
00254             Thread::getAspect(),
00255             result._storeP,
00256 //            ObjectType::getClassType().getCName(),
00257             ObjectType::getClassType().getId());
00258 #endif
00259     
00260 #ifdef OSG_DEBUG_TYPED_FCPTR
00261     result.updateTypedStore();
00262 #endif
00263 }

template<class FieldTypeT>
void osg::FieldContainer::beginEditX ( const BitVector whichField,
FieldTypeT &  field 
) [inline, protected, inherited]

Definition at line 285 of file OSGFieldContainerImpl.inl.

00286 {
00287 //    fieldR.beginEdit();
00288 }

template<class FieldTypeT>
void osg::FieldContainer::endEditX ( const BitVector whichField,
FieldTypeT &  field 
) [inline, protected, inherited]

Definition at line 291 of file OSGFieldContainerImpl.inl.

References osg::endEditCP().

00292 {
00293     FieldContainerPtr tmpPtr(this);
00294     endEditCP(tmpPtr, whichField);
00295 }

void osg::FieldContainer::onCreate ( const FieldContainer source = NULL  )  [inline, protected, inherited]

Definition at line 318 of file OSGFieldContainerImpl.inl.

Referenced by osg::ShaderParameterChunk::onCreate().

00319 {
00320 }

void osg::FieldContainer::onCreateAspect ( const FieldContainer aspect0,
const FieldContainer source = NULL 
) [inline, protected, inherited]

Definition at line 323 of file OSGFieldContainerImpl.inl.

00325 {
00326 }


Friends And Related Function Documentation

friend class FieldContainer [friend]

Reimplemented from osg::MaterialDrawable.

Reimplemented in osg::Geometry, osg::DVRGeometry, osg::DVRGeometryBase, osg::Surface, and osg::SurfaceBase.

Definition at line 427 of file OSGGeometryBase.h.


Member Data Documentation

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::ColorsFieldId)

Definition at line 148 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::SecondaryColorsFieldId)

Definition at line 149 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords1FieldId)

Definition at line 151 of file OSGGeometryBase.h.

Referenced by osg::Surface::buildSurface(), osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords2FieldId)

Definition at line 152 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords3FieldId)

Definition at line 153 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords4FieldId)

Definition at line 154 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords5FieldId)

Definition at line 155 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords6FieldId)

Definition at line 156 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::TexCoords7FieldId)

Definition at line 157 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::DlistCacheFieldId)

Definition at line 160 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::IgnoreGLForAspectFieldId)

Definition at line 162 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::MinindexFieldId)

Definition at line 163 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), and osg::Geometry::updateLowHighIndices().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::MaxindexFieldId)

Definition at line 164 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), and osg::Geometry::updateLowHighIndices().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::LowindicesFieldId)

Definition at line 165 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), and osg::Geometry::updateLowHighIndices().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::HighindicesFieldId)

Definition at line 166 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), and osg::Geometry::updateLowHighIndices().

Initial value:

 
    (TypeTraits<BitVector>::One << GeometryBase::VboFieldId)

Definition at line 167 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (Inherited::MTInfluenceMask) | 
    (static_cast<BitVector>(0x0) << Inherited::NextFieldId)

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 170 of file OSGGeometryBase.h.

The types property contains the primitive's types. Legal values are everything that can be passed to glBegin(). There have to be as many types as lengths.

Definition at line 335 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTypes(), getTypes(), osg::Geometry::onDestroy(), setTypes(), and osg::Geometry::setTypes().

The lengths property contains the number of vertices to use for the corresponding primitive. There have to be as many lengths as types.

Definition at line 336 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getLengths(), getSFLengths(), osg::Geometry::onDestroy(), setLengths(), and osg::Geometry::setLengths().

The colors property contains the color data. See MaterialChunk for details on when these colors are used.

Definition at line 339 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getColors(), getSFColors(), osg::Geometry::onDestroy(), setColors(), and osg::Geometry::setColors().

The secondaryColors property contains the secondary colors data. Secondary colors are used for some higher level shaders.

Definition at line 340 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSecondaryColors(), getSFSecondaryColors(), osg::Geometry::onDestroy(), setSecondaryColors(), and osg::Geometry::setSecondaryColors().

The texCoords1 property contains the texture coordinate data for the second texture. See TextureChunk for multi-texturing.

Definition at line 342 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords1(), getTexCoords1(), osg::Geometry::onDestroy(), setTexCoords1(), and osg::Geometry::setTexCoords1().

The texCoords2 property contains the texture coordinate data for the third texture. See TextureChunk for multi-texturing.

Definition at line 343 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords2(), getTexCoords2(), osg::Geometry::onDestroy(), setTexCoords2(), and osg::Geometry::setTexCoords2().

The texCoords3 property contains the texture coordinate data for the fourth texture. See TextureChunk for multi-texturing.

Definition at line 344 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords3(), getTexCoords3(), osg::Geometry::onDestroy(), setTexCoords3(), and osg::Geometry::setTexCoords3().

The texCoords4 property contains the texture coordinate data for the fifth texture. See TextureChunk for multi-texturing.

Definition at line 345 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords4(), getTexCoords4(), osg::Geometry::onDestroy(), setTexCoords4(), and osg::Geometry::setTexCoords4().

The texCoords5 property contains the texture coordinate data for the sixth texture. See TextureChunk for multi-texturing.

Definition at line 346 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords5(), getTexCoords5(), osg::Geometry::onDestroy(), setTexCoords5(), and osg::Geometry::setTexCoords5().

The texCoords6 property contains the texture coordinate data for the seventh texture. See TextureChunk for multi-texturing.

Definition at line 347 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords6(), getTexCoords6(), osg::Geometry::onDestroy(), setTexCoords6(), and osg::Geometry::setTexCoords6().

The texCoords7 property contains the texture coordinate data for the eighth texture. See TextureChunk for multi-texturing.

Definition at line 348 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFTexCoords7(), getTexCoords7(), osg::Geometry::onDestroy(), setTexCoords7(), and osg::Geometry::setTexCoords7().

The indices property contains the index data. See Indexing for a description of the indexing options.

Definition at line 349 of file OSGGeometryBase.h.

Referenced by osg::Geometry::changed(), copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getIndices(), getSFIndices(), osg::Geometry::onDestroy(), setIndices(), and osg::Geometry::setIndices().

The indexMapping property contains the definition which index element is used for which attribute data. See Indexing for a description of the indexing options.

Definition at line 350 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getIndexMapping(), and getMFIndexMapping().

Flag to activate caching the geometry inside a display list.

Definition at line 351 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getDlistCache(), getSFDlistCache(), and setDlistCache().

The dlist id, if used.

Definition at line 352 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getGLId(), getSFGLId(), and setGLId().

The minimum index used (for single-indexed mode only).

Definition at line 354 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getMinindex(), getSFMinindex(), and setMinindex().

The maximum index used (for single-indexed mode only).

Definition at line 355 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getMaxindex(), getSFMaxindex(), and setMaxindex().

For each primitive (entry in types) the lowest index used (for single-indexed mode only).

Definition at line 356 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getLowindices(), and getMFLowindices().

For each primitive (entry in types) the highest index used (for single-indexed mode only).

Definition at line 357 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getHighindices(), and getMFHighindices().

bool osg::GeometryBase::_sfVbo [protected]

Flag to activate vbo rendering.

Definition at line 358 of file OSGGeometryBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getSFVbo(), getVbo(), and setVbo().

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::SurfaceBase.

Definition at line 429 of file OSGGeometryBase.h.

Reimplemented from osg::MaterialDrawableBase.

Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase.

Definition at line 430 of file OSGGeometryBase.h.

Referenced by getClassType(), getClassTypeId(), and getType().

Definition at line 72 of file OSGDrawable.h.

Referenced by osg::Geometry::drawPrimitives(), and osg::DrawActionBase::start().

Definition at line 73 of file OSGDrawable.h.

Referenced by osg::Geometry::drawPrimitives(), and osg::DrawActionBase::start().

const BitVector NodeCore::ParentsFieldMask = (1 << NodeCore::ParentsFieldId ) [static, inherited]

const bool osg::NodeCore::isNodeCore = true [static, inherited]

Reimplemented from osg::FieldContainer.

Definition at line 149 of file OSGNodeCore.h.

MFNodePtr osg::NodeCore::_parents [protected, inherited]

const BitVector osg::FieldContainer::NextFieldMask [static, inherited]

Initial value:

 
                    (TypeTraits<BitVector>::One << NextFieldId)

Definition at line 75 of file OSGFieldContainerImpl.h.

UInt32 osg::FieldContainer::_shares [protected, inherited]

Definition at line 199 of file OSGFieldContainerImpl.h.


The documentation for this class was generated from the following files:

Generated on Mon Mar 17 12:06:55 2008 for OpenSG by  doxygen 1.5.5