<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- #############################################################################
     #    (C) 2007 by Yurik V. Nikiforoff                                        #
     #    yurik@megasignal.com                                                   #
     #    Jul 2007                                                               #
     #                                                                           #
     #    Updated BARANGER Emmanuel 2015                                         #
     #    Updated BARANGER Emmanuel 09/2022                                      #
     #############################################################################
     UVO altimeter 3D instrument for Tu-154
-->

<PropertyList>

  <path>uvo.ac</path>

  <animation>
    <object-name>bezel</object-name>
    <object-name>face</object-name>
    <object-name>long_needle</object-name>
    <object-name>short_needle</object-name>

    <object-name>vitre</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>bezel</object-name>
    <object-name>face</object-name>
    <object-name>long_needle</object-name>
    <object-name>short_needle</object-name>
    <object-name>vitre</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>long_needle</object-name>
    <object-name>short_needle</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>long_needle</object-name>
    <property>instrumentation/gps/indicated-altitude-ft</property>
    <factor> -0.11 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>short_needle</object-name>
    <property>instrumentation/gps/indicated-altitude-ft</property>
    <factor> -0.011 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_p_ones</object-name>
    <property>instrumentation/altimeter/mmhg</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.01117 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02310 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_p_dec</object-name>
    <expression>
      <table>
        <mod>
          <property>instrumentation/altimeter/mmhg</property>
          <value>100</value>
        </mod>
        <entry><ind>  0.0 </ind><dep>   0.0 </dep></entry>
        <entry><ind>  9.0 </ind><dep>   0.0 </dep></entry>
        <entry><ind> 10.0 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 19.0 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 20.0 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 29.0 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 30.0 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 39.0 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 40.0 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 49.0 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 50.0 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 59.0 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 60.0 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 69.0 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 70.0 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 79.0 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 80.0 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 89.0 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 90.0 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 99.0 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 99.9 </ind><dep> 359.9 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01117 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02310 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_p_hund</object-name>
    <expression>
      <table>
        <mod>
          <property>instrumentation/altimeter/mmhg</property>
          <value>1000</value>
        </mod>
        <entry><ind>   0.0 </ind><dep>   0.0 </dep></entry>
        <entry><ind>  99.0 </ind><dep>   0.0 </dep></entry>
        <entry><ind> 100.0 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 199.0 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 200.0 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 299.0 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 300.0 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 399.0 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 400.0 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 499.0 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 500.0 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 599.0 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 600.0 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 699.0 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 700.0 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 799.0 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 800.0 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 899.0 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 900.0 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 999.0 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 999.9 </ind><dep> 359.9 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01117 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02310 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>vitre</object-name>
    <visible>true</visible>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/altimeter/setting-inhg</property>
        <factor>0.01</factor>
        <min>20</min>
        <max>36</max>
      </binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>mm-to-hPa</tooltip-id>
        <label>hPa: %6.2f</label>
        <property>/instrumentation/altimeter/setting-hapa</property>
      </binding>
    </hovered>
  </animation>

</PropertyList>
