<?xml version="1.0"?>
<!--
  Submarine Scout class airship.

  Copyright (C) 2007 - 2012  Anders Gidenstam  (anders(at)gidenstam.org)
  This file is licensed under the GPL license version 2 or later.
-->
<PropertyList>

 <!-- Overlay these for the second etc instance. -->
 <params>
  <serviceable>instrumentation/gas-manometer[0]/serviceable</serviceable>
  <pressure-psf>instrumentation/gas-manometer[0]/gas-pressure-psf</pressure-psf>
 </params>

 <path>manometer.ac</path>

 <offsets>
  <!-- x/y/z == back/right/up -->
  <x-m> 0.00 </x-m>
  <y-m> 0.00 </y-m>
  <z-m> 0.00 </z-m>
 </offsets>

 <!-- Rembrandt transparency markup. -->
 <effect>
  <inherits-from>Effects/model-transparent</inherits-from>
  <object-name>outer_glass_tube</object-name>
  <!-- object-name>inner_liquid</object-name>
  <object-name>outer_liquid</object-name -->
 </effect>

 <!--
  %% Animation factors.
  r1 = 0.007; % m
  r2 = 0.005; % m
  psf2Pa=47.880257;
  m2cm = 100;
  c_outer = 1/(1+(r1^2 - r2^2)/r2^2) / (1000*9.81) * psf2Pa * m2cm
  c_inner = 1/(1+r2^2/(r1^2 - r2^2)) / (1000*9.81) * psf2Pa * m2cm
 -->

 <animation>
  <type>scale</type>
  <object-name>inner_liquid</object-name>
  <property alias="../../params/pressure-psf"/>
  <x-factor>0.0</x-factor>
  <x-offset>1.0</x-offset>  
  <y-factor>0.0</y-factor>
  <y-offset>1.0</y-offset>  
  <z-factor>0.23906</z-factor>
  <z-offset>5.0</z-offset>  
  <center>
   <x-m>   0.00 </x-m>
   <y-m>   0.00 </y-m>
   <z-m>  -0.05 </z-m>
  </center>
 </animation>
 <animation>
  <type>scale</type>
  <object-name>outer_liquid</object-name>
  <property alias="../../params/pressure-psf"/>
  <x-factor>0.0</x-factor>
  <x-offset>1.0</x-offset>  
  <y-factor>0.0</y-factor>
  <y-offset>1.0</y-offset>  
  <z-factor>-0.24902</z-factor>
  <z-offset>5.0</z-offset>  
  <center>
   <x-m>   0.00 </x-m>
   <y-m>   0.00 </y-m>
   <z-m>  -0.05 </z-m>
  </center>
 </animation>

 <animation>
  <type>select</type>
  <object-name>outer_liquid</object-name>
  <object-name>inner_liquid</object-name>
  <condition>
   <property alias="../../../params/serviceable"/>
  </condition>
 </animation>

</PropertyList>





