VR-Forces 5.0.3 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 Attributes
PagedNode2LoadDataVisitor Class Reference

Visitor that load all the pagedNode2 data that intersecting with an area.

Inheritance diagram for PagedNode2LoadDataVisitor:
Inheritance graph
[legend]

Public Member Functions

 PagedNode2LoadDataVisitor (const Coordinate_System *cs, DtTerrainPagingGeometryPtr geometry)
 
bool isFullyLoaded () const
 
void apply (osg::Node &node)
 
void apply (osgEarth::PagedNode2 &pagedNode)
 
void apply (osg::PagedLOD &node)
 
void apply (osg::LightSource &ls)
 
void manualUpdate ()
 
void reset ()
 
size_t count ()
 
void setNodePathHint (const std::stack< osg::ref_ptr< osg::Node > > &hint)
 
- Public Member Functions inherited from DtGeometryPageInVisitor
 DtGeometryPageInVisitor (const Coordinate_System *cs, const DtTerrainPagingGeometryPtr geometry)
 
 DtGeometryPageInVisitor (const Coordinate_System *cs, DtTerrainPagingGeometryPtr geometry, const osg::Matrix &)
 
DtTerrainPagingGeometryPtr getGeometry ()
 
- Public Member Functions inherited from DtPageInVisitor
 DtPageInVisitor ()
 
 DtPageInVisitor (const osg::Matrix &)
 
virtual void apply (osg::LOD &node)
 
const NodePagingRecordspagedInNodes () const
 
- Public Member Functions inherited from DtMaintainMatrixVisitor
 DtMaintainMatrixVisitor ()
 
 DtMaintainMatrixVisitor (const osg::Matrix &)
 
virtual void apply (osg::Transform &node)
 

Protected Attributes

bool myFullyLoaded
 
std::set< osg::ref_ptr
< osgEarth::PagingManager > > 
myPagingManagers
 
std::set< std::string > myLoadingList
 
std::stack< osg::ref_ptr
< osg::Node > > 
myNodePathHint
 
size_t myCount
 
- Protected Attributes inherited from DtGeometryPageInVisitor
DtTerrainPagingGeometryPtr myGeometry
 
const Coordinate_SystemmyCoordinateSystem
 
- Protected Attributes inherited from DtPageInVisitor
NodePagingRecords myPagedInNodes
 
- Protected Attributes inherited from DtMaintainMatrixVisitor
osg::Matrix myMatrix
 

Additional Inherited Members

- Protected Member Functions inherited from DtGeometryPageInVisitor
virtual bool requiresPageIn (const osg::BoundingSphere &)
 
- Protected Member Functions inherited from DtPageInVisitor
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)
 

Constructor & Destructor Documentation

PagedNode2LoadDataVisitor::PagedNode2LoadDataVisitor ( const Coordinate_System cs,
DtTerrainPagingGeometryPtr  geometry 
)

Member Function Documentation

bool PagedNode2LoadDataVisitor::isFullyLoaded ( ) const
void PagedNode2LoadDataVisitor::apply ( osg::Node &  node)
void PagedNode2LoadDataVisitor::apply ( osgEarth::PagedNode2 &  pagedNode)
void PagedNode2LoadDataVisitor::apply ( osg::PagedLOD &  node)
virtual

Overwrite PagedLOD so no code from the base classes are executed.

Reimplemented from DtPageInVisitor.

void PagedNode2LoadDataVisitor::apply ( osg::LightSource &  ls)
void PagedNode2LoadDataVisitor::manualUpdate ( )
void PagedNode2LoadDataVisitor::reset ( )
size_t PagedNode2LoadDataVisitor::count ( )
inline
void PagedNode2LoadDataVisitor::setNodePathHint ( const std::stack< osg::ref_ptr< osg::Node > > &  hint)
inline

Member Data Documentation

bool PagedNode2LoadDataVisitor::myFullyLoaded
protected

Fully loaded is initially set to true then when traversing the scene graph it will check if all intersecting nodes are loaded, if one is not loaded it will be set to false.

std::set< osg::ref_ptr < osgEarth::PagingManager> > PagedNode2LoadDataVisitor::myPagingManagers
protected
std::set< std::string > PagedNode2LoadDataVisitor::myLoadingList
protected
std::stack<osg::ref_ptr<osg::Node> > PagedNode2LoadDataVisitor::myNodePathHint
protected
size_t PagedNode2LoadDataVisitor::myCount
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)