VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metaflightTerrainSourcePager.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 
16 
18 
20 {
25 };
26 
27 typedef boost::unordered_map<makVrv::DtHierarchicalPagedLod*, DtMetaflightBoundingInfo> DtHierNodeBoundingVolumeMap;
28 
32 {
33 public:
34 
36  osg::Group* rootNode, const DtFilename& surfaceCharacterMap);
37 
39 
42 
43  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
44  DtTerrainIntersectIDType intersectId = 0);
45 
46  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
47 
48  virtual void updatePageTracker(DtTerrainIntersectIDType intersectId = 0);
49 
52  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
53  DtVantageTerrainEngine* terrainEngine, const DtFilename& surfaceCharacterMap);
54 
55 protected:
56 
58  {
59  public:
61  virtual ~DtMetaflightTerrainVisitor();
62 
64  virtual void apply(osg::Group& node);
65 
66  protected:
67  virtual void indent();
68 
69  public:
71  };
72 
73 protected:
74  osg::Group* myRootNode;
75 
76 
82 };
83 
85 
DtBoost::shared_ptr< DtNodeBoundingInfo > DtNodeBoundingInfoPtr
Definition: boundingNodeInfo.h:87
DtBoost::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:46
virtual bool pageOutNodes(std::list< DtNodeId > &nodesToRemove)=0
This function must cause the page out of the nodeIds specified. It should return true when successful...
DtTerrainSourcePager is the base class for terrain pagers. There will be one terrainSourcePager per t...
Definition: terrainSourcePager.h:58
DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains...
Definition: metaflightTerrainSourcePager.h:31
boost::unordered_map< makVrv::DtHierarchicalPagedLod *, DtMetaflightBoundingInfo > DtHierNodeBoundingVolumeMap
Definition: metaflightTerrainSourcePager.h:27
virtual void updatePageTracker(DtTerrainIntersectIDType intersectId=0)=0
DtNodeBoundingInfoPtr boundingInfo
Definition: metaflightTerrainSourcePager.h:21
virtual DtTerrainSourceTracker * createTerrainSourceTracker(DtVantageTerrainEngine *)=0
Creates and returns a DtTerrainSourceTracker.
DtHierNodeBoundingVolumeMap myPagedOutNodes
Definition: metaflightTerrainSourcePager.h:80
Contains makVrv::DtHierarchicalPagedLod class.
DtHierNodeBoundingVolumeMap myPagedInNodes
This is the list of nodes for only the LODs that we will page into the terrain.
Definition: metaflightTerrainSourcePager.h:79
Definition: metaflightTerrainSourcePager.h:19
int myIndentLevel
Definition: metaflightTerrainSourcePager.h:70
Visitor class used to find the active paged of a OSG scene graph.
Definition: boundingVolumeTerrainSourcePager.h:48
Base class for Terrain Source trackers. Determines if the necessary data To perform an intersection i...
Definition: terrainSourceTracker.h:75
virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry, DtTerrainIntersectIDType intersectId=0)=0
This function must page in all the geometry specified by the argument, and return true when successfu...
bool boundingInfoFromGeometry
This indicates whether the above bounding info has been set after the geometry for the node was read ...
Definition: metaflightTerrainSourcePager.h:24
Definition: metaflightTerrainSourcePager.h:57
DtBoundingVolumeTerrainSourcePager is a derived terrainSourcePager that handles a source such as meta...
Definition: boundingVolumeTerrainSourcePager.h:21
#define DT_DLL_vantageTerrainImplementation
This file is used to determine how to build.
Definition: vantageTerrainImplementationDefines.h:28
DtFilename mySurfaceCharacterMap
Definition: metaflightTerrainSourcePager.h:81
osg::Group * myRootNode
Definition: metaflightTerrainSourcePager.h:74
This class wraps the VR-Vantage Display Engine, and uses as a terrain loader and intersector. This is the terrain engine that powers the DtVantageTerrainImplementation. The DtVantageTerrainEngine runs the DtDe it its own thread, and processes commands thought the command queue.
Definition: vantageTerrainEngine.h:99

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)