[vtk-developers] [proposal] Purge() method for vtkTable

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Aug 12 11:37:40 EDT 2009


Wouldn't SetNumberOfRows(0) do the trick?

Utkarsh

On Wed, Aug 12, 2009 at 11:30 AM, Pebay, Philippe P<pppebay at sandia.gov> wrote:
> Hello,
>
> I am proposing to add a Purge() method to vtkTable for the following reason: currently, there is no direct way to clear the contents
> of such a table while preserving the existing column structure. Calling Delete() results in having to re-create the said structure, which
> is both inconvenient and inefficient.
>
> The proposed method would address this issue by emptying columns while preserving the table structure.
>
> Please let me know what you think.
>
> Thank you,
> Philippe
>
> --
> Philippe Pébay
> Sandia National Laboratories
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



More information about the vtk-developers mailing list