[Paraview] Re: Asking for information
Berk Geveci
berk.geveci@kitware.com
18 Apr 2003 11:34:36 -0400
Hi,
In the future, please send a copy of your questions to the ParaView
mailing list so that other users may benefit from the answers. Also,
you might want to take a look at the archives, the answer to your
question might be there.
> Currently, i'm trying to add a new forma of reader to Paraview but i find a lot of difficulties.
> Can you, please, describe me the main steps of adding a new modules or indique me a complete tutorial.
Here is part of a message I posted to the ParaView mailing list
some time ago:
The reason we have not provided any documentation nor a DTD for
the XML used in ParaView is that it is still changing rapidly
and that we did not want to tie ourselves to anything before
we have something we believe is final. Having said that, I can
give you some pointers:
1. When ParaView starts, it looks in a directory pointed by
the PV_INTERFACE_PATH env. variable and tries to load all
.xml files there.
2. If you compiled your own sources and filters into a separate
library, you have to tell ParaView to load it in the XML. NOTE:
You need to generate the TCL wrapped library as well. Here is
how to do it:
<ModuleInterfaces>
<Library name="vtkMyLibraryTCL"/>
<!-- interface description for the modules goes here-->
</ModuleInterfaces>
You also have to setup your TCLLIBPATH and PATH to include
where the library is.
3. Look at ParaView/vtkPVDefaultModules.h to see how the
modules in ParaView are done. It is a little hard to read
but should contain all the information you need.
(Note: In the current cvs version of ParaView, vtkPVDefaultModules.h
is no more. The default configuration are stored in
ParaView/Resource/*.xml instead)
4. Keep in mind that the XML can change and you might end up
having to update your XML files in future.
-Berk