Re: [Pyobjc-dev] VTK bindings
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-12-04 11:02:24
|
On 4-dec-03, at 5:39, Carlos Phillips wrote: >> Isn't cobject what you want here? It just gives you an opaque Python >> wrapper around a C pointer, but it looks like that could be good >> engouh. >> > > Actually you might be right. This is not ideal, but it would do. hat > is this cobject? How can I use it? Cobject is part of the Python core, but it isn't very well-known (nor widely used). I've always felt that it needs more support. For one thing it would be really good if various (all, really) wrapper packages would 1. Return unknown pointers as Cobjects 2. Allow Cobjects as initializers to any object creation method. Together these two would allow you to pass pointers back and forth between extension modules that are unaware of each other. In your case you would get the vtk object back as a Cobject, which you could then coerce into a VTK renderer object. -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |