VR-Forces 4.2 Class Documentation
terrapageTerrainSourcePager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
15 
17 {
22 };
23 
24 namespace txp
25 {
26  class TXPNode;
27 }
28 
29 typedef boost::unordered_map<osg::Node*, DtTerraPageBoundingInfo> DtTerraPageNodeBoundingVolumeMap;
30 
34 {
35 public:
36 
38  txp::TXPNode* rootNode, const DtFilename& surfaceCharacterMap);
39 
41 
44 
45  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
46  const unsigned int intersectId = 0);
47 
48  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
49 
50  virtual void updateTerrain(const unsigned int intersectId = 0);
51 
52  virtual void updatePageTracker(const unsigned int intersectId = 0);
53 
56  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
57  DtVantageTerrainEngine* terrainEngine, const DtFilename& surfaceCharacterMap);
58 
63 
64  static DtNodeId osgNodeId(osg::Node* node);
65  static osg::Node* nodeFromId(DtNodeId nodeId);
67 
68  virtual void traverseChildAndLoad(osg::Group*);
69 
70 protected:
72 
77 
79 };
80 
82 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)