[Paraview] Adding a Filter
ALIZIER Julien AUSY
julien.alizier-ausy at irsn.fr
Mon, 10 May 2004 09:13:00 +0200
Hi Michael,
For testing, you can load an external XML file in ParaView using the
"File/Import Package" menu.
If you want to load it dynamically at start up, you must set
PV_INTERFACE_PATH to point to the folder containing your *.xml files.
PV_INTERFACE_PATH has the following TCL syntax: (forward slashes and =
space
separated path sequence)
PV_INTERFACE_PATH=3D"C:/My plugin/autoloadxml" "C:/my second =
plugin/xml"
Once your xml file has been read succesfully, you should see your =
filter in
the filter menu.
The XML code into /ParaView/ParaView/Resources/Filters.xml is compiled =
into
a c++ file (or sthg like that) so it is not loaded at run-time.
(I use paraview 1.2.1)
HTH
-- Julien
-----Message d'origine-----
De : Michael P. Vitus [mailto:vitusm at rpi.edu]
Envoy=E9 : samedi 8 mai 2004 18:37
=C0 : paraview at paraview.org
Cc : Kenneth Jansen
Objet : [Paraview] Adding a Filter
Hello,
I am using ParaView 1.3 and VTK 4.5. I am trying to add in an
additional filter (vtkExtractGeometry), but I am having trouble =
figuring out
where to put the XML for the filter. Someone at ParaView told me =
create a
new modules.xml file and set the environment variable =
PV_INTERFACE_MODULE to
the location of the modules.xml file, but ParaView didn't show any sign =
of
reading the modules.xml file. I put in an obvious error into the
modules.xml file, but ParaView didn't throw an error.
I then tried to put my XML code into
/ParaView/ParaView/Resources/Filters.xml file but it still didn't =
produce
any results. I also, removed all of the XML within the Filters.xml =
file to
see if it was reading it, and it didn't produce any results. So that =
leads
to me to question whether the XML file is dynamically read when =
ParaView is
initializing, or is it built into ParaView during build time? Also, =
what is
the "correct" way to add a new module/filter into ParaView?
Thank You in advance for your help,
Mike