VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | 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]

Classes

struct  NodePagingRecord

Public Types

typedef std::vector
< NodePagingRecord
NodePagingRecords

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 *)
 Produce a node from a filepath.
virtual bool shouldExit () const
 Should the traversal quit.
- 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

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

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 *   
)
protectedvirtual

Produce a node from a filepath.

Default calls osgDB::readNodeFile.

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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)