OpenMW
|
Public Member Functions | |
RootNode (float size, const osg::Vec2f ¢er) | |
void | setWorld (QuadTreeWorld *world) |
virtual void | accept (osg::NodeVisitor &nv) |
Public Member Functions inherited from Terrain::QuadTreeNode | |
QuadTreeNode (QuadTreeNode *parent, ChildDirection dir, float size, const osg::Vec2f ¢er) | |
virtual | ~QuadTreeNode () |
QuadTreeNode * | getParent () |
QuadTreeNode * | getChild (unsigned int i) |
ChildDirection | getDirection () |
Returns our direction relative to the parent node, or Root if we are the root node. More... | |
QuadTreeNode * | getNeighbour (Direction dir) |
Get neighbour node in this direction. More... | |
void | initNeighbours () |
Initialize neighbours - do this after the quadtree is built. More... | |
void | setBoundingBox (const osg::BoundingBox &boundingBox) |
const osg::BoundingBox & | getBoundingBox () const |
bool | hasValidBounds () const |
virtual osg::BoundingSphere | computeBound () const |
float | getSize () const |
size in cell coordinates More... | |
const osg::Vec2f & | getCenter () const |
center in cell coordinates More... | |
virtual void | traverse (osg::NodeVisitor &nv) |
void | setLodCallback (LodCallback *lodCallback) |
Set the Lod callback to use for determining when to stop traversing further down the quad tree. More... | |
LodCallback * | getLodCallback () |
void | setViewDataMap (ViewDataMap *map) |
Set the view data map that the finally used nodes for a given camera/intersection are pushed onto. More... | |
ViewDataMap * | getViewDataMap () |
ViewData * | getView (osg::NodeVisitor &nv) |
Create or retrieve a view for the given traversal. More... | |
Private Attributes | |
QuadTreeWorld * | mWorld |
|
inline |
|
inlinevirtual |
|
inline |
|
private |