VR-Forces 4.1 Class Documentation
pagedLodTerrainSourcePager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 
18 
22 {
23 public:
24 
25  DtPagedLodTerrainSourcePager(DtVantageTerrainEngine* terrainEngine, osg::Group* rootNode);
26 
28 
31 
32  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
33  const unsigned int intersectId = 0);
34 
35  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
36 
37  virtual void updateTerrain(const unsigned int intersectId = 0);
38 
40  virtual void updatePageTracker(const unsigned int intersectId = 0);
41 
44  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
45  DtVantageTerrainEngine* terrainEngine);
46 
47 protected:
49  osg::Node* terrainRoot();
50 
51  virtual bool pageInData(DtPageInVisitor& visitor);
52 
57 
58  static DtNodeId osgNodeId(osg::Node* node);
59  static osg::Node* nodeFromId(DtNodeId nodeId);
61 
62 protected:
63 
65  osg::Node* myRootNode;
66 
69 
72  {
73  public:
74  DtActivePageVisitor(unsigned int intersectId = 0);
75  virtual void apply(osg::Group& node);
76  virtual void apply(osg::LOD& node);
77  virtual void apply(osg::PagedLOD& node);
78  };
79 
80 };
81 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)