VR-Forces 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 
17 
19 
21 {
26 };
27 
28 typedef boost::unordered_map<makVrv::DtHierarchicalPagedLod*, DtMetaflightBoundingInfo> DtHierNodeBoundingVolumeMap;
29 
33 {
34 public:
35 
37  osg::Group* rootNode, makVrf::DtSurfaceCharacteristicMapConstPtr surfaceCharacterMap);
38 
40 
43 
44  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
45  DtTerrainIntersectIDType intersectId = 0);
46 
47  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove);
48 
49  virtual void updatePageTracker(DtTerrainIntersectIDType intersectId = 0);
50 
53  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
54  DtVantageTerrainEngine* terrainEngine, makVrf::DtSurfaceCharacteristicMapConstPtr surfaceCharacterMap);
55 
56 protected:
57 
59  {
60  public:
62  virtual ~DtMetaflightTerrainVisitor();
63 
65  virtual void apply(osg::Group& node);
66 
67  protected:
68  virtual void indent();
69 
70  public:
72  };
73 
74 protected:
75  osg::Group* myRootNode;
76 
77 
83 };
84 
86 
DtBoost::shared_ptr< DtNodeBoundingInfo > DtNodeBoundingInfoPtr
Definition: boundingNodeInfo.h:85
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:32
boost::unordered_map< makVrv::DtHierarchicalPagedLod *, DtMetaflightBoundingInfo > DtHierNodeBoundingVolumeMap
Definition: metaflightTerrainSourcePager.h:28
makVrf::DtSurfaceCharacteristicMapConstPtr mySurfaceCharacterMap
Definition: metaflightTerrainSourcePager.h:82
virtual void updatePageTracker(DtTerrainIntersectIDType intersectId=0)=0
unsigned long long DtTerrainIntersectIDType
Definition: terrainInterfaceDefines.h:28
DtNodeBoundingInfoPtr boundingInfo
Definition: metaflightTerrainSourcePager.h:22
virtual DtTerrainSourceTracker * createTerrainSourceTracker(DtVantageTerrainEngine *)=0
Creates and returns a DtTerrainSourceTracker.
DtHierNodeBoundingVolumeMap myPagedOutNodes
Definition: metaflightTerrainSourcePager.h:81
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:80
DtBoost::shared_ptr< const DtSurfaceCharacteristicMap > DtSurfaceCharacteristicMapConstPtr
Definition: surfaceCharacteristicsMap.h:31
Definition: metaflightTerrainSourcePager.h:20
int myIndentLevel
Definition: metaflightTerrainSourcePager.h:71
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:25
Definition: metaflightTerrainSourcePager.h:58
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
osg::Group * myRootNode
Definition: metaflightTerrainSourcePager.h:75
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:109

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)