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

Stanton, Eric T etstant at sandia.gov
Wed Aug 12 18:08:06 EDT 2009


vtkTable uses vtkFieldData to store its columns (accessible via vtkTable::GetRowData()). vtkFieldData also has a Reset() method which just calls Reset() on its internal arrays.

--Eric


________________________________
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org] On Behalf Of Will Schroeder
Sent: Wednesday, August 12, 2009 10:56 AM
To: Pebay, Philippe P
Cc: vtk-developers at vtk.org
Subject: Re: [vtk-developers] [proposal] Purge() method for vtkTable

Note also that Reset() is used in the data arrays (vtkAbstractArray) to reset containers to an empty state without freeing memory.
W

On Wed, Aug 12, 2009 at 11:30 AM, Pebay, Philippe P <pppebay at sandia.gov<mailto: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<http://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




--
William J. Schroeder, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com<mailto:will.schroeder at kitware.com>
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20090812/c7105dd0/attachment.html>


More information about the vtk-developers mailing list