// MicroAVS Application: 2.00
// Date: 9 September 1997 13:40:17
// DataNames: 1 bearing_inp
// Methods: 1 19
// Actives: 1	 UCDExtface
// Comments:  
// End
MicroAVS.MicroAVS MicroAVS {
   MicroAVS.MAviewer3D MAviewer {
      objs_in => {
         MAviewerEditors.label_objs,<-.UCDExtface.obj_out};
      viewer_params {
         top_xform {
            mat = {
               0.09925,0.022507,0.0600847,0.,-0.0621309,0.0613383,0.0796538,0.,
-0.0160151,-0.0984804,0.0633441,0.,0.,0.,0.,1.
            };
            xlate = {-2.37209,-3.12957,
4.};
            center = {25.,12.5,-25.};
         };
         auto_norm = 0;
      };
   };
   MicroAVS.MAucdReader bearing_inp {
      filename = "$XP_PATH<0>/data/UCD/bearing.inp";
   };
   MicroAVS.ucd_networks.UCDExtface UCDExtface<NEvisible=1> {
      Params {
         colmap_params {
            curmin = -0.08655700088;
            curmax = 1.348760009;
            min_col_val = -0.08655700088;
            max_col_val = 1.348760009;
         };
      };
      fld_in => <-.bearing_inp.field;
   };
// For Demo Script 
   MicroAVS.MAdemo_templ Demo {
      GMOD.parse_v parse_rotx {
         trigger =><-.demo_start;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };
      GMOD.parse_v parse_roty {
         trigger =0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };
      GMOD.parse_v parse_extscalar_comp0 {
         trigger =0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.UCDExtface.Params.extract_scalar_params;
      };
      parse_extscalar_comp0 parse_extscalar_comp1;
      parse_extscalar_comp0 parse_extscalar_comp2;
      parse_extscalar_comp0 parse_extscalar_comp3;

      MicroAVS.MAdemo_sleep sleep1 {time=2; next = "parse_extscalar_comp2";};
      MicroAVS.MAdemo_sleep sleep2 {time=2; next = "parse_extscalar_comp3";};
      MicroAVS.MAdemo_sleep sleep3 {time=2; next = "parse_roty";};
      MicroAVS.MAdemo_sleep sleep4 {time=2; next = "parse_extscalar_comp0";};
   };
};
MicroAVS.MAviewer.viewer_params.auto_norm = 0;// Auto Normalize Off
MicroAVS.Demo.parse_rotx {
   v_commands = "$push -usr\n Demo.status = 1; $pop\n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n Demo.parse_extscalar_comp1.trigger = 1; $pop \n
                 ";
};
MicroAVS.Demo.parse_extscalar_comp1 {
   v_commands = "$push -usr\n component=1; $pop \n
                 $push -usr\n Demo.sleep1.trigger = 1; $pop \n
                ";
};
MicroAVS.Demo.parse_extscalar_comp2 {
   v_commands = "$push -usr\n component=2; $pop \n
                 $push -usr\n Demo.sleep2.trigger = 1; $pop \n
                ";
};
MicroAVS.Demo.parse_extscalar_comp3 {
   v_commands = "$push -usr\n component=3; $pop \n
                 $push -usr\n Demo.sleep3.trigger = 1; $pop \n
                ";
};
MicroAVS.Demo.parse_roty {
   v_commands = "$push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n Demo.sleep4.trigger = 1; $pop \n
                 ";
};
MicroAVS.Demo.parse_extscalar_comp0 {
   v_commands = "$push -usr\n component=0; $pop \n
                 $push -usr\n Demo.status = 0; $pop\n
                ";
};
