connect vector1.OutScaleY transform.ScaleY
connect vector1.OutScaleZ transform.ScaleZ
connect vector1.TransformAxis transform.Axis
- set transform.3D true
+ //set transform.3D false
new ReSlicerBox reslice1
connect vector1.OriginReslicer reslice1.Origin
connect reslice1.Out viewer3.In
new CommandButton butExec
- set butExec.Label "Execute"
- connect butExec.BoxChange viewer3.BoxExecute
+ //set butExec.Label "Execute"
+
//Tab for the first image
new LayoutSplit tab1
set tab1.Orientation H
- connect showNpoints.Widget tab1.Widget1
+
+////////////////////
+
+new LayoutSplit hello
+ set hello.Orientation V
+
+ connect showNpoints.Widget hello.Widget1
+ connect butExec.Widget hello.Widget2
+
+ connect hello.Widget tab1.Widget1
connect viewer.Widget tab1.Widget2
//Tab for the second image
//Tab for the result image
-new LayoutSplit result
- set result.Orientation H
- connect butExec.Widget result.Widget1
- connect viewer3.Widget result.Widget2
+//new LayoutSplit result
+ //set result.Orientation H
+ //connect butExec.Widget result.Widget1
+ //connect viewer3.Widget result.Widget2
+ connect butExec.BoxChange viewer3.BoxExecute
+
//Main window
set main.Orientation H
connect tab1.Widget main.Widget1
connect tab2.Widget main.Widget2
-connect result.Widget main.Widget3
+//connect result.Widget main.Widget3
exec main
\ No newline at end of file
slicer->SetResliceTransform(bbGetInputTransform());
slicer->SetOutputOrigin( 0 , 0 , 0 );
slicer->SetOutputOrigin( -(bbGetInputOrigin()[0]) , -(bbGetInputOrigin()[1]) , -(bbGetInputOrigin()[2]) );
+ std::cout << "Reslicer: Origin points: X = " << bbGetInputOrigin()[0] << " Y = " << bbGetInputOrigin()[1] << " Z = " << bbGetInputOrigin()[2] << std::endl;
slicer->Update();
imageResult = vtkImageChangeInformation::New();