#include <LodGrid.h>
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 |
| vtHeightField3d * | m_pHeightField |
Additional Inherited Members | |
Public Attributes inherited from NodeExtension | |
| osg::Node * | m_pNode |
| bool | m_bCastShadow |
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.
1.8.4