Documentation


animal::octree::CGRenderingMachine Class Reference

#include <CGRenderingMachine.h>

List of all members.

Public Member Functions

 CGRenderingMachine (Octree *octree, X3DTK::X3D::IndexedFaceSet *ifs)
void initializeCg (int method)
bool cgIsInitialized () const
void structureUpdated (int method)
 What to do when the structure of the octree is updated.

void render (int method)
 Render the vertices stored in the octree with the method described in SFVec3fCellConstrained.h.


Private Member Functions

void drawMethodLinear ()
CGDatacomputeCGData (int method)
 Compute the data structure from the octree Return the modified structure.

void loadCGParameters (int method) const
 load the cg parameters found in _cgData on the video card


Private Attributes

Octree_octree
X3DTK::X3D::IndexedFaceSet * _ifs
bool _cgInitiliazed
CGData _cgData


Constructor & Destructor Documentation

animal::octree::CGRenderingMachine::CGRenderingMachine Octree octree,
X3DTK::X3D::IndexedFaceSet *  ifs
 

Definition at line 45 of file CGRenderingMachine.cpp.

References _cgData, and animal::octree::CGData::cellsVertexIDsArray.


Member Function Documentation

bool animal::octree::CGRenderingMachine::cgIsInitialized  )  const
 

Definition at line 61 of file CGRenderingMachine.cpp.

References _cgInitiliazed.

Referenced by drawMethodLinear().

CGData & animal::octree::CGRenderingMachine::computeCGData int  method  )  [private]
 

Compute the data structure from the octree Return the modified structure.

Definition at line 100 of file CGRenderingMachine.cpp.

References _cgData, _octree, animal::octree::Cell, animal::octree::CGData::cellsVertexIDs, animal::octree::CGData::cellsVertexIDsArray, animal::octree::CGData::meshPointsCell, animal::octree::CGData::meshPointsSFVCC, animal::octree::OctreeDataPoints, animal::octree::FastOctree< T, S, U >::root(), and animal::octree::CGData::verticesIDs.

Referenced by structureUpdated().

void animal::octree::CGRenderingMachine::drawMethodLinear  )  [private]
 

Definition at line 209 of file CGRenderingMachine.cpp.

References _cgData, _ifs, animal::octree::CellID, cgIsInitialized(), animal::octree::CGData::meshPointsCell, animal::octree::CGData::meshPointsSFVCC, animal::octree::ModelViewProj, Require, animal::octree::vProfile, and animal::octree::vProgram.

Referenced by render().

void animal::octree::CGRenderingMachine::initializeCg int  method  ) 
 

Definition at line 53 of file CGRenderingMachine.cpp.

References _cgInitiliazed, animal::octree::InitializeCgGL(), and structureUpdated().

void animal::octree::CGRenderingMachine::loadCGParameters int  method  )  const [private]
 

load the cg parameters found in _cgData on the video card

Definition at line 193 of file CGRenderingMachine.cpp.

References animal::octree::LINEAR, and animal::octree::ModelViewProj.

Referenced by structureUpdated().

void animal::octree::CGRenderingMachine::render int  method  ) 
 

Render the vertices stored in the octree with the method described in SFVec3fCellConstrained.h.

Definition at line 67 of file CGRenderingMachine.cpp.

References _octree, drawMethodLinear(), animal::octree::LINEAR, and Require.

void animal::octree::CGRenderingMachine::structureUpdated int  method  ) 
 

What to do when the structure of the octree is updated.

Definition at line 92 of file CGRenderingMachine.cpp.

References computeCGData(), and loadCGParameters().

Referenced by initializeCg().


Member Data Documentation

CGData animal::octree::CGRenderingMachine::_cgData [private]
 

Definition at line 72 of file CGRenderingMachine.h.

Referenced by CGRenderingMachine(), computeCGData(), and drawMethodLinear().

bool animal::octree::CGRenderingMachine::_cgInitiliazed [private]
 

Definition at line 70 of file CGRenderingMachine.h.

Referenced by cgIsInitialized(), and initializeCg().

X3DTK::X3D::IndexedFaceSet* animal::octree::CGRenderingMachine::_ifs [private]
 

Definition at line 68 of file CGRenderingMachine.h.

Referenced by drawMethodLinear().

Octree* animal::octree::CGRenderingMachine::_octree [private]
 

Definition at line 67 of file CGRenderingMachine.h.

Referenced by computeCGData(), and render().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:32 2004 by doxygen 1.3.6