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.<br>
<br><div class="gmail_quote">On Tue, Oct 19, 2010 at 6:48 PM, shengwen guo <span dir="ltr"><<a href="mailto:shengwen.guo@gmail.com">shengwen.guo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Mr. Morra,<div> 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?<br clear="all">
Thank you again.</div><div><br></div><font color="#888888"><div><br>-- <br><div>--------------------------------------------------------<br>Shengwen Guo,Ph.D</div>
<div>Associate Professor<br>Department of Biomedical Engineering, <br>South China University of Technology, </div>
<div>Higher Education Mega Center, Guangzhou,510006, P.R.China</div><br>
</div>
</font></blockquote></div><br>