Re: [Pyobjc-dev] VTK bindings
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-12-05 11:28:31
|
On 4 dec 2003, at 12:02, Jack Jansen wrote: > > 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. It would also be pretty easy to crash the interpreter, by passing the wrong kind of CObject to an API :-( Ronald |