Commit 8841d4a04af4e81b1f6e9c4910910bbe00bb809e

Authored by Benjamin Renard
2 parents 2843351a 795ce270

Merge branch 'amdadev' into MAZ_9016_New

generic_data/Functions/functions.xml
... ... @@ -7,13 +7,6 @@
7 7 <info_brief>average</info_brief>
8 8 <new_kernel>#sampling_classic</new_kernel>
9 9 </function>
10   - <function name="isinside_(,)" args="1" kind="time" group="stat">
11   - <prompts>
12   - <prompt>ahahah</prompt>
13   - </prompts>
14   - <info_brief>average</info_brief>
15   - <new_kernel>#ttcat_to_param</new_kernel>
16   - </function>
17 10 <function name="median_(,)" args="1" kind="time" group="stat">
18 11 <prompts>
19 12 <prompt>input averaging time in secs</prompt>
... ... @@ -290,7 +283,14 @@
290 283 <info_brief>Magnitude</info_brief>
291 284 <new_kernel>magnitude</new_kernel>
292 285 </function>
293   -
  286 + <function name="planarity(,,,)" args="4" kind="tetrahedron" group="math">
  287 + <info_brief>Planarity calculation from tetrahedron</info_brief>
  288 + <new_kernel>planarity</new_kernel>
  289 + </function>
  290 + <function name="elongation(,,,)" args="4" kind="tetrahedron" group="math">
  291 + <info_brief>Elongation calculation from tetrahedron</info_brief>
  292 + <new_kernel>elongation</new_kernel>
  293 + </function>
294 294 <function name="abs()" kind="math" group="math">
295 295 <info_brief>Absolute value</info_brief>
296 296 <new_kernel>abs</new_kernel>
... ...
js/app/views/CalculatorUI.js
... ... @@ -584,6 +584,7 @@ Ext.define(&#39;amdaUI.CalculatorUI&#39;, {
584 584 amdaUI.CalculatorUI.functionStore.filter('group', 'math');
585 585 this.createFunctionBtns('MathFunctions', 'Simple Maths','#calc_tab_math_id');
586 586 this.createFunctionBtns('VectorFunctions', 'Vector Functions', '#calc_tab_math_id');
  587 + this.createFunctionBtns('Tetrahedron', 'Tetrahedron', '#calc_tab_math_id');
587 588 amdaUI.CalculatorUI.functionStore.clearFilter();
588 589  
589 590 // group space
... ... @@ -690,6 +691,9 @@ Ext.define(&#39;amdaUI.CalculatorUI&#39;, {
690 691 case 'VectorFunctions' :
691 692 amdaUI.CalculatorUI.functionStore.filter('kind', 'vector');
692 693 break;
  694 + case 'Tetrahedron' :
  695 + amdaUI.CalculatorUI.functionStore.filter('kind', 'tetrahedron');
  696 + break;
693 697 case 'ModelFunctions' :
694 698 amdaUI.CalculatorUI.functionStore.filter('kind', 'model');
695 699 width = .45;
... ...