VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
osgEarthVegetationLayerSourceTracker.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
15 
16 #include <osgEarth/Profile>
17 #include <geometry/chord.h>
18 
19 #include <boost/ptr_container/ptr_vector.hpp>
20 
24 
26 {
27 public:
28 
31  osgEarth::MapNode* mapNode);
32 
34  virtual ~DtOsgEarthVegetationLayerSourceTracker() override;
35 
36  virtual DtTerrainCategoryMask terrainCategories() const override;
37 
40  virtual bool init(DtTerrainSourcePager&) override;
41 
49  virtual void pageInData(DtPagingMetaDataPtr metaData, DtTerrainPagingGeometryPtr geometry) override;
50 
53  virtual void pageOutOldestData(const int priority) override;
54 
56  virtual void getProceduralTreeTile(DtDebugDrawTerrainOutputInterface::terrainLineList& nodeBoundingList) override;
57 
59  virtual std::vector<IndexConfig<DtOsgEarthVegetationLayerSourceTracker>> getIndexConfigInfoForLayer(
60  const osgEarth::Procedural::VegetationLayer& layer) const;
61 
63  virtual void readIndex(
65  unsigned layerNumber,
67 
70  //virtual bool readIndexLayers(osgEarth::ElevationLayerVector& flattenedElevationLayers);
71  virtual bool readIndexLayers();
72 
73 
74 protected:
75 
76  virtual DtVegetationLayerPageInTilesCommand* createVegetationLayerPageInTilesCommand(DtPagingMetaDataPtr metaData);
77 
78  virtual DtVegetationLayerPageOutTilesCommand* createVegetationLayerPageOutTilesCommand(DtPagingMetaDataPtr metaData);
79 
80  std::vector<osg::ref_ptr<osgEarth::Procedural::VegetationLayer> > myVegetationLayers;
81 };
Definition: osgEarthCommands.h:45
DtTerrainSourcePager is the base class for terrain pagers. There will be one terrainSourcePager per t...
Definition: terrainSourcePager.h:56
virtual void pageInData(DtPagingMetaDataPtr metaData, DtTerrainPagingGeometryPtr geometry) override=0
Page in data within geometry. Determines which tiles are within the geometry and adds a page in comma...
std::vector< makVrf::DtLine > terrainLineList
Lines structure/calls/list.
Definition: debugDrawTerrainOutputInterface.h:109
virtual void getProceduralTreeTile(DtDebugDrawTerrainOutputInterface::terrainLineList &nodeBoundingList) override=0
get the ground cover tile box for the debug draw tool
Information about each individual index file.
Definition: terrainUtil.h:101
tbb::concurrent_queue< DtTerrainPagerCommand * > DtPagerCommandQueue
Definition: vantageTerrainImplementationUtil.h:42
Definition: osgEarthBaseGroundCoverSourceTracker.h:27
virtual void pageOutOldestData(const int priority) override=0
Adds a page out command for the least-recently-used tileID to myCommandQueue.
std::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:46
Definition: osgEarthCommands.h:107
std::shared_ptr< DtPagingMetaData > DtPagingMetaDataPtr
Definition: terrainPagingGeometry.h:108
virtual DtTerrainCategoryMask terrainCategories() const
Definition: osgEarthCommands.h:20
A DtChord is a finite line segment in 3-space, represented by two points. Data derived from the two e...
unsigned int DtTerrainCategoryMask
This bitmask is made using DtTerrainCategory values.
Definition: rwTerrainCategoryMask.h:27
#define DT_DLL_vantageTerrainImplementation
This file is used to determine how to build.
Definition: vantageTerrainImplementationDefines.h:28
Generic interface for reading from index.
Definition: terrainUtil.h:88
std::vector< osg::ref_ptr< osgEarth::Procedural::VegetationLayer > > myVegetationLayers
Definition: osgEarthVegetationLayerSourceTracker.h:80
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
Definition: osgEarthVegetationLayerSourceTracker.h:25
Definition: osgEarthCommands.h:129
virtual bool init(DtTerrainSourcePager &) override=0
Called after options are set. Returns false if error.

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)