VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtPageInVisitor Class Reference

OSG Visitor class which pages the highest level of detail of paged LOD nodes in. More...

Inheritance diagram for DtPageInVisitor:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::list< std::pair
< osg::Node *, int > > 
DtNodeChildList

Public Member Functions

 DtPageInVisitor ()
virtual void apply (osg::Group &node)
virtual void apply (osg::Geode &node)
virtual void apply (osg::LOD &node)
virtual void apply (osg::PagedLOD &node)
virtual void apply (osg::CoordinateSystemNode &node)
virtual unsigned int numNodesRequested () const
virtual const DtNodeChildListnodesRequested () const
virtual bool allDataPagedIn () const
 May be called after applying this visitor.
virtual int pagedLodCount () const

Protected Member Functions

virtual bool requiresPageIn (osg::Node &node)

Protected Attributes

DtNodeChildList myPagedNodesRequested
 This holds pointers to all the paged LOD nodes that have requests for paging in initiated by this visitor.
bool myAllDataPagedIn
int myPagedLodCount

Detailed Description

OSG Visitor class which pages the highest level of detail of paged LOD nodes in.

This is a base class, intended to be overridden. This base class will cause paging in of every paged LOD node. Subclasses may be more selective by overriding requiresPageIn().


Member Typedef Documentation

typedef std::list<std::pair<osg::Node*, int> > DtPageInVisitor::DtNodeChildList

Constructor & Destructor Documentation


Member Function Documentation

virtual void DtPageInVisitor::apply ( osg::Group &  node) [virtual]
virtual void DtPageInVisitor::apply ( osg::Geode &  node) [virtual]
virtual void DtPageInVisitor::apply ( osg::LOD &  node) [virtual]
virtual void DtPageInVisitor::apply ( osg::PagedLOD &  node) [virtual]
virtual void DtPageInVisitor::apply ( osg::CoordinateSystemNode &  node) [virtual]
virtual unsigned int DtPageInVisitor::numNodesRequested ( ) const [virtual]
virtual const DtNodeChildList& DtPageInVisitor::nodesRequested ( ) const [virtual]
virtual bool DtPageInVisitor::allDataPagedIn ( ) const [virtual]

May be called after applying this visitor.

Returns:
True if all the data required is already paged in.
virtual int DtPageInVisitor::pagedLodCount ( ) const [virtual]
Returns:
the number of paged LOD nodes that were visited.
virtual bool DtPageInVisitor::requiresPageIn ( osg::Node &  node) [protected, virtual]
Returns:
True if this node should be paged in. This is overridden in subclasses, depending on how the paging is being implemented. Default implementation returns true, which pages in the entire database.

Reimplemented in DtGeometryPageInVisitor.


Member Data Documentation

This holds pointers to all the paged LOD nodes that have requests for paging in initiated by this visitor.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)