Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtSimpleLodGrid Class Reference

#include <LodGrid.h>

Inheritance diagram for vtSimpleLodGrid:
vtLodGrid vtGroup NodeExtension

Public Member Functions

void Setup (const FPoint3 &origin, const FPoint3 &size, int iDimension, float fLODDistance, vtHeightField3d *pHF=NULL)
 
void SetDistance (float fLODDistance)
 
- Public Member Functions inherited from vtLodGrid
bool AddToGrid (osg::Node *pNode)
 
void RemoveFromGrid (osg::Node *pNode)
 
float GetDistance ()
 
int GetDimension ()
 
FPoint3 GetCellSize ()
 

Protected Member Functions

osg::Group * FindCellParent (const FPoint3 &point)
 
void AllocateCell (int a, int b)
 
osg::Group * GetCell (int a, int b)
 
- Protected Member Functions inherited from vtLodGrid
void DetermineCell (const FPoint3 &pos, int &a, int &b)
 

Protected Attributes

vtLOD ** m_pCells
 
- Protected Attributes inherited from vtLodGrid
FPoint3 m_origin
 
FPoint3 m_size
 
FPoint3 m_step
 
int m_dim
 
float m_fLODDistance
 
vtHeightField3dm_pHeightField
 

Additional Inherited Members

- Public Attributes inherited from NodeExtension
osg::Node * m_pNode
 
bool m_bCastShadow
 

Detailed Description

vtSimpleLodGrid provides a very simple implementation of vtLodGrid.

It consists of a 2D grid of LOD nodes, each covering a rectangular cell, which causes that cell's children to only be shown when within a given distance.


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