[vtkusers] Accessing C++ representation from scripting language

Roman Putanowicz putanowr at twins.pk.edu.pl
Mon Feb 10 10:31:46 EST 2003


Hi All,

I have the following question:
If I create a VTK object in scripting language (e.g. Tcl)

vtkUnstructuredGrid ugrid

can I somehow get the the pointer to its underlying C++ representation?

Why I need it? I would like wrap my C++ function e.g:
void DoSomethingWitObject (vktUnstructuredGrid *);
and call it form scripting language, but three is nothing 
I can send to it. 

One way I can think of is to augment vtkObject class with
additional method which will return pointer to the object.
However I was wondering if thre is another way without
making custom modifications to VKT.

Have anybody met a similar problem? 
Thanks for any suggestions.

Cheers

Romek

-- 
    _/_/_/       _/     _/       _/_/_/_/_/    Roman Putanowicz 
  _/            _/     _/           _/         Inst.Comp.Meth.Civ.Eng.
 _/            _/     _/           _/          tel +48 12  628 2569
 _/_/_/racow   _/_/_/niversity of _/echnology  putanowr at twins.pk.edu.pl




More information about the vtkusers mailing list