![]() |
VR-Forces 4.3 Class Documentation
|
DtSimpleIntersector is a higher-level intersector class which adds functions for line of sight, height above terrain and height over terrain. More...

Public Member Functions | |
| virtual | ~DtSimpleIntersector () |
| DTOR. | |
| virtual double | heightAboveTerrain (const DtVector &loc, DtSimpleIntersectorResult &result, int modelSet=0, bool useHighLod=false, bool includeEntities=false, std::vector< DtElementID > *ignoreList=0) |
| Returns the height above the terrain at location loc. | |
| virtual double | heightAboveTerrain (DtElementID element, DtSimpleIntersectorResult &result, int modelSet=0, bool useHighLod=false, bool includeEntities=false, std::vector< DtElementID > *ignoreList=0) |
| virtual double | heightOfTerrain (const DtVector &loc, DtSimpleIntersectorResult &result, int modelSet=0, bool useHighLod=false) |
| Returns the height of the terrain at the given location. | |
| virtual bool | hasLineOfSight (const DtVector &fromLoc, const DtVector &toLoc, DtSimpleIntersectorResult &result, int modelSet=0, bool useHighLod=false, bool includeEntities=false, std::vector< DtElementID > *ignoreList=0) |
| Returns true if there is nothing blocking line of sight between the two points. | |
| virtual bool | hasLineOfSight (DtElementID fromElem, DtElementID toElem, DtSimpleIntersectorResult &result, int modelSet=0, bool useHighLod=false, bool includeEntities=false, std::vector< DtElementID > *ignoreList=0) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtSimpleIntersector & | instance (DtDe &de) |
| Get the instance of the DtSimpleIntersector. | |
| static void | registerInstance (DtDe &de, DtSimpleIntersector *anInstance) |
| Register the instance with the DtDe. | |
Protected Member Functions | |
| DtSimpleIntersector (DtDe &de) | |
| virtual DtUniqueID | sceneObjectIdFromElementId (DtElementID element, int modelSet) |
| Gets the scene object ID from the element ID. | |
| virtual DtVector | positionFromSceneObjectId (DtUniqueID sceneObjectId) |
| Gets the position of the scene object. | |
| virtual bool | getTerrainIntersection (const DtVector &loc, DtIntersectorResult &result, int modelSet=0, bool useHighLod=false, bool includeEntities=false, std::vector< DtElementID > *ignoreList=0) |
| Returns true if there is an intersection, putting the intersection result in result. | |
| virtual void | fillInElementType (DtSimpleIntersectorResult &result) |
Protected Attributes | |
| DtDe & | myDe |
DtSimpleIntersector is a higher-level intersector class which adds functions for line of sight, height above terrain and height over terrain.
This also enables the user to find out the type of element intersected with (terrain patch, entity, prop, etc)
|
virtual |
DTOR.
|
protected |
|
static |
Get the instance of the DtSimpleIntersector.
|
static |
Register the instance with the DtDe.
|
virtual |
Returns the height above the terrain at location loc.
The position of the terrain is returned in terrainLoc.
|
virtual |
|
virtual |
Returns the height of the terrain at the given location.
|
virtual |
Returns true if there is nothing blocking line of sight between the two points.
If false is returned, the location of the intersection will be stored in hitLoc.
|
virtual |
|
protectedvirtual |
Gets the scene object ID from the element ID.
|
protectedvirtual |
Gets the position of the scene object.
|
protectedvirtual |
Returns true if there is an intersection, putting the intersection result in result.
|
protectedvirtual |
|
protected |