[vtkusers] Using external libraries with new classes
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Fri Sep 5 03:16:06 EDT 2003
Ed,
This should be fairly easy to wrap your code in python (or at least
check that work). I guess the easiest thing to do is add an entry in
VTK/IO/CMakeLists.txt:Kit_SRCS
Then redo a cmake, you can turn 'verbose Makefile' to check the command
used to wrap your code.
Finally if you are under window$ make sure to define:
class VTK_IO_EXPORT vtkHDFReader : public ...
^^^^^^^^^^^^^
in your header file.
HTH
mathieu
Ed Bachta wrote:
> Actually, my code is sort of an updated version of Shalf's code, which
> was implemented using a previous version of VTK (when data arrays worked
> differently). My code is also missing a few things that Shalf's code was
> able to do, since I there aren't any coordinate fields in the datasets I
> have. I also have HDF5 data which I use a different reader for (it grabs
> out specific groups).
>
> I'm hoping to iron out a bunch of things that I've been fiddling with
> once I figure out how to get these Python wrapped with the rest of VTK.
>
> On Thu, 2003-09-04 at 13:09, Mathieu Malaterre wrote:
>
>>Ed Bachta wrote:
>>
>>>Hello VTK users,
>>>
>>>I have created a reader that can read the HDF data I'm working with into
>>>vtkStructuredPoints... but I want to use this object in Python. Since I
>>>have figured out how to get some simpler custom classes compiled and
>>>wrapped in Python during the VTK build, I want to try the same with my
>>>HDF stuff. The problem is that it needs to include and link with the HDF
>>>libraries. I don't know how to set up my CMakeLists.txt file to have
>>>this happen, and I'm having trouble finding info... I'm sure people have
>>>done this before... what am I missing?
>>>
>>
>>I think it has already been done:
>>
>>http://www.cactuscode.org/archives_html/developers/msg00398.html
>>
>>http://zeus.ncsa.uiuc.edu/~jshalf/VTK/vtkHDFReader/?1062699925
>>
>>HTH
>>mathieu
>
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
More information about the vtkusers
mailing list