[vtkusers] Documentation of Tcl interface

H.Vidal, Jr. hvidal at tesseract-tech.com
Wed Feb 2 18:41:13 EST 2005

Erin McKay wrote:
>> At Wed, 2 Feb 2005 15:52:12 +1100, Erin McKay wrote:

> OK, so I shouldn't expect to be able to use vtkCharArray::SetArray from 
> Tcl even though its available...

It's available (from memory) as a method in the C++ object. It is not
exported to TCL in stock code.

However, it is a *very* minor hack to source just prior to 'make' in order
to expose this interface. I found the very same problem when interfacing
a camera API to vtl and tcl via swig interface. It's a tiny hack, but works
entirely well.

So just a little source patching (very intuitive for this minor bit) is 
all that
is required. Hopefully these are inspiring words.....


> Well, at the risk of sounding like a broken record: does anyone know how 
> to transfer the contents of a Tcl binary string (or any other non-vtk 
> memory buffer for that matter) into VTK using only the facilities 
> present in the current distribution?
> Alternatively, can someone confirm that there is no way to do this 
> presently without modifying the VTK source?
> The two methods I have tried that work (a SetValue loop and file-based 
> data transfer) are, sadly, too slow for my application.
> regards to all
> erin
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

More information about the vtkusers mailing list