[vtkusers] How to use vtkProgrammableFilter in Java

Karin Faulhaber faulhaber at ipf.uni-karlsruhe.de
Fri Aug 17 03:28:48 EDT 2001


Hi Ben,

> I need to make use of vtkProgrammableFilter in my java application.  There
> are not any examples of how to set the execute function to a Java function.
> I need to know the function signatures and how to call SetExecuteMethod...


Try this:

fProgGlyph = new vtkProgrammableGlyphFilter();
fProgGlyph.SetInput(...);
fProgGlyph.SetSource(...);
fProgGlyph.SetGlyphMethod(this, "calcGlyph");

---

public void calcGlyph() {
...
}


As far as I can see, you can't have any parameters with the GylphMethod.
And the GlyphMethod needs to be public.

Karin

-- 
Karin Faulhaber
Universitaet Karlsruhe
Institut fuer Photogrammetrie und Fernerkundung (IPF)
Englerstr. 7 
76128 Karlsruhe

Tel: 0721/608-3676
E-Mail: faulhaber at ipf.uni-karlsruhe.de




More information about the vtkusers mailing list