I don't save the data until the user presses save. There is one OrientedGlyphContourRepresentation per contour.<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 8:11 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;">Do you mean that the current contour is stored automatically and internally? Was only one OrientedGlyphContourRepresentation used in your method and when did you save the current drawing contour to the ploydata array?<div>
But I found there are many slices behind the window if I set contourwidgets on and off. For example, if I close the display window, there are other slices which were displayed before. Therefore I think these slices havn't been cleared really in the background, the side effect seems that the contours will added together and it's very slow. I think there must be some problems. I need clear other contourwidgets at first and then reload the contour from polydata array to initial the current contourwidget.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, Oct 20, 2010 at 10:06 AM, Jonathan Morra <span dir="ltr"><<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<div>
<div></div><div><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" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br><br><br>
</div></div></div>
</blockquote></div><br>