vtlib library
Public Member Functions | List of all members
vtPagedStructureLodGrid Class Reference
Inheritance diagram for vtPagedStructureLodGrid:
Inheritance graph
[legend]

Public Member Functions

void RefreshPaging (vtStructureArray3d *pArray)
 
vtPagedStructureLODFindGroup (vtStructure *str)
 
- Public Member Functions inherited from NodeExtension
void SetEnabled (bool bOn)
 
bool GetEnabled () const
 
void SetCastShadow (bool b)
 Set this node to cast a shadow, if it is under a vtShadow node. Default is false.
 
bool GetCastShadow ()
 Get whether this node casts a shadow.
 
void GetBoundSphere (FSphere &sphere, bool bGlobal=false)
 Get the Bounding Sphere of the node.
 

Detailed Description

vtPagedStructureLodGrid provides a more complex implementation of vtLodGrid.

Like vtSimpleLodGrid, 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. Additionally, the cells can contain structures (vtStructure) which are not constructed until the cell is visible.

Member Function Documentation

vtPagedStructureLOD * vtPagedStructureLodGrid::FindGroup ( vtStructure str)

For a given vtStructure, find the lod group parent for it, using the structure's earth extents.

void vtPagedStructureLodGrid::RefreshPaging ( vtStructureArray3d pArray)

In case the paging grid did not load some structure before (because the structures were hidden), tell it to check again. You should call this when a structure layer becomes enabled (un-hidden).