There is no such method yet (just GetNumberOfRows), but I would prefer an implementation of that more general method rather than just Purge().<div><br></div><div>Jeff<br><div><br><div class="gmail_quote">On Wed, Aug 12, 2009 at 11:37 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Wouldn't SetNumberOfRows(0) do the trick?<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Wed, Aug 12, 2009 at 11:30 AM, Pebay, Philippe P<<a href="mailto:pppebay@sandia.gov">pppebay@sandia.gov</a>> wrote:<br>
> Hello,<br>
><br>
> I am proposing to add a Purge() method to vtkTable for the following reason: currently, there is no direct way to clear the contents<br>
> of such a table while preserving the existing column structure. Calling Delete() results in having to re-create the said structure, which<br>
> is both inconvenient and inefficient.<br>
><br>
> The proposed method would address this issue by emptying columns while preserving the table structure.<br>
><br>
> Please let me know what you think.<br>
><br>
> Thank you,<br>
> Philippe<br>
><br>
> --<br>
> Philippe Pébay<br>
> Sandia National Laboratories<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jeff Baumes, Ph.D.<br>R&D Engineer, Kitware Inc.<br>(518) 881-4932<br><a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a><br>
</div></div>