]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/bbs/boxes/SliceImage-3DVisu.bbs
#3459 SliceImage-3DVisu box
[creaMaracasVisu.git] / bbtk / bbs / boxes / SliceImage-3DVisu.bbs
index 044d1ed051ad1cff2460c30889e2ee84412471b4..c9d55bbbd39b9471e100465e42d59b294e94e162 100644 (file)
@@ -9,6 +9,7 @@ include creaMaracasVisu
 include vtk
 include std
 include creaVtk
+include wx
 
 define SliceImage-3DVisu creaMaracasVisu
 
@@ -28,9 +29,6 @@ new std:ConcatStrings Box18
   set Box18.In1 "0  "
   set Box18.In2 "0  "
 
-new std:MathOperationVector Box19
-  set Box19.Type "2"
-
 new vtk:ImageVtkProperties Box20
 
 new creaVtk:ScalarsToColors Box22
@@ -46,7 +44,6 @@ new creaMaracasVisu:DrawAxisTree3D Box26
   set Box26.lstPointZ "0     0     0      0      0"
 
 new vtk:Transform Box27
-  set Box27.RotateWXYZ "-90 0 0 1"
 
 new std:CreateArithmeticSuiteVector Box33
   set Box33.Delta "0"
@@ -74,8 +71,8 @@ new std:ConcatStrings Box40
 
 new std:StringSelect Box41
   set Box41.In0 "0 1 0 0"
-  set Box41.In1 "-90 1 0 0"
-  set Box41.In2 "90 0 0 1"
+  set Box41.In1 "90 1 0 0"
+  set Box41.In2 "-90 0 1 0"
 
 new std:StringSelect Box42
   set Box42.In0 "0 1 0 0"
@@ -87,12 +84,12 @@ new std:GetVectorDoubleElement Box44
 
 new std:StringSelect Box45
   set Box45.In0 "0"
-  set Box45.In1 "2"
+  set Box45.In1 "0"
   set Box45.In2 "2"
 
 new std:StringSelect Box46
   set Box46.In0 "1"
-  set Box46.In1 "0"
+  set Box46.In1 "2"
   set Box46.In2 "1"
 
 new vtk:Transform Box52
@@ -102,13 +99,10 @@ new std:StringSelect Box53
   set Box53.In1 "0 1 0 0"
   set Box53.In2 "-90 0 1 0"
 
-new std:MathOperationVector Box54
-  set Box54.Type "2"
-
 new std:StringSelect Box55
-  set Box55.In0 "0 0 1"
-  set Box55.In1 "0 0 1"
-  set Box55.In2 "0 0 -1"
+  set Box55.In0 "1"
+  set Box55.In1 "-1"
+  set Box55.In2 "-1"
 
 new std:ConcatStrings Box57
   set Box57.In2 "  "
@@ -139,46 +133,63 @@ new std:Mul Box69
 
 new std:Add Box70
 
+new std:MathOperation Box72
+  set Box72.In1 "1"
+  set Box72.Type "2"
+
+new std:MathOperation Box73
+  set Box73.Type "2"
+
+new std:StringSelect Box74
+  set Box74.In0 "2"
+  set Box74.In1 "0"
+  set Box74.In2 "1"
+
+new std:GetVectorDoubleElement Box75
+
+new wx:OutputText Box76
+
+new vtk:Transform Box79
+  set Box79.Scale "1 1 1"
+
+new creaMaracasVisu:ImageChangeInformation Box80
+  set Box80.NewSpacing "1 1 1"
+
+new std:StringSelect Box81
+  set Box81.In0 "0"
+  set Box81.In1 "-1"
+  set Box81.In2 "-2"
+
+new std:MathOperationVector Box82
+  set Box82.In1 "-1    -1   -1"
+  set Box82.Type "0"
+
 
-connect Box00.Out Box04.In
-connect Box20.Spacing Box19.In0
-connect Box18.Out Box19.In1
 connect Box22.LookupTable Box04.LookupTable
 connect Box32.Out Box04.Transform
 connect Box26.BoxChange Box04.BoxExecute
 connect Box32.Out Box27.In
 connect Box27.Out Box26.Transform
-connect Box20.Size Box34.In
 connect Box34.Out Box33.FirstValue
 connect Box33.ArithmeticSuiteVector Box35.In0
 connect Box35.Out Box26.lstPointX
 connect Box36.ArithmeticSuiteVector Box37.In0
 connect Box37.Out Box26.lstPointY
-connect Box20.Spacing Box27.Scale
 connect Box38.Out Box00.In
 connect Box38.Out Box20.In
-connect Box40.Out Box00.TypeOrientation
 connect Box40.Out Box41.In
 connect Box40.Out Box42.In
-connect Box42.Out Box27.RotateWXYZ
-connect Box20.Size Box44.In
 connect Box44.Out Box36.FirstValue
 connect Box40.Out Box45.In
 connect Box40.Out Box46.In
 connect Box45.Out Box34.I
 connect Box46.Out Box44.I
 connect Box17.Out Box32.In
-connect Box41.Out Box17.RotateWXYZ
 connect Box52.Out Box17.In
 connect Box40.Out Box53.In
-connect Box53.Out Box52.RotateWXYZ
-connect Box54.Out Box32.Translate
-connect Box19.Out Box54.In0
-connect Box55.Out Box54.In1
 connect Box40.Out Box55.In
 connect Box57.Out Box22.Range
 connect Box60.Out Box00.Slice
-connect Box60.Out Box18.In3
 connect Box61.Out Box26.Renderer
 connect Box61.Out Box04.Renderer
 connect Box62.Out Box26.Colour
@@ -193,6 +204,26 @@ connect Box67.Out Box57.In1
 connect Box66.Out Box70.In1
 connect Box68.Out Box70.In2
 connect Box70.Out Box57.In3
+connect Box60.Out Box72.In2
+connect Box72.Out Box73.In1
+connect Box55.Out Box73.In2
+connect Box18.Out Box32.Translate
+connect Box73.Out Box18.In3
+connect Box40.Out Box74.In
+connect Box20.Spacing Box75.In
+connect Box74.Out Box75.I
+connect Box57.BoxChange Box76.BoxExecute
+connect Box57.Out Box76.In
+connect Box79.Out Box52.In
+connect Box00.Out Box80.In
+connect Box80.Out Box04.In
+connect Box20.Spacing Box79.Scale
+connect Box41.Out Box17.RotateWXYZ
+connect Box40.Out Box81.In
+connect Box81.Out Box00.TypeOrientation
+connect Box20.Size Box82.In0
+connect Box82.Out Box34.In
+connect Box20.Size Box44.In
 
 # Complex input ports
 input Direction Box40.In1 " "