#include <NodeOSG.h>
 
  
 | Public Member Functions | |
| vtGeode * | CloneGeode () | 
| void | CloneFromGeode (const vtGeode *rhs) | 
| void | AddMesh (vtMesh *pMesh, int iMatIdx) | 
| void | RemoveMesh (vtMesh *pMesh) | 
| void | AddTextMesh (vtTextMesh *pMesh, int iMatIdx) | 
| uint | GetNumMeshes () const | 
| vtMesh * | GetMesh (int i) const | 
| vtTextMesh * | GetTextMesh (int i) const | 
| virtual void | SetMaterials (const class vtMaterialArray *mats) | 
| const vtMaterialArray * | GetMaterials () const | 
| vtMaterial * | GetMaterial (int idx) | 
| void | SetMeshMatIndex (vtMesh *pMesh, int iMatIdx) | 
|  Public Member Functions inherited from NodeExtension | |
| void | SetEnabled (bool bOn) | 
| bool | GetEnabled () const | 
| void | SetCastShadow (bool b) | 
| Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
| bool | GetCastShadow () | 
| Get whether this node casts a shadow. | |
| void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) | 
| Get the Bounding Sphere of the node. | |
| void | SetOsgNode (osg::Node *n) | 
| Public Attributes | |
| osg::ref_ptr< const vtMaterialArray > | m_pMaterialArray | 
|  Public Attributes inherited from NodeExtension | |
| osg::Node * | m_pNode | 
| bool | m_bCastShadow | 
A vtGeode is a "Geometry Node "which can contain any number of visible vtMesh objects.
| void vtGeode::AddMesh | ( | vtMesh * | pMesh, | 
| int | iMatIdx | ||
| ) | 
Add a mesh to this geometry.
| pMesh | The mesh to add | 
| iMatIdx | The material index for this mesh, which is an index into the material array of the geometry. | 
| void vtGeode::AddTextMesh | ( | vtTextMesh * | pMesh, | 
| int | iMatIdx | ||
| ) | 
Add a text mesh to this geometry.
| pMesh | The mesh to add | 
| iMatIdx | The material index for this mesh, which is an index into the material array of the geometry. | 
| uint vtGeode::GetNumMeshes | ( | ) | const | 
Return the number of contained meshes.
| vtTextMesh * vtGeode::GetTextMesh | ( | int | i) | const | 
Return a contained vtTextMesh by index.
| void vtGeode::RemoveMesh | ( | vtMesh * | pMesh) | 
Remove a mesh from the geomtry. Has no effect if the mesh is not currently contained.
 1.8.4
 1.8.4