VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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. 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().

Inheritance diagram for DtPageInVisitor:
Inheritance graph
[legend]

Public Member Functions

 DtPageInVisitor ()
 
 DtPageInVisitor (const osg::Matrix &)
 
virtual void apply (osg::LOD &node)
 
virtual void apply (osg::PagedLOD &node)
 
const NodePagingRecordspagedInNodes () const
 
- Public Member Functions inherited from DtMaintainMatrixVisitor
 DtMaintainMatrixVisitor ()
 
 DtMaintainMatrixVisitor (const osg::Matrix &)
 
virtual void apply (osg::Transform &node)
 

Protected Member Functions

virtual bool requiresPageIn (const osg::BoundingSphere &)
 
virtual osg::Node * getNode (const std::string &filepath, const osgDB::Options *, bool &valid)
 
virtual bool shouldExit () const
 
- Protected Member Functions inherited from DtMaintainMatrixVisitor
virtual osg::BoundingSphere worldRefNodeBounds (osg::Node &node)
 

Protected Attributes

NodePagingRecords myPagedInNodes
 
- Protected Attributes inherited from DtMaintainMatrixVisitor
osg::Matrix myMatrix
 

Constructor & Destructor Documentation

DtPageInVisitor::DtPageInVisitor ( )
DtPageInVisitor::DtPageInVisitor ( const osg::Matrix &  )
explicit

Member Function Documentation

virtual void DtPageInVisitor::apply ( osg::LOD &  node)
virtual
virtual void DtPageInVisitor::apply ( osg::PagedLOD &  node)
virtual
const NodePagingRecords& DtPageInVisitor::pagedInNodes ( ) const
inline
virtual bool DtPageInVisitor::requiresPageIn ( const osg::BoundingSphere &  )
protectedvirtual
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.

virtual osg::Node* DtPageInVisitor::getNode ( const std::string &  filepath,
const osgDB::Options *  ,
bool valid 
)
protectedvirtual

Produce a node from a filepath. Default calls osgDB::readNodeFile. If a node cannot be created then a dummy node (an empty group) will be returned and the valid parameter will be set to false (true if otherwise)

virtual bool DtPageInVisitor::shouldExit ( ) const
protectedvirtual

Should the traversal quit. Used to bail out when exiting.

Member Data Documentation

NodePagingRecords DtPageInVisitor::myPagedInNodes
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)