It contains too some sophisticated complex black boxes :
- \paragraph{IsoSurfaceWithControls}
+ \paragraph{IsoSurfaceWidget}
Image iso-surface extractor (vtk::IsoSurfaceExtractor) with associated control panel (isovalue, opacity and colour)\\
Receives :\\
- an initial isovalue (Isovalue)
Outputs :\\
\textless vtkProp3D* \textgreater (In)\\
- \paragraph{MIPWithControls}
+ \paragraph{MIPWidget}
Maximum Intensity Projection (MIP) creator (vtk::MIPCreator) with associated control panel (shift and scale) \\
Receives :\\
- an initial scale (Scale)
load creaImageIO
new Gimmick reader
-new kwVolumeRendererWithControls renderer
+new kwVolumeRendererWidget renderer
new kwViewer3D viewer
connect reader.Out renderer.In
connect downleft.Widget main.Widget3
// Uncomment the following lines to be able to read a 3D images stack
-/* -----------------
+
// To choose the directory
new DirectorySelector ds
// To get the image names into a vector
set reader.ZSpacing 35
connect fd.Out reader.FileNames
-*/
+
// Comment out to following line if you want to be able to read a 3D images stack
-new LoadHola reader
+//new LoadHola reader
print "Image properties : $reader.Out"
print "=================================="
print "Volume renderer with controls"
print "=================================="
-help kwVolumeRendererWithControls
+help kwVolumeRendererWidget
message echo 2
new LoadHola image
-new kwVolumeRendererWithControls renderer
+new kwVolumeRendererWidget renderer
new kwViewer3D viewer
connect image.Out renderer.In
load kw
-define kwVolumeRendererWithControls kw
+define kwVolumeRendererWidget kw
author "laurent.guigues@creatis.insa-lyon.fr"
description "Volume renderer (vtk::VolumeRenderer) with associated control panel (transfer function and opacity editors)"
category "image;widget;viewer"
-description "Example of IsoSurfaceWithControls."
+description "Example of IsoSurfaceWidget."
author "laurent.guigues at creatis.insa-lyon.fr"
category "example"
-include wxvtk/boxes/bbIsoSurfaceWithControls
+include wxvtk/boxes/bbIsoSurfaceWidget
include vtk/boxes/bbLoadHola
-new IsoSurfaceWithControls surface1
-new IsoSurfaceWithControls surface2
+new IsoSurfaceWidget surface1
+new IsoSurfaceWidget surface2
load wxvtk
new Viewer3D viewer
-description "Example of MIPWithControls."
+description "Example of MIPWidget."
author "laurent.guigues at creatis.insa-lyon.fr"
category "example"
-include wxvtk/boxes/bbMIPWithControls
+include wxvtk/boxes/bbMIPWidget
include vtk/boxes/bbLoadHola
-new MIPWithControls MIP
+new MIPWidget MIP
load wxvtk
new Viewer3D viewer
#set MIP.Colour "0.5 0 0"
set MIP.Title "MIP Controls"
-set main.WinTitle "ExampleMIPWithControls"
+set main.WinTitle "ExampleMIPWidget"
exec main
connect slider.Widget layout.Widget1
connect v2d.Widget layout.Widget2
connect slider.BoxChange v2d.BoxExecute
-new IsoSurfaceWithControls surface
+new IsoSurfaceWidget surface
connect reader.Out surface.In
connect surface.Out v3d.In1
connect surface.Widget layout.Widget3
-description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWithControls. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
+description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
author "laurent.guigues at creatis.insa-lyon.fr"
category "example"
include vtk/boxes/bbLoadHola
-include wxvtk/boxes/bbIsoSurfaceWithControls
+include wxvtk/boxes/bbIsoSurfaceWidget
load vtk
load wxvtk
new LoadHola image
new ImagePlanes planes
-new IsoSurfaceWithControls surface
+new IsoSurfaceWidget surface
new Viewer3D viewer
connect image.Out planes.In
-description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWithControls. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
+description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
author "laurent.guigues at creatis.insa-lyon.fr"
category "example"
include vtk/boxes/bbLoadHola
-include wxvtk/boxes/bbIsoSurfaceWithControls
+include wxvtk/boxes/bbIsoSurfaceWidget
load vtk
load wxvtk
new LoadHola image
new ImagePlanes planes
-new IsoSurfaceWithControls surface
+new IsoSurfaceWidget surface
new Viewer3D viewer
connect image.Out planes.In
print "====================================="
print "Viewing both 3 slices and an iso-surface of an image in 3D"
print "====================================="
-help IsoSurfaceWithControls
+help IsoSurfaceWidget
message echo 2
new LoadHola image
connect planes.PlaneX viewer.Obs1
connect planes.PlaneY viewer.Obs2
connect planes.PlaneZ viewer.Obs3
-new IsoSurfaceWithControls isosurface
+new IsoSurfaceWidget isosurface
connect image.Out isosurface.In
connect isosurface.Out viewer.In1
connect isosurface.BoxChange viewer.BoxExecute
load std
load wxvtk
-define IsoSurfaceWithControls wxvtk
+define IsoSurfaceWidget wxvtk
author "laurent.guigues@creatis.insa-lyon.fr"
description "Image iso-surface extractor (vtk::IsoSurfaceExtractor) with associated control panel (isovalue, opacity and colour)"
category "image;mesh;widget;viewer"
load std
load wxvtk
-define MIPWithControls wxvtk
+define MIPWidget wxvtk
author "laurent.guigues@creatis.insa-lyon.fr"
description "Maximum Intensity Projection (MIP) creator (vtk::MIPCreator) with associated control panel (shift and scale)"
category "image;mesh;widget;viewer"
load wxvtk
load vtk
-include wxvtk/boxes/bbIsoSurfaceWithControls
+include wxvtk/boxes/bbIsoSurfaceWidget
define SimpleIsoSurfaceViewer wxvtk
new LayoutSplit main
new Viewer3D viewer
- new IsoSurfaceWithControls surface
+ new IsoSurfaceWidget surface
set surface.Isovalue 10
set surface.Title "Surface"