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

Pebay, Philippe P pppebay at sandia.gov
Wed Aug 12 12:15:15 EDT 2009


Utkarsh, Jeff,

Thanks for your answers. 

I agree, a SetNumberOfMethods() would also work--and be more general. It does not exist yet. 
Shall I implement it?  

P.
--
Philippe Pébay
Sandia National Laboratories

________________________________________
From: Jeff Baumes [jeff.baumes at kitware.com]
Sent: Wednesday, August 12, 2009 9:13 AM
To: Utkarsh Ayachit
Cc: Pebay, Philippe P; vtk-developers at vtk.org
Subject: Re: [vtk-developers] [proposal] Purge() method for vtkTable

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




--
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com<mailto:jeff.baumes at kitware.com>




More information about the vtk-developers mailing list