[prev in list] [next in list] [prev in thread] [next in thread]
List: vtkusers
Subject: RE: [vtkusers] vtkImageTracerWidget question
From: <dean.inglis () camris ! ca>
Date: 2005-07-31 14:06:35
Message-ID: 20050731140635.QPBP1858.tomts39-srv.bellnexxia.net () [209 ! 226 ! 175 ! 82]
[Download RAW message or body]
Hi Moti,
when you change the image actor you also need to update
the widget with SetProjectionPosition:
Let's suppose you update the image actor to a new
z slice (x-y plane) location (you can also explcitly make the
actor do x-z planes and y-z planes using its SetDisplayExtent
method)
double bounds[6];
imageActor->GetBounds(bounds);
double z = bounds[4];
imageTracer->SetProjectionPosition(z);
Have a look at VTK/Examples/GUI/Tcl/ImageTracerWidget.tcl
Dean
Hello all!
i want to build a GUI which enable user to select a regin of interest from
a 3d volume visualize as 2d slices using vtkimageactor. i found the class:
vtkImageTracerWidget, however it provides only 2d selection.
do someone know how can i extend it to 3d selection, or use
vtkImageTracerWidget to each slice view (when i changed the slice
visualized by vtkimageactor::GetZSlice (int slice_num), the widget stay on
the first slice)
thanks!
moti
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic