OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Terrain::RootNode Class Reference
Inheritance diagram for Terrain::RootNode:
Collaboration diagram for Terrain::RootNode:

Public Member Functions

 RootNode (float size, const osg::Vec2f &center)
 
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 &center)
 
virtual ~QuadTreeNode ()
 
QuadTreeNodegetParent ()
 
QuadTreeNodegetChild (unsigned int i)
 
ChildDirection getDirection ()
 Returns our direction relative to the parent node, or Root if we are the root node. More...
 
QuadTreeNodegetNeighbour (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...
 
LodCallbackgetLodCallback ()
 
void setViewDataMap (ViewDataMap *map)
 Set the view data map that the finally used nodes for a given camera/intersection are pushed onto. More...
 
ViewDataMapgetViewDataMap ()
 
ViewDatagetView (osg::NodeVisitor &nv)
 Create or retrieve a view for the given traversal. More...
 

Private Attributes

QuadTreeWorldmWorld
 

Constructor & Destructor Documentation

Terrain::RootNode::RootNode ( float  size,
const osg::Vec2f &  center 
)
inline

Member Function Documentation

virtual void Terrain::RootNode::accept ( osg::NodeVisitor &  nv)
inlinevirtual

Here is the call graph for this function:

void Terrain::RootNode::setWorld ( QuadTreeWorld world)
inline

Member Data Documentation

QuadTreeWorld* Terrain::RootNode::mWorld
private

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