Home
Categories
Dictionnary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Animation Widgets


    1  List of animation widgets
    2  Generalities on animations
    3  AnimationGroup
    4  AnimationOnParam
    5  See also

Animation widgets allows to perform animations on one of several properties of widgets.

List of animation widgets

Widget Type Widget ARINC ID Supplement Usage
AnimationTranslation A661_ANIMATION_TRANSLATION 6 A widget which allows to perform an animation on the position of a widget
AnimationRotation A661_ANIMATION_ROTATION 6 A widget which allows to perform an animation on the rotation angle of a widget
AnimationScale A661_ANIMATION_SCALE 6 A widget which allows to perform an animation on the scale on a widget
AnimationOnParam A661_ANIMATION_ONPARAM 6 A widget which allows to perform an animation on any widget parameter (including parameters which are not modifiable at runtime by the UA)
AnimationGroup A661_ANIMATION_GROUP 6 An animation widget which allows to group together sequentially or in parallel several animations

Generalities on animations

Animation widgets are not graphic widgets, but they animate other widgets defined in the widgets tree. For example, here we define a translation animation on a rectangle which will have a duration of 500 ms:

      <a661_widget name="gpRectangle" type="A661_GP_RECTANGLE">
         <model>
            <prop name="WidgetIdent" value="1" />
            <prop name="Anonymous" value="A661_FALSE" />
            <prop name="Visible" value="A661_TRUE" />
            <prop name="PosX" value="2000" />
            <prop name="PosY" value="2000" />
            <prop name="SizeX" value="2000" />
            <prop name="SizeY" value="2000" />
            <prop name="StyleSet" value="0" />
            <prop name="ColorIndex" value="blue" />
            <prop name="Filled" value="A661_TRUE" />
            <prop name="FillIndex" value="blue" />
            <prop name="Halo" value="A661_FALSE" />
         </model>
      </a661_widget>
      <a661_widget name="animationTranslation" type="A661_ANIMATION_TRANSLATION">
         <model>
            <prop name="WidgetIdent" value="2" />
            <prop name="Anonymous" value="A661_FALSE" />
            <prop name="TargetWidgetID" value="1" />
            <prop name="StyleSet" value="0" />
            <prop name="FromValueX" value="0" />
            <prop name="FromValueY" value="0" />
            <prop name="ToValueX" value="4000" />
            <prop name="ToValueY" value="4000" />
            <prop name="AnimationLawRef" value="0" />
            <prop name="Duration" value="500" />
            <prop name="Delay" value="0" />
            <prop name="AnimationRepetition" value="0" />
         </model>
      </a661_widget>

AnimationGroup

The A661_ANIMATION_GROUP widget allows to group several animations which must perform in parallel or sequentially. Starting the A661_ANIMATION_GROUP widget will start its animation sub−widgets.
For example here we start in parallel both a translation animation and a scale animation on a rectangle:

      <a661_widget name="gpRectangle" type="A661_GP_RECTANGLE">
         <model>
            <prop name="WidgetIdent" value="1" />
            <prop name="Anonymous" value="A661_FALSE" />
            <prop name="Visible" value="A661_TRUE" />
            <prop name="PosX" value="2000" />
            <prop name="PosY" value="2000" />
            <prop name="SizeX" value="2000" />
            <prop name="SizeY" value="2000" />
            <prop name="StyleSet" value="0" />
            <prop name="ColorIndex" value="blue" />
            <prop name="Filled" value="A661_TRUE" />
            <prop name="FillIndex" value="blue" />
            <prop name="Halo" value="A661_FALSE" />
         </model>
      </a661_widget>
      <a661_widget name="animationGroup" type="A661_ANIMATION_GROUP">
         <model>
            <prop name="WidgetIdent" value="2" />
            <prop name="Anonymous" value="A661_FALSE" />
            <prop name="Type" value="A661_PARALLEL" />
            <prop name="Delay" value="0" />
            <prop name="AnimationRepetition" value="0" />
         </model>
         <a661_widget name="animationTranslation" type="A661_ANIMATION_TRANSLATION">
            <model>
               <prop name="WidgetIdent" value="3" />
               <prop name="Anonymous" value="A661_FALSE" />
               <prop name="TargetWidgetID" value="1" />
               <prop name="StyleSet" value="0" />
               <prop name="FromValueX" value="0" />
               <prop name="FromValueY" value="0" />
               <prop name="ToValueX" value="4000" />
               <prop name="ToValueY" value="4000" />
               <prop name="AnimationLawRef" value="0" />
               <prop name="Duration" value="100" />
               <prop name="Delay" value="0" />
               <prop name="AnimationRepetition" value="0" />
            </model>
         </a661_widget>
         <a661_widget name="animationScale" type="A661_ANIMATION_SCALE">
            <model>
               <prop name="WidgetIdent" value="4" />
               <prop name="Anonymous" value="A661_FALSE" />
               <prop name="TargetWidgetID" value="1" />
               <prop name="StyleSet" value="0" />
               <prop name="FromScaleX" value="1.0" />
               <prop name="FromScaleY" value="1.0" />
               <prop name="ToScaleX" value="2.0" />
               <prop name="ToScaleY" value="2.0" />
               <prop name="AnimationLawRef" value="0" />
               <prop name="Duration" value="100" />
               <prop name="Delay" value="0" />
               <prop name="AnimationRepetition" value="0" />
            </model>
         </a661_widget>
      </a661_widget>

AnimationOnParam

A661_ANIMATION_ONPARAM widget allows to perform an animation on any widget parameter (including parameters which are not modifiable at runtime by the UA). For example it can be possible to animate the width of a A661_GP_LINE stroke. Applying this widget on non runtime parameters is implementation dependant (see JavaFX properties bindings). The parameter on which the animation will perform is specified by the TargetParamID property:

See Also


Category: arinc661 Category: user

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help