]> Creatis software - bbtk.git/commitdiff
#2959 BBTK Feature New Normal - new complex box RescaleSlopeIntercept_Interface.bbg
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 1 Jun 2016 06:06:13 +0000 (08:06 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 1 Jun 2016 06:06:13 +0000 (08:06 +0200)
packages/vtk/bbs/boxes/RescaleSlopeIntercept_Interface.bbg
packages/vtk/bbs/boxes/RescaleSlopeIntercept_Interface.bbs

index 3a3380526d75c216cd1968be62fb5c8fceffa466..4cd3976f3ec0ae2a6b8827751c1d0d4718c73a12 100644 (file)
@@ -10,14 +10,34 @@ AUTHOR:Author ??
 COMPLEXBOX:TRUE
 COMPLEXBOXNAME:RescaleReslopeIntercept_Interface
 PACKAGENAME:vtk
-COMPLEXOUTPUTS:0
+COMPLEXOUTPUTS:5
+COMPLEX_PORT
+A
+-42.146166:-76.342714:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+B
+-21.782479:-75.022817:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Type
+-2.253170:-76.872872:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Format
+16.832508:-76.342714:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+widget
+39.510006:-76.104144:-900.000000
+FIN_COMPLEX_PORT
 COMPLEXINPUTS:0
-BOXES:7
+BOXES:5
 BOX
 wx:InputText:Box00
 ISEXEC:FALSE
--30.237120:75.209079:-900.000000
-15.337880:65.209079:-900.000000
+-31.986641:71.126864:-900.000000
+13.588359:61.126864:-900.000000
 PORT
 In:"1"
 PORT
@@ -26,8 +46,8 @@ FIN_BOX
 BOX
 wx:InputText:Box01
 ISEXEC:FALSE
-11.558165:60.520810:-900.000000
-57.133165:50.520810:-900.000000
+10.391818:55.855422:-900.000000
+55.966818:45.855422:-900.000000
 PORT
 In:"0"
 PORT
@@ -36,44 +56,30 @@ FIN_BOX
 BOX
 wx:LayoutLine:Box06
 ISEXEC:TRUE
--20.720869:-38.371979:-900.000000
-36.839131:-48.371979:-900.000000
+39.929176:-34.289764:-900.000000
+97.489176:-44.289764:-900.000000
 FIN_BOX
 BOX
 wx:ComboBox:Box07
 ISEXEC:FALSE
-17.037159:29.469680:-900.000000
-62.612159:19.469680:-900.000000
+38.031405:33.336268:-900.000000
+83.606405:23.336268:-900.000000
 PORT
-In:"SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin;B=newMax)"
+In:"SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin_B=newMax)  InvertRedimension(A=newMin_B=newMax)"
 PORT
 Title:"Type"
 FIN_BOX
 BOX
 wx:ComboBox:Box08
 ISEXEC:FALSE
-35.195304:11.711652:-900.000000
-80.770304:1.711652:-900.000000
+61.438112:15.793867:-900.000000
+107.013112:5.793867:-900.000000
 PORT
-In:"Same(default) VTK_BIT VTK_CHAR VTK_UNSIGNED_CHAR  VTK_INT VTK_UNSIGNED_INT VTK_SHORT VTK_UNSIGNED_SHORT VTK_LONG VTK_UNSIGNED_LONG VTK_FLOAT VTK_DOUBLE"
+In:"SAME VTK_BIT VTK_CHAR VTK_UNSIGNED_CHAR  VTK_INT VTK_UNSIGNED_INT VTK_SHORT VTK_UNSIGNED_SHORT VTK_LONG VTK_UNSIGNED_LONG VTK_FLOAT VTK_DOUBLE"
 PORT
 Title:"Format"
 FIN_BOX
-BOX
-wx:CommandButton:Box09
-ISEXEC:FALSE
-28.395265:-15.962743:-900.000000
-73.970265:-25.962743:-900.000000
-PORT
-Label:"Save (*.mhd)"
-FIN_BOX
-BOX
-vtk:RescaleSlopeIntercept:Box10
-ISEXEC:FALSE
--95.009021:6.753468:-900.000000
--23.834021:-3.246532:-900.000000
-FIN_BOX
-CONNECTIONS:5
+CONNECTIONS:9
 CONNECTION
 Box00:Widget:Box06:Widget1
 NumberOfControlPoints:0
@@ -84,9 +90,21 @@ CONNECTION
 Box07:Widget:Box06:Widget3
 NumberOfControlPoints:0
 CONNECTION
-Box09:Widget:Box06:Widget5
+Box08:Widget:Box06:Widget4
 NumberOfControlPoints:0
 CONNECTION
-Box08:Widget:Box06:Widget4
+Box00:Out:A:A
+NumberOfControlPoints:0
+CONNECTION
+Box01:Out:B:B
+NumberOfControlPoints:0
+CONNECTION
+Box06:Widget:widget:widget
+NumberOfControlPoints:0
+CONNECTION
+Box08:OutString:Format:Format
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Type:Type
 NumberOfControlPoints:0
 APP_END
index d4279a34f59735935ecb518e12c6299ab01650b3..937c807817d21a17eb793d72bc44a1016aa0316b 100644 (file)
@@ -6,7 +6,6 @@
 include std
 include itkvtk
 include wx
-include vtk
 
 define RescaleReslopeIntercept_Interface vtk
 
@@ -26,30 +25,29 @@ new wx:InputText Box01
 new wx:LayoutLine Box06
 
 new wx:ComboBox Box07
-  set Box07.In "SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin;B=newMax)"
+  set Box07.In "SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin_B=newMax)  InvertRedimension(A=newMin_B=newMax)"
   set Box07.Title "Type"
 
 new wx:ComboBox Box08
-  set Box08.In "Same(default) VTK_BIT VTK_CHAR VTK_UNSIGNED_CHAR  VTK_INT VTK_UNSIGNED_INT VTK_SHORT VTK_UNSIGNED_SHORT VTK_LONG VTK_UNSIGNED_LONG VTK_FLOAT VTK_DOUBLE"
+  set Box08.In "SAME VTK_BIT VTK_CHAR VTK_UNSIGNED_CHAR  VTK_INT VTK_UNSIGNED_INT VTK_SHORT VTK_UNSIGNED_SHORT VTK_LONG VTK_UNSIGNED_LONG VTK_FLOAT VTK_DOUBLE"
   set Box08.Title "Format"
 
-new wx:CommandButton Box09
-  set Box09.Label "Save (*.mhd)"
-
-new vtk:RescaleSlopeIntercept Box10
-
 
 connect Box00.Widget Box06.Widget1
 connect Box01.Widget Box06.Widget2
 connect Box07.Widget Box06.Widget3
-connect Box09.Widget Box06.Widget5
 connect Box08.Widget Box06.Widget4
 
 # Complex input ports
 
 # Complex output ports
+output A Box00.Out " "
+output B Box01.Out " "
+output widget Box06.Widget " "
+output Format Box08.OutString " "
+output Type Box07.Out " "
 
-message  0
+message    
 exec Box06
 
 endefine