#include <OSGGeometry.h>
Inheritance diagram for osg::Geometry:

Class Specific | |
| Int16 | calcMappingIndex (UInt16 attrib) const |
| virtual void | changed (BitVector whichField, UInt32 origin) |
| GeometryPtr | getPtr (void) const |
| GeometryPtr | clone (void) |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| bool | isMergeable (const GeometryPtr other) |
| bool | merge (const GeometryPtr other) |
| *static const char * | mapType (UInt8 type) |
Public Types | |
| typedef GeometryPtr | Ptr |
| 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, IndicesFieldId = TexCoords3FieldId + 1, IndexMappingFieldId = IndicesFieldId + 1, DlistCacheFieldId = IndexMappingFieldId + 1, GLIdFieldId = DlistCacheFieldId + 1, NextFieldId = GLIdFieldId + 1 } |
Public Member Functions | |
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) |
| Field Access *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Abstract | |
| *virtual GeoPropertyArrayInterface * | getProperty (Int32 mapID) |
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 | setIndices (const GeoIndicesPtr &value) |
| Set the value of the Geometry::_sfIndices field. | |
| void | setMaterial (const MaterialPtr &value) |
| Set the value of the MaterialDrawable::_sfMaterial field. | |
Iterator Access | |
| *TriangleIterator | beginTriangles (void) const |
| TriangleIterator | endTriangles (void) const |
| PrimitiveIterator | beginPrimitives (void) const |
| PrimitiveIterator | endPrimitives (void) const |
| FaceIterator | beginFaces (void) const |
| FaceIterator | endFaces (void) const |
| LineIterator | beginLines (void) const |
| LineIterator | endLines (void) const |
| EdgeIterator | beginEdges (void) const |
| EdgeIterator | endEdges (void) const |
Draw | |
| *virtual Action::ResultE | drawPrimitives (DrawActionBase *action) |
| initialize the static features of the class, e.g. action callbacks | |
| Action::ResultE | intersect (Action *action) |
| NewActionTypes::ResultE | intersect (ActorBase::FunctorArgumentType &funcArg) |
| void | invalidateDlistCache (void) |
NodeCore Specific | |
| *void | adjustVolume (Volume &volume) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFGeoPTypesPtr * | getSFTypes (void) |
| Get the Geometry::_sfTypes field. | |
| SFGeoPLengthsPtr * | getSFLengths (void) |
| Get the Geometry::_sfLengths field. | |
| SFGeoPositionsPtr * | getSFPositions (void) |
| Get the Geometry::_sfPositions field. | |
| SFGeoNormalsPtr * | getSFNormals (void) |
| Get the Geometry::_sfNormals field. | |
| SFGeoColorsPtr * | getSFColors (void) |
| Get the Geometry::_sfColors field. | |
| SFGeoColorsPtr * | getSFSecondaryColors (void) |
| Get the Geometry::_sfSecondaryColors field. | |
| SFGeoTexCoordsPtr * | getSFTexCoords (void) |
| Get the Geometry::_sfTexCoords field. | |
| SFGeoTexCoordsPtr * | getSFTexCoords1 (void) |
| Get the Geometry::_sfTexCoords1 field. | |
| SFGeoTexCoordsPtr * | getSFTexCoords2 (void) |
| Get the Geometry::_sfTexCoords2 field. | |
| SFGeoTexCoordsPtr * | getSFTexCoords3 (void) |
| Get the Geometry::_sfTexCoords3 field. | |
| SFGeoIndicesPtr * | getSFIndices (void) |
| Get the Geometry::_sfIndices field. | |
| MFUInt16 * | getMFIndexMapping (void) |
| Get the Geometry::_mfIndexMapping field. | |
| SFBool * | getSFDlistCache (void) |
| Get the Geometry::_sfDlistCache field. | |
| GeoPTypesPtr & | getTypes (void) |
| Get the value of the Geometry::_sfTypes field. | |
| const GeoPTypesPtr & | getTypes (void) const |
| Get the value of the Geometry::_sfTypes field. | |
| GeoPLengthsPtr & | getLengths (void) |
| Get the value of the Geometry::_sfLengths field. | |
| const GeoPLengthsPtr & | getLengths (void) const |
| Get the value of the Geometry::_sfLengths field. | |
| GeoPositionsPtr & | getPositions (void) |
| Get the value of the Geometry::_sfPositions field. | |
| const GeoPositionsPtr & | getPositions (void) const |
| Get the value of the Geometry::_sfPositions field. | |
| GeoNormalsPtr & | getNormals (void) |
| Get the value of the Geometry::_sfNormals field. | |
| const GeoNormalsPtr & | getNormals (void) const |
| Get the value of the Geometry::_sfNormals field. | |
| GeoColorsPtr & | getColors (void) |
| Get the value of the Geometry::_sfColors field. | |
| const GeoColorsPtr & | getColors (void) const |
| Get the value of the Geometry::_sfColors field. | |
| GeoColorsPtr & | getSecondaryColors (void) |
| Get the value of the Geometry::_sfSecondaryColors field. | |
| const GeoColorsPtr & | getSecondaryColors (void) const |
| Get the value of the Geometry::_sfSecondaryColors field. | |
| GeoTexCoordsPtr & | getTexCoords (void) |
| Get the value of the Geometry::_sfTexCoords field. | |
| const GeoTexCoordsPtr & | getTexCoords (void) const |
| Get the value of the Geometry::_sfTexCoords field. | |
| GeoTexCoordsPtr & | getTexCoords1 (void) |
| Get the value of the Geometry::_sfTexCoords1 field. | |
| const GeoTexCoordsPtr & | getTexCoords1 (void) const |
| Get the value of the Geometry::_sfTexCoords1 field. | |
| GeoTexCoordsPtr & | getTexCoords2 (void) |
| Get the value of the Geometry::_sfTexCoords2 field. | |
| const GeoTexCoordsPtr & | getTexCoords2 (void) const |
| Get the value of the Geometry::_sfTexCoords2 field. | |
| GeoTexCoordsPtr & | getTexCoords3 (void) |
| Get the value of the Geometry::_sfTexCoords3 field. | |
| const GeoTexCoordsPtr & | getTexCoords3 (void) const |
| Get the value of the Geometry::_sfTexCoords3 field. | |
| GeoIndicesPtr & | getIndices (void) |
| Get the value of the Geometry::_sfIndices field. | |
| const GeoIndicesPtr & | getIndices (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. | |
| UInt16 & | getIndexMapping (const UInt32 index) |
| Get the value of the index element the Geometry::_mfIndexMapping field. | |
| MFUInt16 & | getIndexMapping (void) |
| Get the Geometry::_mfIndexMapping field. | |
| const MFUInt16 & | getIndexMapping (void) const |
| Get the Geometry::_mfIndexMapping field. | |
Field Set | |
| void | setDlistCache (const bool &value) |
| Set the value of the Geometry::_sfDlistCache 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 | |
| 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 | |
Field Get | |
| *SFMaterialPtr * | getSFMaterial (void) |
| Get the MaterialDrawable::_sfMaterial field. | |
| MaterialPtr & | getMaterial (void) |
| Get the value of the MaterialDrawable::_sfMaterial field. | |
| const MaterialPtr & | getMaterial (void) const |
| Get the value of the MaterialDrawable::_sfMaterial field. | |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (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) |
| Field Access *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Static Public Member Functions | |
Get Class Type Information | |
| static UInt16 | getClassGroupId (void) |
Class Get | |
| *static const char * | getClassname (void) |
Class Get | |
| *static FieldContainerType & | getClassType (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 | IndicesFieldMask |
| static const osg::BitVector | IndexMappingFieldMask |
| static const osg::BitVector | DlistCacheFieldMask |
| static const osg::BitVector | GLIdFieldMask |
| 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 |
IndexMapping Constants | |
| *static const UInt16 | MapPosition = 1 |
| static const UInt16 | MapNormal = Geometry::MapPosition << 1 |
| static const UInt16 | MapColor = Geometry::MapNormal << 1 |
| static const UInt16 | MapSecondaryColor = Geometry::MapColor << 1 |
| static const UInt16 | MapTexCoords = Geometry::MapSecondaryColor << 1 |
| static const UInt16 | MapTexCoords1 = Geometry::MapTexCoords << 1 |
| static const UInt16 | MapTexCoords2 = Geometry::MapTexCoords1 << 1 |
| static const UInt16 | MapTexCoords3 = Geometry::MapTexCoords2 << 1 |
| static const UInt16 | MapEmpty = Geometry::MapTexCoords3 << 1 |
static stat elem | |
| *static StatElemDesc< StatIntElem > | statNTriangles |
| static StatElemDesc< StatIntElem > | statNLines |
| static StatElemDesc< StatIntElem > | statNPoints |
| static StatElemDesc< StatIntElem > | statNVertices |
| static StatElemDesc< StatIntElem > | statNPrimitives |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
Protected Member Functions | |
Sync | |
| void | executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField) |
Sync | |
| void | executeSyncImpl (FieldContainer *pOther, const BitVector &whichField) |
Pointer | |
| *AttachmentContainerPtr | getPtr (void) |
MT Edit | |
| template<class FieldTypeT> | |
| *void | beginEditX (const BitVector &whichField, FieldTypeT &field) |
| template<class FieldTypeT> | |
| void | endEditX (const BitVector &whichField, FieldTypeT &field) |
MT Construction | |
| *void | onCreate (const FieldContainer *source=NULL) |
| void | onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL) |
Constructors | |
| * | Geometry (void) |
| Geometry (const Geometry &source) | |
Destructors | |
| *virtual | ~Geometry (void) |
Class Specific | |
| *void | handleGL (Window *win, UInt32 id) |
| void | onCreate (const Geometry *source=NULL) |
| bool | CompareMaterials (MaterialPtr m1, MaterialPtr m2) |
| Int16 | MergeIndex (const GeometryPtr other) |
| void | merge0 (const GeometryPtr other) |
| void | merge1 (const GeometryPtr other) |
| void | merge2 (const GeometryPtr other) |
| void | merge3 (const GeometryPtr other) |
| void | merge4 (const GeometryPtr other) |
| void | merge5 (const GeometryPtr other) |
| void | merge6 (const GeometryPtr other) |
Field Get | |
| *SFInt32 * | getSFGLId (void) |
| Get the Geometry::_sfGLId field. | |
| Int32 & | getGLId (void) |
| Get the value of the Geometry::_sfGLId field. | |
| const Int32 & | getGLId (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 | |
| *AttachmentContainerPtr | getPtr (void) |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
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) |
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 | |
| *SFAttachmentMap | _attachmentMap |
Member | |
| *UInt32 | _shares |
Fields | |
| *SFGeoPTypesPtr | _sfTypes |
| SFGeoPLengthsPtr | _sfLengths |
| SFGeoPositionsPtr | _sfPositions |
| SFGeoNormalsPtr | _sfNormals |
| SFGeoColorsPtr | _sfColors |
| SFGeoColorsPtr | _sfSecondaryColors |
| SFGeoTexCoordsPtr | _sfTexCoords |
| SFGeoTexCoordsPtr | _sfTexCoords1 |
| SFGeoTexCoordsPtr | _sfTexCoords2 |
| SFGeoTexCoordsPtr | _sfTexCoords3 |
| SFGeoIndicesPtr | _sfIndices |
| MFUInt16 | _mfIndexMapping |
| SFBool | _sfDlistCache |
| SFInt32 | _sfGLId |
Fields | |
| *SFMaterialPtr | _sfMaterial |
Fields | |
| *MFNodePtr | _parents |
Fields | |
| *SFAttachmentMap | _attachmentMap |
Member | |
| *UInt32 | _shares |
Private Types | |
| typedef GeometryBase | Inherited |
Private Member Functions | |
| void | operator= (const Geometry &source) |
Static Private Member Functions | |
| static void | initMethod (void) |
| initialize the static features of the class, e.g. action callbacks | |
Friends | |
| class | FieldContainer |
| class | GeometryBase |
Definition at line 69 of file OSGGeometry.h.
|
|
Reimplemented from osg::GeometryBase. Reimplemented in osg::DVRGeometry, osg::DVRGeometryBase, osg::Surface, and osg::SurfaceBase. Definition at line 229 of file OSGGeometry.h. |
|
|
Reimplemented from osg::MaterialDrawableBase. Reimplemented in osg::DVRGeometryBase, and osg::SurfaceBase. Definition at line 103 of file OSGGeometryBase.h. |
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 105 of file OSGGeometryBase.h. 00106 { 00107 TypesFieldId = Inherited::NextFieldId, 00108 LengthsFieldId = TypesFieldId + 1, 00109 PositionsFieldId = LengthsFieldId + 1, 00110 NormalsFieldId = PositionsFieldId + 1, 00111 ColorsFieldId = NormalsFieldId + 1, 00112 SecondaryColorsFieldId = ColorsFieldId + 1, 00113 TexCoordsFieldId = SecondaryColorsFieldId + 1, 00114 TexCoords1FieldId = TexCoordsFieldId + 1, 00115 TexCoords2FieldId = TexCoords1FieldId + 1, 00116 TexCoords3FieldId = TexCoords2FieldId + 1, 00117 IndicesFieldId = TexCoords3FieldId + 1, 00118 IndexMappingFieldId = IndicesFieldId + 1, 00119 DlistCacheFieldId = IndexMappingFieldId + 1, 00120 GLIdFieldId = DlistCacheFieldId + 1, 00121 NextFieldId = GLIdFieldId + 1 00122 };
|
|
|
Definition at line 170 of file OSGGeometry.cpp. 00170 : 00171 Inherited() 00172 { 00173 }
|
|
|
Definition at line 175 of file OSGGeometry.cpp. 00175 : 00176 Inherited(source) 00177 { 00178 }
|
|