[vtk-developers] RE: Wrapping GetBounds-like functions

Ken Martin ken.martin at kitware.com
Mon Sep 9 15:45:19 EDT 2002


Hey Chris,

The function must have a signature such as:

float *GetSomething() or int *GetSomething() etc...

and be listed in VTK/Wrapping/hints, there are many examples in the
hints file to help you get the hang of it.

Thanks
Ken

>  -----Original Message-----
> From: 	vtk-developers-admin at public.kitware.com
> [mailto:vtk-developers-admin at public.kitware.com]  On Behalf Of
> Volpe, Christopher R (Research)
> Sent:	Monday, September 09, 2002 3:29 PM
> To:	Vtkdevelop (E-mail)
> Subject:	Wrapping GetBounds-like functions
> 
> 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?
> 
> thanks much in advance,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2708 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20020909/8aa20441/attachment-0001.bin>


More information about the vtk-developers mailing list