[vtk-developers] Containers and... String

David Gobbi dgobbi at irus.rri.ca
Tue Jan 22 16:46:07 EST 2002


On Tue, 22 Jan 2002, Sebastien BARRE wrote:

> At 1/22/2002 04:26 PM, Brad King wrote:
> >I think the idea is that the containers are templated and for use ONLY in
> >implementing other VTK classes.  The containers should not be part of the
> >interface of any VTK classes, which removes the need for wrapping them.
> >Since each language (C++, Tcl, Python, Java) provides its own data
> >structures, there is no need to provide VTK versions
>
> I tend to disagree (slightly). "Programming" is sometimes all about using
> the "right" data structure, and if we could use those VTK data structures
> (and the according methods) directly in the wrapping language it would help
> porting to C++ thereafter (for those that are using Tc, Python, etc. to
> prototype their app, and I guess there are many of them).

I think it would be nice if the containers could be used as part of the
class interface.  There is already a demonstrated need for using
containers as part of an interface, otherwise vtkCollection wouldn't
exist.

However, it's not really worth debating at this point in time.  Best
not to bog things down before they get started.

 - David

P.S. Not quite related: I'm going to add a
   vtkCommand::ExecuteInformationEvent
that is invoked just before ExecuteInformation is called.
It is useful to be able to hook in at this point and tweak
a filter before the actual Execute is called.







More information about the vtk-developers mailing list