VrmlIndexedFaceSet Class Reference

#include <basic/geometry/vrml_reader/VrmlIndexedFaceSet.h>

Inherits VrmlNode.

Inheritance diagram for VrmlIndexedFaceSet:

Inheritance graph
[legend]
Collaboration diagram for VrmlIndexedFaceSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Keyword GetKeyword (char *&buffer)
virtual void Parse (char *&buffer)
virtual void Render (VrmlStack &stack) const
virtual void RenderOpenGl (VrmlStack &stack) const
virtual IGS_ObjectRenderToIGS (VrmlStack &stack) const
 VrmlIndexedFaceSet ()
virtual ~VrmlIndexedFaceSet ()

Protected Member Functions

void ComputeNormals (VrmlStack &stack) const
Vector4 GetNormal (const int index, VrmlStack &stack) const
void ParseNodeColor (char *&buffer)
void ParseNodeCoord (char *&buffer)
void ParseNodeCoordIndex (char *&buffer)
void ParseNodeIgnore (char *&buffer)
void ParseNodeMaterialIndex (char *&buffer)
void ParseNodeNormalIndex (char *&buffer)
void ParseNodeTexCoord (char *&buffer)
virtual void ParseSubnode (Keyword keyword, char *&buffer)

Protected Attributes

std::vector< int > indexes
std::vector< Vector4m_Normals
VrmlNodem_Coords
bool m_NormalsComputed
VrmlNodem_TexCoord

Detailed Description

Definition at line 8 of file VrmlIndexedFaceSet.h.


Constructor & Destructor Documentation

VrmlIndexedFaceSet::VrmlIndexedFaceSet  ) 
 

Definition at line 21 of file VrmlIndexedFaceSet.cpp.

VrmlIndexedFaceSet::~VrmlIndexedFaceSet  )  [virtual]
 

Definition at line 34 of file VrmlIndexedFaceSet.cpp.

References m_Coords, m_TexCoord, and VrmlNode::Release().

Here is the call graph for this function:


Member Function Documentation

void VrmlIndexedFaceSet::ComputeNormals VrmlStack stack  )  const [protected]
 

Definition at line 55 of file VrmlIndexedFaceSet.cpp.

References VrmlCoordinate3::GetCoordinate(), indexes, m_Normals, Vector4::Normalize(), and VrmlStack::vrmlCoordinate3.

Referenced by GetNormal().

Here is the call graph for this function:

Keyword VrmlIndexedFaceSet::GetKeyword char *&  buffer  ) 
 

Reimplemented from VrmlNode.

Definition at line 104 of file VrmlIndexedFaceSet.cpp.

References VrmlNode::GetKeywordString(), VRML_Ccw, VRML_CoordIndex, VRML_Invalid, VRML_MaterialIndex, VRML_NormalIndex, VRML_TextureCoordIndex, VrmlKeywordCcw, VrmlKeywordCoordIndex, VrmlKeywordMaterialIndex, VrmlKeywordNormalIndex, and VrmlKeywordTextureCoordIndex.

Here is the call graph for this function:

Vector4 VrmlIndexedFaceSet::GetNormal const int  index,
VrmlStack stack
const [protected]
 

Definition at line 89 of file VrmlIndexedFaceSet.cpp.

References ComputeNormals(), m_Normals, and m_NormalsComputed.

Referenced by RenderOpenGl().

Here is the call graph for this function:

void VrmlIndexedFaceSet::Parse char *&  buffer  )  [virtual]
 

Reimplemented from VrmlNode.

Definition at line 140 of file VrmlIndexedFaceSet.cpp.

References EatWhite(), VrmlNode::GetKeyword(), and ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeColor char *&  buffer  )  [protected]
 

Definition at line 161 of file VrmlIndexedFaceSet.cpp.

References EatWhite().

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeCoord char *&  buffer  )  [protected]
 

Definition at line 173 of file VrmlIndexedFaceSet.cpp.

References VrmlNode::AddRef(), EatWhite(), VrmlNode::GetKeyword(), m_Coords, VrmlNode::ParseNode(), VRML_Define, and VRML_Use.

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeCoordIndex char *&  buffer  )  [protected]
 

Definition at line 192 of file VrmlIndexedFaceSet.cpp.

