VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainPassThroughLayer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
23 {
24 private:
26 
31 public:
35  DtConsoleCommandManager* cmdMgr);
36  virtual ~DtTerrainPassThroughLayer();
37 
40  virtual const MAKVRinTerra::DtFeatureDatabase& featureDatabase() const;
41 
44  virtual const MAKVRinTerra::DtFeatureContext& featureContext() const;
45 
46  virtual bool loadTerrain(const makArchives::DtGenericTerrainRecord& rec);
47 
48  virtual const Coordinate_System* coordinateSystem() const ;
49 
50  virtual void shutdown(bool block);
51 
52  virtual void preloadTerrainAreas(
53  const DtTerrainPagingGeometryList& preloadGeometry);
54 
56  virtual bool chordIntersect(DtTerrainIntersectStatus& status,
57  const DtChord& chord,
59  const DtTerrainIntersectOptions& options) const;
60 
64  const DtChord& chord,
66  const DtTerrainIntersectOptions& options) const;
67 
69  virtual void cacheTerrainArea(int requestId,
70  unsigned minLOD, unsigned maxLOD, const DtExtent& cacheArea,
71  DtCacheProgressCallbackFunction fcn = 0, void* usr = 0);
72 
74  virtual void cancelCacheTerrainArea(int requestId);
75 
76  virtual const DtTerrainCapabilities* terrainCapabilities() const;
77 
78  virtual void setIntersectDataLoadExpireTime(const double& expireTime);
79 
80  virtual void expireDataLoadRequestsBeforeTime(const double& currentTime);
81 
83 
85 
87  {
91  };
92 
93 protected:
95 };
96 
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
This is the abstract base class for all terrain implementations.
Definition: terrainImplementation.h:164
DtVrfChordIntersectionRecord represents a list of DtChordIntersectRecords.
Definition: vrfChordIntersectRecordList.h:31
virtual MAKVRinTerra::DtFeatureContext & featureContext()
Access feature context.
DtGenericTerrainRecords allow the VR-Forces terrainInterface library to instantiate and configure the...
Definition: DtGenericTerrainRecord.h:34
DtTerrainPassThroughLayer *(* DtCreatorFcn)(DtTerrainPassThroughLayer::DtCreatorParam)
Definition: stringKeyFactory.h:84
This class is the base class for creating a "pass-though" layer in the terrain interface.
Definition: terrainPassThroughLayer.h:22
std::list< std::pair< DtPagingMetaDataPtr, DtTerrainPagingGeometryPtr > > DtTerrainPagingGeometryList
Definition: terrainPagingGeometry.h:104
virtual void processTrianglesInArea(DtTriangleOutputInterface &, const DtTerrainProcessPolygonsBox &) const =0
DtTerrainImplementation * terrainImplementation
Definition: terrainPassThroughLayer.h:88
Definition: terrainPassThroughLayer.h:86
virtual bool chordIntersect(DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectionRecord &record, const DtTerrainIntersectOptions &options) const =0
Returns topmost intersection of chord with terrain in record.
This is a class which maintains a list of string command names and the callback functions that are to...
Definition: consoleCommandManager.h:48
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
DtStringKeyFactoryWithParam< DtTerrainPassThroughLayer, DtTerrainPassThroughLayer::DtCreatorParam > DtTerrainPassThroughLayerFactory
Definition: terrainPassThroughLayer.h:98
virtual bool allIntersectsAlongChord(DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectRecordList &intList, const DtTerrainIntersectOptions &options) const =0
Returns all intersections of chord with terrain.
DtTerrainPassThroughLayerFactory::DtCreatorFcn DtTerrainPassThroughLayerCreatorFcn
Definition: terrainPassThroughLayer.h:99
DtTerrainIntersectOptions Passed to terrain intersect functions to modify how intersect acts...
Definition: terrainIntersectOptions.h:15
virtual void cacheTerrainArea(int requestId, unsigned minLOD, unsigned maxLOD, const DtExtent &cacheArea, DtCacheProgressCallbackFunction fcn=0, void *usr=0)
Call this to start the process of caching terain data (if supported for the open terrain) using the g...
Definition: coordSystem.h:54
virtual bool loadTerrain(const makArchives::DtGenericTerrainRecord &rec)=0
Loads a terrain given the terrain record.
virtual void cancelCacheTerrainArea(int requestId)
Call this routine to cancel a potential cache in progress.
#define DT_DLL_terrainInterface
This file is used to determine how to build.
Definition: terrainInterfaceDefines.h:25
This class holds parameters which define the capabilities of the current terrain. ...
Definition: terrainCapabilities.h:25
virtual void preloadTerrainAreas(const DtTerrainPagingGeometryList &preloadGeometry)
Specifies a list of terrain areas that should be preloaded by the terrain implementation, in the case of a paging or streaming terrain source.
Definition: terrainImplementation.h:250
Definition: featureContext.h:51
virtual DtTerrainInformation * terrainInformation()
Return the terrain information pointer of the terrain implementation (null if none exist) this is a d...
Definition: terrainImplementation.h:299
Definition: vrfChordIntersectionRecord.h:19
virtual void setIntersectDataLoadExpireTime(const double &expireTime)
No-op.
Definition: terrainImplementation.h:287
DtString extraParameters
Definition: terrainPassThroughLayer.h:90
void(* DtCacheProgressCallbackFunction)(int requestId, int current, bool completed, double elapsedTime, void *usr)
Callback for terrain caching.
Definition: terrainImplementation.h:46
virtual const Coordinate_System * coordinateSystem() const =0
Interface for getting terrain triangle data out of DtTerrainInterface::trianglesInArea.
Definition: terrainProcessPolygonsBox.h:113
virtual MAKVRinTerra::DtFeatureDatabase & featureDatabase()
Access feature database.
Definition: featureContext.h:223
DtConsoleCommandManager * commandManager
Definition: terrainPassThroughLayer.h:89
DtTerrainImplementation * myTerrainImplementation
Definition: terrainPassThroughLayer.h:94
virtual void expireDataLoadRequestsBeforeTime(const double &currentTime)
No-op.
Definition: terrainImplementation.h:293
virtual void shutdown(bool block=true)
Shutdown the terrain.
TODO Put this in the makTerrainLib.
Definition: terrainInformation.h:17
DtTerrainIntersectStatus Contains information about result of terrain intersection.
Definition: terrainIntersectStatus.h:16
virtual const DtTerrainCapabilities * terrainCapabilities() const =0
Represents an area query which can be used to extract triangles from DtTerrainInterface.
Definition: terrainProcessPolygonsBox.h:39

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)