VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hostQueryImplementation.h
Go to the documentation of this file.
1 #pragma once
4 #include <string>
5 #include <vector>
6 #include <iostream>
7 using namespace std;
9 
11 {
12 public:
13  DtHostQueryImplementation(const DtPhysicalWorld& physicalWorld, DtVector coordTransformOriginLocal, string origin) :
14  myTerrainAccessor(physicalWorld, coordTransformOriginLocal) {
15  //cout << "*** " << origin << "\n";
16  }
17  virtual bool checkLineOfSight(double topoFromX, double topoFromY, double heightAboveFrom, double topoToX,
18  double topoToY, double heightAboveTo) const override;
19  virtual double getHeight(double topoX, double topoY) const override;
20  DtVector localToTopo(DtVector pointLocal) const { return myTerrainAccessor.localToTopo(pointLocal); }
21  DtVector topoToLocal(double topoX, double topoY, double heightAboveGround = 0) const { return myTerrainAccessor.topoToLocal(topoX, topoY, heightAboveGround); }
22 
23 private:
25 };
26 
Definition: hostQueryImplementation.h:10
voidpf uLong int origin
Definition: ioapi.h:42
DtTerrainAccessor myTerrainAccessor
Definition: hostQueryImplementation.h:24
The DtPhysicalWorld is the primary interface to and manager of all of the &quot;physical&quot; aspects of the s...
Definition: physicalWorld.h:112
Specialized classes.
Definition: scriptedTaskTask.h:277
DtVector localToTopo(DtVector pointLocal) const
Definition: hostQueryImplementation.h:20
This interface represents the host from the perspective of DtTerrainReasonerAlgos. The host is an &quot;owner&quot; of a topographic terrain. This allows DtTerrainReasonerAlgos to be completely ignorant of the fact that actual terrain access requires conversion between topographic and local coordinates, keeping DtTerrainReasonerAlgos detached from VRF code base.
Definition: terrainReasonerAlgos.h:183
DtVector topoToLocal(double topoX, double topoY, double heightAboveGround=0) const
Definition: hostQueryImplementation.h:21
this class encapsulates all terrain queries made by DtTerrainReasoner. This keeps DtTerrainReasoner c...
Definition: terrainAccessor.h:24
DtHostQueryImplementation(const DtPhysicalWorld &physicalWorld, DtVector coordTransformOriginLocal, string origin)
Definition: hostQueryImplementation.h:13

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)