]> Creatis software - bbtk.git/commitdiff
Feature #1629 Added a box to multiply two double inputs.
authorClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Mon, 1 Oct 2012 11:06:48 +0000 (11:06 +0000)
committerClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Mon, 1 Oct 2012 11:06:48 +0000 (11:06 +0000)
packages/std/src/bbstdMultiply.xml [new file with mode: 0644]

diff --git a/packages/std/src/bbstdMultiply.xml b/packages/std/src/bbstdMultiply.xml
new file mode 100644 (file)
index 0000000..10ad333
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<blackbox name="Multiply">
+
+  <author>claire.mouton@creatis.insa-lyon.fr </author>
+  <description>Multiplies its inputs                 </description>
+  <category>math                               </category>
+
+  <input name="In1"  type="double" description="First number to multiply"/>
+  <input name="In2"  type="double" description="Second number to multiply"/>
+  <output name="Out" type="double" description="Result"/>
+
+  <process><PRE>
+    bbSetOutputOut( bbGetInputIn1() * bbGetInputIn2() );
+  </PRE></process>
+  
+  <defaultValues><PRE>
+    bbSetInputIn1(0);
+    bbSetInputIn2(0);
+    bbSetOutputOut(0);    
+  </PRE></defaultValues> 
+
+</blackbox>
+
+