VR-Forces 4.3 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 
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  DtTerrainIntersectIDType intersectId = 0);
47 
48  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
49 
50  virtual void updatePageTracker(DtTerrainIntersectIDType intersectId = 0);
51 
54  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
55  DtVantageTerrainEngine* terrainEngine, const DtFilename& surfaceCharacterMap);
56 
61 
62  static DtNodeId osgNodeId(osg::Node* node);
63  static osg::Node* nodeFromId(DtNodeId nodeId);
65 
66  virtual void traverseChildAndLoad(osg::Group*);
67 
68 protected:
70 
75 
77 };
78 
80 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)