]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdMultiply.xml
Feature #1629 Added a box to multiply two double inputs.
[bbtk.git] / packages / std / src / bbstdMultiply.xml
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>
+
+