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

#include <PagedLodGrid.h>

Inheritance diagram for vtPagedStructureLOD:
vtLOD NodeExtension

Public Member Functions

void SetRange (float range)
 
bool TestVisible (float fDistance, bool bLoad)
 
void Add (vtStructureArray3d *pArray, int iIndex)
 
void Remove (vtStructureArray3d *pArray, int iIndex)
 
void SetGrid (vtPagedStructureLodGrid *g)
 
void AppendToQueue ()
 
virtual void traverse (osg::NodeVisitor &nv)
 
- 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.
 
void SetOsgNode (osg::Node *n)
 

Public Attributes

StructureRefVector m_StructureRefs
 
int m_iNumConstructed
 
bool m_bAddedToQueue
 

Protected Attributes

float m_fRange
 
vtPagedStructureLodGridm_pGrid
 

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.

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