A delegate object for a VectorMap. If you create a sub-object of this type, you can receive hit detection events for the VectorMap.
More...
|
void | onLineSegmentHit (string mapName, string shapeId, GeographicPosition2D geoHitPoint, vec2d screenPoint, int segmentStartIndex, int segmentEndIndex) |
| Callback for line segment hit More...
|
|
void | onVertexHit (string mapName, string shapeId, GeographicPosition2D geoHitPoint, vec2d screenPoint, int vertexIndex) |
| Callback for vertex hit More...
|
|
void | onPolygonHit (VectorPolygonHit hits, GeographicPosition2D geoHitPoint, vec2d screenPoint) |
| Callback for polygon hit More...
|
|
void | onPolygonHit3d (VectorPolygonHit hits, vec2d screenPoint) |
| Callback for polygon3d hit More...
|
|
bool | polygonHitDetectionEnabled () |
| Retrieves whether hit detection is enabled for this polygon. More...
|
|
double | lineSegmentHitTestPixelBufferDistance () |
| Retrieves the maximum allowable screen space distance between a click and the line for a hit to be registered, in points. More...
|
|
double | vertexHitTestPixelBufferDistance () |
| Retrieves the maximum allowable screen space distance between a click and the line vertex for a hit to be registered, in points. More...
|
|
A delegate object for a VectorMap. If you create a sub-object of this type, you can receive hit detection events for the VectorMap.
double AltusUnified::IVectorMapDelegate::lineSegmentHitTestPixelBufferDistance |
( |
| ) |
|
Retrieves the maximum allowable screen space distance between a click and the line for a hit to be registered, in points.
void AltusUnified::IVectorMapDelegate::onLineSegmentHit |
( |
string |
mapName, |
|
|
string |
shapeId, |
|
|
GeographicPosition2D |
geoHitPoint, |
|
|
vec2d |
screenPoint, |
|
|
int |
segmentStartIndex, |
|
|
int |
segmentEndIndex |
|
) |
| |
Callback for line segment hit
- Parameters
-
mapName | The map which was clicked |
shapeId | The name of the shape that was clicked |
geoHitPoint | The geographic location of the click |
screenPoint | The screen space location of the click, in points. |
segmentStartIndex | The segment of the line that was clicked. |
Callback for polygon hit
- Parameters
-
hits | The list of hits |
geoHitPoint | The geographic location of the click |
screenPoint | The screen space location of the click, in points. |
Callback for polygon3d hit
- Parameters
-
hits | Details about which polygon was hit |
screenPoint | The point on the screen where the hit occurred |
void AltusUnified::IVectorMapDelegate::onVertexHit |
( |
string |
mapName, |
|
|
string |
shapeId, |
|
|
GeographicPosition2D |
geoHitPoint, |
|
|
vec2d |
screenPoint, |
|
|
int |
vertexIndex |
|
) |
| |
Callback for vertex hit
- Parameters
-
mapName | The map which was clicked |
shapeId | The name of the shape that was clicked |
geoHitPoint | The geographic location of the click |
screenPoint | The screen space location of the click, in points. |
vertexIndex | The vertex that was clicked |
bool AltusUnified::IVectorMapDelegate::polygonHitDetectionEnabled |
( |
| ) |
|
Retrieves whether hit detection is enabled for this polygon.
double AltusUnified::IVectorMapDelegate::vertexHitTestPixelBufferDistance |
( |
| ) |
|
Retrieves the maximum allowable screen space distance between a click and the line vertex for a hit to be registered, in points.