References EatWhite(), and indexes.

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeIgnore char *&  buffer  )  [protected]
 

Definition at line 228 of file VrmlIndexedFaceSet.cpp.

References EatWhite().

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeMaterialIndex char *&  buffer  )  [protected]
 

Definition at line 241 of file VrmlIndexedFaceSet.cpp.

References EatWhite().

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeNormalIndex char *&  buffer  )  [protected]
 

Definition at line 277 of file VrmlIndexedFaceSet.cpp.

References EatWhite().

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseNodeTexCoord char *&  buffer  )  [protected]
 

Definition at line 311 of file VrmlIndexedFaceSet.cpp.

References VrmlNode::AddRef(), EatWhite(), VrmlNode::GetKeyword(), m_TexCoord, VrmlNode::ParseNode(), VRML_Define, and VRML_Use.

Referenced by ParseSubnode().

Here is the call graph for this function:

void VrmlIndexedFaceSet::ParseSubnode Keyword  keyword,
char *&  buffer
[protected, virtual]
 

Definition at line 330 of file VrmlIndexedFaceSet.cpp.

References IJG_Assert, ParseNodeColor(), ParseNodeCoord(), ParseNodeCoordIndex(), ParseNodeIgnore(), ParseNodeMaterialIndex(), ParseNodeNormalIndex(), ParseNodeTexCoord(), VRML_Ccw, VRML_Color, VRML_ColorPerVertex, VRML_Convex, VRML_Coord, VRML_CoordIndex, VRML_CreaseAngle, VRML_MaterialIndex, VRML_Normal, VRML_NormalIndex, VRML_NormalPerVertex, VRML_Solid, VRML_TexCoord, VRML_TexCoordIndex, VRML_TextureCoordIndex, and VRML_Vector.

Referenced by Parse().

Here is the call graph for this function:

void VrmlIndexedFaceSet::Render VrmlStack stack  )  const [virtual]
 

Reimplemented from VrmlNode.

Definition at line 400 of file VrmlIndexedFaceSet.cpp.

References m_Coords, and VrmlNode::Render().

Referenced by RenderOpenGl(), and RenderToIGS().

Here is the call graph for this function:

void VrmlIndexedFaceSet::RenderOpenGl VrmlStack stack  )  const [virtual]
 

Reimplemented from VrmlNode.

Definition at line 413 of file VrmlIndexedFaceSet.cpp.

References VrmlCoordinate3::GetCoordinate(), GetNormal(), Matrix4x4::GetValuesOpenGl(), indexes, VrmlStack::m_Matrix, Render(), and VrmlStack::vrmlCoordinate3.

Here is the call graph for this function:

IGS_Object * VrmlIndexedFaceSet::RenderToIGS VrmlStack stack  )  const [virtual]
 

Reimplemented from VrmlNode.

Definition at line 501 of file VrmlIndexedFaceSet.cpp.

References IGS_Mesh::AddFacet(), MeshFacet::AddVertexIndex(), MeshFacet::Clear(), indexes, and Render().

Here is the call graph for this function:


Member Data Documentation

std::vector< int > VrmlIndexedFaceSet::indexes [protected]
 

Definition at line 35 of file VrmlIndexedFaceSet.h.

Referenced by ComputeNormals(), ParseNodeCoordIndex(), RenderOpenGl(), and RenderToIGS().

VrmlNode* VrmlIndexedFaceSet::m_Coords [protected]
 

Definition at line 37 of file VrmlIndexedFaceSet.h.

Referenced by ParseNodeCoord(), Render(), and ~VrmlIndexedFaceSet().

std::vector< Vector4 > VrmlIndexedFaceSet::m_Normals [mutable, protected]
 

Definition at line 36 of file VrmlIndexedFaceSet.h.

Referenced by ComputeNormals(), and GetNormal().

bool VrmlIndexedFaceSet::m_NormalsComputed [mutable, protected]
 

Definition at line 38 of file VrmlIndexedFaceSet.h.

Referenced by GetNormal().

VrmlNode* VrmlIndexedFaceSet::m_TexCoord [protected]
 

Definition at line 39 of file VrmlIndexedFaceSet.h.

Referenced by ParseNodeTexCoord(), and ~VrmlIndexedFaceSet().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 22:06:53 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO