vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
APFFDEditor::GeometryLoaderBase Class Reference

#include <GeometryLoaderBase.h>

Classes

struct  FaceBase
 
struct  VertexBase
 

Public Member Functions

 GeometryLoaderBase ()
 
 ~GeometryLoaderBase ()
 
virtual bool loadXMLParameters (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
 
virtual unsigned long getVertexStructureSize ()
 
virtual void allocateVertexArray (unsigned long numVertices)
 
virtual void deallocateVertexArray ()
 
virtual unsigned long getFaceStructureSize ()
 
virtual void allocateFaceArray (unsigned long numFaces)
 
virtual void deallocateFaceArray ()
 
void * getFace (unsigned long index)
 
void * getVertex (unsigned long index)
 
unsigned long getFaceCount ()
 
unsigned long getVertexCount ()
 
void debugWriteNormals ()
 

Protected Member Functions

bool getOSGInitCounts (osg::Node *pNode, unsigned long &pVertexCount, unsigned long &pPrimitiveCount)
 Returns counts of vertices and primitives stored in OSG node. More...
 
virtual bool loadGeometry (osg::Node *pNode)
 
bool loadGeometryHelper (osg::Node *pNode, osg::Matrix &transform, unsigned long &vertex_pos, unsigned long &face_pos)
 
osg::Vec3 * getNormalByIndex (osg::Geometry::AttributeBinding normalBinding, osg::Vec3Array *pNormArray, osg::IndexArray *pNormIndices, unsigned long index)
 
void sortVerticesClockwise ()
 
virtual void destroyGeometry ()
 
void recalculateNormals ()
 

Protected Attributes

void * faces
 
unsigned long face_count
 
unsigned long face_size
 
void * vertices
 
unsigned long vertex_count
 
unsigned long vertex_size
 
bool bRecalculateNormals
 
vrecko::EnvironmentObjectthisOwnerPtr
 

Constructor & Destructor Documentation

APFFDEditor::GeometryLoaderBase::GeometryLoaderBase ( )
APFFDEditor::GeometryLoaderBase::~GeometryLoaderBase ( )

Member Function Documentation

virtual void APFFDEditor::GeometryLoaderBase::allocateFaceArray ( unsigned long  numFaces)
inlinevirtual
virtual void APFFDEditor::GeometryLoaderBase::allocateVertexArray ( unsigned long  numVertices)
inlinevirtual
virtual void APFFDEditor::GeometryLoaderBase::deallocateFaceArray ( )
inlinevirtual
virtual void APFFDEditor::GeometryLoaderBase::deallocateVertexArray ( )
inlinevirtual
void APFFDEditor::GeometryLoaderBase::debugWriteNormals ( )
void APFFDEditor::GeometryLoaderBase::destroyGeometry ( )
protectedvirtual
void* APFFDEditor::GeometryLoaderBase::getFace ( unsigned long  index)
inline
unsigned long APFFDEditor::GeometryLoaderBase::getFaceCount ( )
inline
virtual unsigned long APFFDEditor::GeometryLoaderBase::getFaceStructureSize ( )
inlinevirtual
osg::Vec3 * APFFDEditor::GeometryLoaderBase::getNormalByIndex ( osg::Geometry::AttributeBinding  normalBinding,
osg::Vec3Array *  pNormArray,
osg::IndexArray *  pNormIndices,
unsigned long  index 
)
inlineprotected
bool APFFDEditor::GeometryLoaderBase::getOSGInitCounts ( osg::Node *  pNode,
unsigned long &  pVertexCount,
unsigned long &  pPrimitiveCount 
)
protected

Returns counts of vertices and primitives stored in OSG node.

void* APFFDEditor::GeometryLoaderBase::getVertex ( unsigned long  index)
inline
unsigned long APFFDEditor::GeometryLoaderBase::getVertexCount ( )
inline
virtual unsigned long APFFDEditor::GeometryLoaderBase::getVertexStructureSize ( )
inlinevirtual
bool APFFDEditor::GeometryLoaderBase::loadGeometry ( osg::Node *  pNode)
protectedvirtual
bool APFFDEditor::GeometryLoaderBase::loadGeometryHelper ( osg::Node *  pNode,
osg::Matrix &  transform,
unsigned long &  vertex_pos,
unsigned long &  face_pos 
)
protected
bool APFFDEditor::GeometryLoaderBase::loadXMLParameters ( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  node)
virtual
void APFFDEditor::GeometryLoaderBase::recalculateNormals ( )
protected
void APFFDEditor::GeometryLoaderBase::sortVerticesClockwise ( )
protected

Member Data Documentation

bool APFFDEditor::GeometryLoaderBase::bRecalculateNormals
protected
unsigned long APFFDEditor::GeometryLoaderBase::face_count
protected
unsigned long APFFDEditor::GeometryLoaderBase::face_size
protected
void* APFFDEditor::GeometryLoaderBase::faces
protected
vrecko::EnvironmentObject* APFFDEditor::GeometryLoaderBase::thisOwnerPtr
protected
unsigned long APFFDEditor::GeometryLoaderBase::vertex_count
protected
unsigned long APFFDEditor::GeometryLoaderBase::vertex_size
protected
void* APFFDEditor::GeometryLoaderBase::vertices
protected

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