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 
16 
18 
19 
21 
23 {
28 };
29 
30 typedef std::unordered_map<makVrv::DtHierarchicalPagedLod*, DtMetaflightBoundingInfo> DtHierNodeBoundingVolumeMap;
31 
35 {
36 public:
37 
39  osg::Group* rootNode, makVrf::DtSurfaceCharacteristicMapConstPtr surfaceCharacterMap);
40 
41  virtual ~DtMetaflightTerrainSourcePager() override;
42 
45 
46  virtual bool pageInGeometry(
47  const DtTerrainPagingGeometryPtr geometry, DtTerrainIntersectIDType intersectId = 0) override;
48 
49  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove) override;
50 
51  virtual void updatePageTracker(DtTerrainIntersectIDType intersectId = 0) override;
52 
53  virtual DtString type() const override;
54 
57  static DtTerrainSourcePager* terrainChooserFunction(osg::Node& node,
58  DtVantageTerrainEngine* terrainEngine, makVrf::DtSurfaceCharacteristicMapConstPtr surfaceCharacterMap);
59 
60 protected:
61 
63  {
64  public:
66  virtual ~DtMetaflightTerrainVisitor() override;
67 
69  virtual void apply(osg::Group& node) override;
70 
71  protected:
72  virtual void indent();
73 
74  public:
76  };
77 
78 protected:
79  osg::Group* myRootNode;
80 
81 
87 };
88 
90 
std::shared_ptr< const DtSurfaceCharacteristicMap > DtSurfaceCharacteristicMapConstPtr
Definition: surfaceCharacteristicsMap.h:36
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:56
DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains...
Definition: metaflightTerrainSourcePager.h:34
makVrf::DtSurfaceCharacteristicMapConstPtr mySurfaceCharacterMap
Definition: metaflightTerrainSourcePager.h:86
unsigned long long DtTerrainIntersectIDType
Definition: terrainInterfaceDefines.h:28
virtual DtString type() const =0
DtNodeBoundingInfoPtr boundingInfo
Definition: metaflightTerrainSourcePager.h:24
virtual DtTerrainSourceTracker * createTerrainSourceTracker(DtVantageTerrainEngine *)=0
Creates and returns a DtTerrainSourceTracker.
DtHierNodeBoundingVolumeMap myPagedOutNodes
Definition: metaflightTerrainSourcePager.h:85
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:84
std::unordered_map< makVrv::DtHierarchicalPagedLod *, DtMetaflightBoundingInfo > DtHierNodeBoundingVolumeMap
Definition: metaflightTerrainSourcePager.h:30
std::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:46
Definition: metaflightTerrainSourcePager.h:22
int myIndentLevel
Definition: metaflightTerrainSourcePager.h:75
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...
std::shared_ptr< DtNodeBoundingInfo > DtNodeBoundingInfoPtr
Definition: boundingNodeInfo.h:94
bool boundingInfoFromGeometry
This indicates whether the above bounding info has been set after the geometry for the node was read ...
Definition: metaflightTerrainSourcePager.h:27
Definition: metaflightTerrainSourcePager.h:62
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:79
virtual void updatePageTracker(DtTerrainIntersectIDType intersectId=0) override=0
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:112

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)