[vtkusers] Contour slice by slice

Jonathan Morra jonmorra at gmail.com
Tue Oct 19 22:06:15 EDT 2010


I don't do things this way.  I let the vtkContourWidgets' representations
store the appropriate points.  It is only when I need to save the data to
disk that I actually look at the vtkPolyData from the widgets.  This let's
me not worry about the contents of the contour widgets till it's time to
save.  All I have to do is turn on/off the contour widgets themselves.

On Tue, Oct 19, 2010 at 6:48 PM, shengwen guo <shengwen.guo at gmail.com>wrote:

> Mr. Morra,
>    With your great help, I think I will implement the method soon. The last
> issue is that I need save the previous contour data before the slice is
> changed, and then initialize the new contour using initial points or contour
> data from the corresponding polydata array where the contour data is stored.
> I use a class vtkSliderCallback : public vtkCommand and refresh window on
> function Execute(vtkObject *caller, unsigned long ul, void* vd),  However, I
> found I can get the new slice position from the slicer and it's difficult to
> get the previous slice position because the Execute() is called after the
> slider is changed. Do you have any ideas?
>     Thank you again.
>
>
> --
> --------------------------------------------------------
> Shengwen Guo,Ph.D
> Associate Professor
> Department of Biomedical Engineering,
> South China University of Technology,
> Higher Education Mega Center, Guangzhou,510006, P.R.China
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101019/81add090/attachment.htm>


More information about the vtkusers mailing list