[vtkusers] Writing VTK filters in Python and C
Berk Geveci
berkgeveci at hotmail.com
Fri Feb 15 07:13:47 EST 2002
I thought it was possible to use vtkProgrammableFilter from tcl,
python and java. If I am not wrong about this, vtkProgrammableFilter
can be used to test some functionality from python before porting
it to C++.
-Berk
>From: David Gobbi <dgobbi at irus.rri.ca>
>To: Robert Brown <robb at sophitia.tera-byte.com>
>CC: VTK users list <vtkusers at public.kitware.com>
>Subject: Re: [vtkusers] Writing VTK filters in Python and C
>Date: Fri, 15 Feb 2002 00:30:42 -0500 (EST)
>
>To add some additional clarification,
>
>1) It isn't possible to write a VTK filter in Python. Maybe sometime
> in the future it will be.
>
> Well, that's not quite true... if you look into all places where you
> can hook callbacks into VTK it probably is possible in some limited
> cases. But it wouldn't be easy, and I wouldn't advise it.
>
>2) Writing & wrapping your own VTK classes is a topic that is covered
> fairly substantially in both the User's Guide and in the archives.
> In VTK 3.x it basically amounts to adding your class to the appropriate
> VTK subdirectory (usually 'local') and adding the class name to
> the Makefile.in in that directory, then running 'configure'
> (or pcmaker), then make (or nmake). For VTK 4.x this topic was
> recently discussed to death, and I can't tell you my method because
> the VTK gods have declared it to be heresy ;)
>
> - David
>
>--
> David Gobbi, MSc dgobbi at irus.rri.ca
> Advanced Imaging Research Group
> Robarts Research Institute, University of Western Ontario
>
>On Fri, 15 Feb 2002, Prabhu Ramachandran wrote:
>
> > >>>>> "RB" == Robert Brown <robb at sophitia.tera-byte.com> writes:
> >
> > RB> I want to write a filter to modify a dataset. I'd like to
> > RB> implement it in Python to see how it works, then in C if I
> > RB> like it. Is it possible to write a class in Python that can
> > RB> be used in the VTK pipeline as a filter? What's involved?
> >
> > With the latest CVS tree you can subclass another VTK class. However,
> > you need to be a little careful. This post from David should help.
> >
> > http://public.kitware.com/pipermail/vtkusers/2002-January/009142.html
> >
> > prabhu
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the vtkusers
mailing list