VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
25 
26 namespace txp
27 {
28  class TXPNode;
29 }
30 
31 typedef boost::unordered_map<osg::Node*, DtTerraPageBoundingInfo> DtTerraPageNodeBoundingVolumeMap;
32 
36 {
37 public:
38 
40  txp::TXPNode* rootNode, const DtFilename& surfaceCharacterMap);
41 
43 
46 
47  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
48  DtTerrainIntersectIDType intersectId = 0);
49 
50  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
51 
52  virtual void updatePageTracker(DtTerrainIntersectIDType 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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)