|
Maps SDK for C++ 1.0.0
|
Follow position preferences. More...


Public Member Functions | |
| FollowPositionPreferences & | setTimeBeforeTurnPresentation (int val) noexcept |
| Set the time interval before starting a turn presentation. | |
| int | getTimeBeforeTurnPresentation () const noexcept |
| Get the time interval before starting a turn presentation. | |
| int | setCameraFocus (XyF const &pos) noexcept |
| Set the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom ). | |
| XyF | getCameraFocus () const noexcept |
| Get the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom ). | |
| FollowPositionPreferences & | setTouchHandlerModifyPersistent (bool persistent) noexcept |
| Set manually adjusted follow position changes ( via touch handler ) persistent from one follow position session to another. | |
| bool | getTouchHandlerModifyPersistent () const noexcept |
| Test if manually adjusted follow position changes ( via touch handler ) are persistent. | |
| FollowPositionPreferences & | setTouchHandlerExitAllow (bool allowExit) noexcept |
| Set whether to allow manually exiting follow position via touch handler events. | |
| bool | getTouchHandlerExitAllow () const noexcept |
| Test if manually exiting follow position via touch handler events is enabled. | |
| FollowPositionPreferences & | setTouchHandlerModifyHorizontalAngleLimits (const std::pair< double, double > &horizAngleLimits) noexcept |
| Set touch handler horizontal angle adjust limits. | |
| std::pair< double, double > | getTouchHandlerModifyHorizontalAngleLimits () const noexcept |
| Get touch handler horizontal angle adjust limits. | |
| FollowPositionPreferences & | setTouchHandlerModifyVerticalAngleLimits (const std::pair< double, double > &vertAngleLimits) noexcept |
| Set touch handler vertical angle adjust limits. | |
| std::pair< double, double > | getTouchHandlerModifyVerticalAngleLimits () const noexcept |
| Get touch handler horizontal angle adjust limits. | |
| FollowPositionPreferences & | setTouchHandlerModifyDistanceLimits (const std::pair< double, double > &distanceLimits) noexcept |
| Set touch handler distance to object adjust limits. | |
| std::pair< double, double > | getTouchHandlerModifyDistanceLimits () const noexcept |
| Get touch handler distance to object adjust limits. | |
| FollowPositionPreferences & | setPerspective (EMapViewPerspective perspective, Animation animation=Animation()) noexcept |
| Set the map view perspective in follow position mode. | |
| EMapViewPerspective | getPerspective () const noexcept |
| Get the map view perspective in follow position mode. | |
| FollowPositionPreferences & | setViewAngle (double value, bool animated=false) noexcept |
| Set vertical angle in follow position mode. | |
| double | getViewAngle () const noexcept |
| Get the vertical angle. | |
| int | setZoomLevel (int zoomLevel, int duration=0) noexcept |
| Set a zoom level in follow position mode. | |
| int | getZoomLevel () const noexcept |
| Get zoom level in follow position mode. | |
| void | setMapRotationMode (EFollowPositionMapRotationMode mode, double angle=0., bool objectFollowMap=true) noexcept |
| Set map rotation mode in follow position. | |
| std::pair< EFollowPositionMapRotationMode, double > | getMapRotationMode () const noexcept |
| Get map rotation mode in follow position. | |
| bool | isTrackObjectFollowingMapRotation () const noexcept |
| Check if position tracking object rotation follows map rotation. | |
| int | setAccuracyCircleVisibility (bool visible) noexcept |
| Set accuracy circle visibility. | |
| bool | isAccuracyCircleVisible () const noexcept |
| Check if accuracy circle is visible. | |
Follow position preferences.
|
inlinenoexceptinherited |
Get the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom ).
|
inlinenoexceptinherited |
Get map rotation mode in follow position.
|
inlinenoexceptinherited |
Get the map view perspective in follow position mode.
|
inlinenoexceptinherited |
Get the time interval before starting a turn presentation.
|
inlinenoexceptinherited |
Test if manually exiting follow position via touch handler events is enabled.
Default returns true
|
inlinenoexceptinherited |
Get touch handler distance to object adjust limits.
Default returns { 50, std::numeric_limits<double>::max() }, meaning no limits in max distance to tracked object
|
inlinenoexceptinherited |
Get touch handler horizontal angle adjust limits.
Empty { 0., 0. } means value adjustment is forbidden
Default returns { 0., 0. }, meaning adjustment is forbidden
|
inlinenoexceptinherited |
Test if manually adjusted follow position changes ( via touch handler ) are persistent.
|
inlinenoexceptinherited |
Get touch handler horizontal angle adjust limits.
Empty { 0., 0. } means value adjustment is forbidden
Default returns { 0., 70. }
|
inlinenoexceptinherited |
Get the vertical angle.
|
inlinenoexceptinherited |
Get zoom level in follow position mode.
-1 means auto-zooming is enabled
|
inlinenoexceptinherited |
Check if accuracy circle is visible.
|
inlinenoexceptinherited |
Check if position tracking object rotation follows map rotation.
|
inlinenoexceptinherited |
Set accuracy circle visibility.
| [in] | visible | True to show the accuracy circle |
|
inlinenoexceptinherited |
Set the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom ).
| [in] | pos | The camera focus position |
|
inlinenoexceptinherited |
Set map rotation mode in follow position.
| [in] | mode | Map rotation mode |
| [in] | angle | The fixed rotation angle for EFollowPositionMapRotationMode::FPMRM_Fixed |
| [in] | objectFollowMap | The position tracker object orientation will follow map view rotation |
If the position tracker object orientation will follow map view rotation, all views using the same tracking object will see the object update
|
inlinenoexceptinherited |
Set the map view perspective in follow position mode.
| [in] | perspective | The map perspective. |
| [in] | animation | The operation animation type. Default is none |
|
inlinenoexceptinherited |
Set the time interval before starting a turn presentation.
| [in] | val | The time interval in seconds. -1 means using SDK default value |
|
inlinenoexceptinherited |
Set whether to allow manually exiting follow position via touch handler events.
Default value is true
| [in] | allowExit | True to allow exiting follow position |
|
inlinenoexceptinherited |
Set touch handler distance to object adjust limits.
| [in] | distanceLimits | Values must be in { 0, std::numeric_limits<double>::max() } range |
Empty { 0., 0. } interval can be provided to forbid manually adjusting distance to object. Default values are { 50, std::numeric_limits<double>::max() }
|
inlinenoexceptinherited |
Set touch handler horizontal angle adjust limits.
| [in] | horizAngleLimits | . Values must be in { -180., 180. } range |
Empty { 0., 0. } interval can be provided to forbid manually adjusting horizontal angle. Default values are { 0., 0. }
|
inlinenoexceptinherited |
Set manually adjusted follow position changes ( via touch handler ) persistent from one follow position session to another.
Default value is false
| [in] | persistent | True to make changes persistent |
|
inlinenoexceptinherited |
Set touch handler vertical angle adjust limits.
| [in] | vertAngleLimits | Vertical angle adjust limits. Values must be in { 0., 90. } range |
Empty { 0., 0. } interval can be provided to forbid manually adjusting vertical angle. Default values are { 0., 70. }
|
inlinenoexceptinherited |
Set vertical angle in follow position mode.
| [in] | value | The view angle |
| [in] | animated | The animation flag |
|
inlinenoexceptinherited |
Set a zoom level in follow position mode.
| [in] | zoomLevel | Zoom level, may be between 0 and getMaxZoomLevel() |
| [in] | duration | The animation duration in milliseconds (0 means no animation) |