v2o::v2oIndexedFaceSetFactory Class Reference

#include <v2oIndexedFaceSetFactory.h>

Inheritance diagram for v2o::v2oIndexedFaceSetFactory:

v2o::v2oFactory List of all members.

Public Member Functions

 v2oIndexedFaceSetFactory ()
virtual ~v2oIndexedFaceSetFactory ()
virtual osgGeometryRef createOSGGeomNode (Node *node)
void translateOSGCoord (MFVec3f *_vrmlCoords, osgVec3ArrayRef _CoordSet)
void translateOSGCoordIndex (MFInt32 *coordIndex, osgGeometryRef myIFS)
void translateOSGNormal (MFVec3f *_vrmlNormals, osgVec3ArrayRef _NormalSet)
void translateOSGNormalIndex (MFInt32 *normalIndex, osgGeometryRef myIFS)
void translateOSGColorFields (MFVec3f *_vrmlColors, MFInt32 *colorIndex, osgGeometryRef myIFS, osgVec3ArrayRef _ColorSet, osgIntArrayRef _ColorIndexSet)
void translateOSGTexCoordFields (MFVec2f *_vrmlTexCoords, MFInt32 *texCoordIndex, osgGeometryRef myIFS, osgVec2ArrayRef _TexCoordSet, osgIntArrayRef _TexCoordIndexSet)
virtual osgGeometryRef getOSGGeomNode ()

Private Attributes

Node * _nodeIndexedFaceSet
FieldValue * _value0
FieldValue * _value1
FieldValue * _value2
FieldValue * _value3
FieldValue * _value4
FieldValue * _value5
FieldValue * _value6
FieldValue * _value7
FieldValue * _value8
FieldValue * _value9
FieldValue * _value10
FieldValue * _value11
FieldValue * _value12
FieldValue * _value13
osgVec3ArrayRef _CoordSet
osgVec3ArrayRef _NormalSet
osgIntArrayRef _ColorIndexSet
osgIntArrayRef _TexCoordIndexSet
osgVec3ArrayRef _ColorSet
osgVec2ArrayRef _TexCoordSet
MFVec3f * _vrmlCoords
MFVec3f * _vrmlNormals
MFVec3f * _vrmlColors
MFVec2f * _vrmlTexCoords
osgGeometryRef _osgIndexedFaceSet
osgDrawArrayLengthsRef _osgDrawArray

Detailed Description

Creates a OpenSceneGraph osgGeometryRef node according to the corresponding parsed Vrml97 IndexedFaceSet node


Constructor & Destructor Documentation

v2oIndexedFaceSetFactory::v2oIndexedFaceSetFactory (  ) 

v2oIndexedFaceSetFactory::~v2oIndexedFaceSetFactory (  )  [virtual]


Member Function Documentation

osgGeometryRef v2oIndexedFaceSetFactory::createOSGGeomNode ( Node *  node  )  [virtual]

Creates all the geometry children nodes. To be overriden by the geometry Cosmo Factory subclasses. e.g. Cone, Sphere, Box, IndexedFaceSet Factorys etc.

Reimplemented from v2o::v2oFactory.

void v2oIndexedFaceSetFactory::translateOSGCoord ( MFVec3f *  _vrmlCoords,
osgVec3ArrayRef  _CoordSet 
)

Translates NodeIndexedFaceSet fields(raw scenegraph node) to the corresponding osgGeometryRef fields

void v2oIndexedFaceSetFactory::translateOSGCoordIndex ( MFInt32 *  coordIndex,
osgGeometryRef  myIFS 
)

translateosgCoordFields() translates the coordIndex field of the NodeIndexedFaceSet Node of the gpVRMLParserLIB to the corresponding field myIFS of the osg::Geometry node of OpenSceneGraph.

void v2oIndexedFaceSetFactory::translateOSGNormal ( MFVec3f *  _vrmlNormals,
osgVec3ArrayRef  _NormalSet 
)

translateOSGNormal() translates the _vrmlNormals field of the NodeIndexedFaceSet Node of the gpVRMLParserLIB to the corresponding fields _NormalSet of the osg::Geometry node of OpenSceneGraph.

void v2oIndexedFaceSetFactory::translateOSGNormalIndex ( MFInt32 *  normalIndex,
osgGeometryRef  myIFS 
)

translateOSGNormalIndex() translates the normalIndex field of the NodeIndexedFaceSet Node of the gpVRMLParserLIB to the corresponding field myNormalIndexSet of the osg::Geometry node of OpenSceneGraph.

void v2oIndexedFaceSetFactory::translateOSGColorFields ( MFVec3f *  _vrmlColors,
MFInt32 *  colorIndex,
osgGeometryRef  myIFS,
osgVec3ArrayRef  _ColorSet,
osgIntArrayRef  _ColorIndexSet 
)

translateOSGColorFields() translates the _vrmlColors,colorIndex fields of the NodeIndexedFaceSet Node of the gpVRMLParserLIB to the corresponding fileds _ColorSet, _ColorIndexSet of the osg::Geometry node of OpenSceneGraph.

void v2oIndexedFaceSetFactory::translateOSGTexCoordFields ( MFVec2f *  _vrmlTexCoords,
MFInt32 *  texCoordIndex,
osgGeometryRef  myIFS,
osgVec2ArrayRef  _TexCoordSet,
osgIntArrayRef  _TexCoordIndexSet 
)

translateOSGTexCoordFields() translates the _vrmlTexCoords,texCoordIndex fields of the NodeIndexedFaceSet Node of the gpVRMLParserLIB to the corresponding fileds _TexCoordSet, _TexCoordIndexSet of the osg::Geometry node of OpenSceneGraph.

virtual osgGeometryRef v2o::v2oIndexedFaceSetFactory::getOSGGeomNode (  )  [inline, virtual]

Reimplemented from v2o::v2oFactory.


Member Data Documentation

Node* v2o::v2oIndexedFaceSetFactory::_nodeIndexedFaceSet [private]

FieldValue* v2o::v2oIndexedFaceSetFactory::_value0 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value1 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value2 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value3 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value4 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value5 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value6 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value7 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value8 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value9 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value10 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value11 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value12 [private]

FieldValue * v2o::v2oIndexedFaceSetFactory::_value13 [private]

osgVec3ArrayRef v2o::v2oIndexedFaceSetFactory::_CoordSet [private]

osgVec3ArrayRef v2o::v2oIndexedFaceSetFactory::_NormalSet [private]

osgIntArrayRef v2o::v2oIndexedFaceSetFactory::_ColorIndexSet [private]

osgIntArrayRef v2o::v2oIndexedFaceSetFactory::_TexCoordIndexSet [private]

osgVec3ArrayRef v2o::v2oIndexedFaceSetFactory::_ColorSet [private]

osgVec2ArrayRef v2o::v2oIndexedFaceSetFactory::_TexCoordSet [private]

MFVec3f* v2o::v2oIndexedFaceSetFactory::_vrmlCoords [private]

MFVec3f* v2o::v2oIndexedFaceSetFactory::_vrmlNormals [private]

MFVec3f* v2o::v2oIndexedFaceSetFactory::_vrmlColors [private]

MFVec2f* v2o::v2oIndexedFaceSetFactory::_vrmlTexCoords [private]

osgGeometryRef v2o::v2oIndexedFaceSetFactory::_osgIndexedFaceSet [private]

osgDrawArrayLengthsRef v2o::v2oIndexedFaceSetFactory::_osgDrawArray [private]


Generated on Thu Jan 18 10:06:28 2007 for vhdPLUS by  doxygen 1.5.1-p1