Scale DistanceCondition SelectedCondition Animation

Copyright © 2015 Open Geospatial Consortium 80 Requirement http:www.opengis.netspecarml2.0reqscriptingModelanimationCallback If set, the callback will be triggered when the animation finished playing all the defined loops. It shall not be triggered when the animation was stopped manually. Returns: a string identifying the 3DAnimation. This String can be used to stop the Animation. stop3DAnimation stops an animation before it regularly finishes. Parameters: animationId: The id returned when the animation was started Returns: void pause3DAnimation pauses a currently running animation. Has no effect if the Animation is not running. Parameters: animationId: The id returned when the animation was started Returns: void resume3DAnimation resumes a currently paused animation. Has no effect if the Animation is not paused. Parameters: animationId: The id returned when the animation was started Returns: void

8.3.22 Scale

[ConstructorScaleDict initDict] interface Scale { attribute double x; attribute double y; attribute double z; }; dictionary ScaleDict { double x; double y; double z; };

8.3.23 DistanceCondition

[ConstructorDistanceConditionDict initDict] interface DistanceCondition : ARElement { attribute double max; attribute double min; }; dictionary DistanceConditionDict : ARElementDict { double max; Copyright © 2015 Open Geospatial Consortium 81 double min; };

8.3.24 SelectedCondition

[Constructorboolean selected, SelectedConditionDict initDict] interface SelectedCondition : ARElement { attribute string listener; attribute boolean selected; }; dictionary SelectedConditionDict : ARElementDict { string listener; boolean selected; };

8.3.25 Animation

interface Animation { void addEventListenerstring type, EventListener listener; void removeEventListenerstring type, EventListener listener; void startint loopCount, int delay; void stop; boolean isRunning; }; Animations cannot be defined in the declarative part of ARML; they can only be declared and controlled in the scripting part. Animations constantly modify the value of a property over a certain time period. 2 different types of Animations are supported in the ECMAScript bindings of ARML: NumberAnimations and GroupAnimations. They all inherit from Animation. start starts an animation. Parameters: loopCount: An optional parameter specifying how often the animation should loop. If loopCount is set to ‐1, the animation will loop infinitively often. If not set, the value defaults to 1. Requirement http:www.opengis.netspecarml2.0reqscriptingAnimationloopCount If loopCount is not set, it defaults to 1. If it is set to ‐1, the animation will loop infinitely often. delay: The number of milliseconds the start of the animation will be delayed. If not set, the value defaults to 0 immediate start. Requirement http:www.opengis.netspecarml2.0reqscriptingAnimationdelay If delay is not set, it defaults to 0, causing the animation to start immediately. Returns: void Copyright © 2015 Open Geospatial Consortium 82 stop stops an animation before it regularly finished. Parameters: ‐ Returns: void isRunning returns if an animation is currently running. Parameters: ‐ Returns: true if the Animation is currently running, false otherwise.

8.3.26 NumberAnimation