[vtk-developers] Wrapping GetBounds-like functions
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Sep 9 15:52:48 EDT 2002
Hi Christopher,
I just tried several things:
vtkRenderer r
r ComputeVisiblePropBounds 0 1 0 1 0 1
If you want to for example set whatever actor returns, then try this:
eval r ComputeVisiblePropBounds [ actor GetBounds ]
You need eval because ComputeVisiblePropBounds takes 6 numbers. [ actor
GetBounds ] returns one argument array of 6 numbers, and eval makes it
actual 6 arguments.
Does that answer your question?
Andy
On Mon, 2002-09-09 at 15:28, Volpe, Christopher R (Research) wrote:
> Hi folks-
> If you call the GetBounds method of a vtkActor from TCL, it works as expected. I.e., it returns six
> concatenated values as a string. I'm not sure whether it's the method that takes "float bounds[6]" as
> a parameter that's being wrapped, or if it's the one that takes void and returns "float *", or if the
> wrapper code simply handles vtkActor::GetBounds as an explicit special case. But anyway, I'm having a
> heck of a time trying to access vtkRenderer::ComputeVisiblePropBounds(float bounds[6]) from TCL. I
> figured maybe the wrapper generator handles methods named GetBounds specially, so I added a GetBounds
> method to invoke ComputeVisiblePropBounds, trying multiple different parameter approaches, and
> nothing seems to work. TCL keeps complaining that the method name is wrong or is being called with
> the incorrect number of arguments. Can anyone tell me what wrapper-god I have to pray to in order to
> get it to do what I want?
More information about the vtk-developers
mailing list