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

Public Member Functions

bool TestVisible (float fDistance, bool bLoad)
 
- Public Member Functions inherited from vtLOD
void SetCenter (const FPoint3 &center)
 Set the location of the LOD's center. Distance from this center determines detail.
 
void GetCenter (FPoint3 &center)
 Get the location of the LOD's center.
 
- 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

A vtPagedStructureLOD node controls the visibility of its child nodes.

You set a single distance value (range) for all the children, which is the distance from the camera at which all nodes will be rendered.

Member Function Documentation

bool vtPagedStructureLOD::TestVisible ( float  fDistance,
bool  bLoad 
)
Parameters
fDistanceThe distance in meters to check against.
bLoadIf true, and this cell is within the distance, and it isn't loaded, then load it.