Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::HitTesting Class Reference

Controls Scene-wide hit testing. More...

Public Member Functions

VectorMarkerHit getMarkerHits (vec2d point, bool onlyFirstHit)
 Get a list of markers below a screen point. This will check each MakerMap. More...
 
VectorPolygonHit getPolygonHits (vec2d point, bool onlyFirstHit)
 Get a list of polygons below a screen point. This will check each VectorMap. More...
 
VectorModelHit getModelHits (vec2d point, bool onlyFirstHit)
 Get a list of models below a screen point. This will check each ModelMap. More...
 
void setAutomaticLineHitDetection (bool autoLineHitDetect)
 Set whether or not vector line hit detection is performed automatically upon tap on all VectorMaps with a delegate defined. More...
 
void setAutomaticPolygonHitDetection (bool autoPolygonHitDetect)
 Set whether or not vector polygon hit detection is performed automatically upon tap on all VectorMaps with a delegate defined. More...
 
void setAutomaticMarkerHitDetection (bool autoMarkerHitDetect)
 Set whether or not marker hit detection is performed automatically upon tap on all MakerMap with a delegate defined. More...
 
void setAutomaticModelHitDetection (bool autoModelHitDetect)
 Set whether or not model hit detection is performed automatically upon tap on all ModelMap with a delegate defined. More...
 
vec3d getWorldPositionOfTerrainAtScreenPoint (vec2d screenPoint)
 
GeographicPosition getGeographicPositionOfTerrainAtScreenPoint (vec2d screenPoint)
 

Detailed Description

Controls Scene-wide hit testing.

Member Function Documentation

GeographicPosition AltusUnified::HitTesting::getGeographicPositionOfTerrainAtScreenPoint ( vec2d  screenPoint)
VectorMarkerHit AltusUnified::HitTesting::getMarkerHits ( vec2d  point,
bool  onlyFirstHit 
)

Get a list of markers below a screen point. This will check each MakerMap.

Parameters
pointThe screen location to query, in pointds.
onlyFirstHitWhen true, only a single MarkerHit is returned.
VectorModelHit AltusUnified::HitTesting::getModelHits ( vec2d  point,
bool  onlyFirstHit 
)

Get a list of models below a screen point. This will check each ModelMap.

Parameters
pointThe screen location to query, in pointds.
onlyFirstHitWhen true, only a single ModelHit is returned.
VectorPolygonHit AltusUnified::HitTesting::getPolygonHits ( vec2d  point,
bool  onlyFirstHit 
)

Get a list of polygons below a screen point. This will check each VectorMap.

Parameters
pointThe screen location to query, in pointds.
onlyFirstHitWhen true, only a single PolygonHit is returned.
vec3d AltusUnified::HitTesting::getWorldPositionOfTerrainAtScreenPoint ( vec2d  screenPoint)
void AltusUnified::HitTesting::setAutomaticLineHitDetection ( bool  autoLineHitDetect)

Set whether or not vector line hit detection is performed automatically upon tap on all VectorMaps with a delegate defined.

void AltusUnified::HitTesting::setAutomaticMarkerHitDetection ( bool  autoMarkerHitDetect)

Set whether or not marker hit detection is performed automatically upon tap on all MakerMap with a delegate defined.

void AltusUnified::HitTesting::setAutomaticModelHitDetection ( bool  autoModelHitDetect)

Set whether or not model hit detection is performed automatically upon tap on all ModelMap with a delegate defined.

void AltusUnified::HitTesting::setAutomaticPolygonHitDetection ( bool  autoPolygonHitDetect)

Set whether or not vector polygon hit detection is performed automatically upon tap on all VectorMaps with a delegate defined.