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

Jeff Baumes jeff.baumes at kitware.com
Wed Aug 12 12:13:31 EDT 2009


There is no such method yet (just GetNumberOfRows), but I would prefer an
implementation of that more general method rather than just Purge().
Jeff

On Wed, Aug 12, 2009 at 11:37 AM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> 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
> >
> >
> _______________________________________________
> 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
>
>


-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20090812/aced586e/attachment.html>


More information about the vtk-developers mailing list