[vtkusers] more on Picking in vtk with Java
    Karin Faulhaber 
    faulhaber at ipf.uni-karlsruhe.de
       
    Tue Oct  9 03:04:43 EDT 2001
    
    
  
Hi Ross,
> void vtkAbstractPicker::SetEndPickMethod ( void(* f)(void *),
> void * arg )
>
> public void SetEndPickMethod(java.lang.Object id0,
>                              java.lang.String id1)
>
>     public static void main (String [] args)
>     {
>         rossSphere gui = new rossSphere();
>         gui.picker.SetEndPickMethod(gui, "annotatePick");
>         ...
>     }
> 
> ...where rossSphere is the name of the class where I have the function
> annotatePick() defined.
Is annotatePick() public void? 
I use this sort of method with a ProgrammableGlyphFilter, and it works
fine like that:
----
fProgGlyph.SetGlyphMethod(this, "calcGlyph");
...
public void calcGlyph() {
	...
}
----
Hope this helps
Karin
    
    
More information about the vtkusers
mailing list