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

  <path>uvid-15f3.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>dig_a_dec</object-name>
    <object-name>dig_a_hund</object-name>
    <object-name>dig_a_ths</object-name>
    <object-name>dig_a_decths</object-name>
    <object-name>dig_p_ones</object-name>
    <object-name>dig_p_dec</object-name>
    <object-name>dig_p_hund</object-name>
    <object-name>dig_p_ths</object-name>
    <object-name>needle</object-name>
    <object-name>lamp</object-name>
    <object-name>hs</object-name>

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

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>dig_a_dec</object-name>
    <object-name>dig_a_hund</object-name>
    <object-name>dig_a_ths</object-name>
    <object-name>dig_a_decths</object-name>
    <object-name>dig_p_ones</object-name>
    <object-name>dig_p_dec</object-name>
    <object-name>dig_p_hund</object-name>
    <object-name>dig_p_ths</object-name>
    <object-name>needle</object-name>
    <object-name>lamp</object-name>
    <object-name>hs</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>base</object-name>
    <object-name>dig_a_dec</object-name>
    <object-name>dig_a_hund</object-name>
    <object-name>dig_a_ths</object-name>
    <object-name>dig_a_decths</object-name>
    <object-name>dig_p_ones</object-name>
    <object-name>dig_p_dec</object-name>
    <object-name>dig_p_hund</object-name>
    <object-name>dig_p_ths</object-name>
    <object-name>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>material</type>
    <object-name>lamp</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/switches/gauge-light</factor-prop>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>lamp</object-name>
    <condition>
      <greater-than>
        <property>controls/switches/gauge-light</property>
        <value>0.5</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle</object-name>
    <property>instrumentation/altimeter/indicated-altitude-ft</property>
    <factor> 0.36 </factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_a_dec</object-name>
    <property>instrumentation/altimeter/indicated-altitude-ft</property>
    <factor> 3.6 </factor>
    <center>
      <x-m> -0.01986 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00512 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_a_hund</object-name>
    <expression>
      <table>
        <mod>
          <property>instrumentation/altimeter/indicated-altitude-ft</property>
          <value>1000</value>
        </mod>
        <entry><ind>   0 </ind><dep>   0.0 </dep></entry>
        <entry><ind>  90 </ind><dep>   0.0 </dep></entry>
        <entry><ind> 100 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 190 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 200 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 290 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 300 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 390 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 400 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 490 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 500 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 590 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 600 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 690 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 700 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 790 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 800 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 890 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 900 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 990 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 999 </ind><dep> 359.9 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01986 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00512 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_a_ths</object-name>
    <expression>
      <table>
        <mod>
          <property>instrumentation/altimeter/indicated-altitude-ft</property>
          <value>10000</value>
        </mod>
        <entry><ind>    0 </ind><dep>   0.0 </dep></entry>
        <entry><ind>  990 </ind><dep>   0.0 </dep></entry>
        <entry><ind> 1000 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 1990 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 2000 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 2990 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 3000 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 3990 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 4000 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 4990 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 5000 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 5990 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 6000 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 6990 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 7000 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 7990 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 8000 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 8990 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 9000 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 9990 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 9999 </ind><dep> 359.9 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01986 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00512 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_a_decths</object-name>
    <expression>
      <table>
        <mod>
          <property>instrumentation/altimeter/indicated-altitude-ft</property>
          <value>100000</value>
        </mod>
        <entry><ind>     0 </ind><dep>   0.0 </dep></entry>
        <entry><ind>  9990 </ind><dep>   0.0 </dep></entry>
        <entry><ind> 10000 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 19990 </ind><dep>  36.0 </dep></entry>
        <entry><ind> 20000 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 29990 </ind><dep>  72.0 </dep></entry>
        <entry><ind> 30000 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 39990 </ind><dep> 108.0 </dep></entry>
        <entry><ind> 40000 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 49990 </ind><dep> 144.0 </dep></entry>
        <entry><ind> 50000 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 59990 </ind><dep> 180.0 </dep></entry>
        <entry><ind> 60000 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 69990 </ind><dep> 216.0 </dep></entry>
        <entry><ind> 70000 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 79990 </ind><dep> 252.0 </dep></entry>
        <entry><ind> 80000 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 89990 </ind><dep> 288.0 </dep></entry>
        <entry><ind> 90000 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 99990 </ind><dep> 324.0 </dep></entry>
        <entry><ind> 99999 </ind><dep> 359.9 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01986 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00512 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_p_ones</object-name>
    <property>/instrumentation/altimeter/setting-inhg</property>
    <factor> 3600 </factor>
    <center>
      <x-m> -0.01257 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02385 </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>
      <product>
        <difference>
          <mod>
            <property>/instrumentation/altimeter/setting-inhgN</property>
            <value>1</value>
          </mod>
          <mod>
            <property>/instrumentation/altimeter/setting-inhgN</property>
            <value>0.1</value>
          </mod>
        </difference>
        <value>360</value>
      </product>
    </expression>
    <center>
      <x-m> -0.01257 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02385 </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>
      <product>
        <difference>
          <mod>
            <property>/instrumentation/altimeter/setting-inhg</property>
            <value>10</value>
          </mod>
          <mod>
            <property>/instrumentation/altimeter/setting-inhg</property>
            <value>1</value>
          </mod>
        </difference>
        <value>36</value>
      </product>
    </expression>
    <center>
      <x-m> -0.01257 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02385 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_p_ths</object-name>
    <expression>
      <product>
        <difference>
          <mod>
            <property>/instrumentation/altimeter/setting-inhg</property>
            <value>100</value>
          </mod>
          <mod>
            <property>/instrumentation/altimeter/setting-inhg</property>
            <value>10</value>
          </mod>
        </difference>
        <value>3.6</value>
      </product>
    </expression>
    <center>
      <x-m> -0.01257 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.02385 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>hs</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>
