[vtkusers] vtkInteractorStyle

Alan McIntyre fusion at thuule.pair.com
Fri Oct 4 16:32:37 EDT 2002


Steffen,

The "void(*f)(void *)" parameter is a pointer to a C function that looks 
like this:

void func(void *);

How much that helps you out I don't know. If you could post some more 
code I can try to help, even though I haven't done much with VTK in C++.

Hope this helps,
Alan


Steffen Oeltze wrote:
> Hi,
> 
> I would like to define my own interactor style by using a procedure that
> shall be invoked whenever the user presses a mouse button. I'm using
> myInteractorStyle->SetLeftButtonPressMethodArgDelete(myMethod).
> Unfortunately, I seem to have a problem with C-syntax. What does
> 
>> void  SetButtonPressMethodArgDelete (void(*f)(void *)) 
> 
> 
> exactly mean, especially the " (void(*f)(void *)) " - part ?
> 
> Regards,
> Steffen




More information about the vtkusers mailing list