[Paraview] Moving custom Reader from 2.6 to 3.0.1
Bikash Agarwal
agarwa4 at gmail.com
Thu May 31 17:47:17 EDT 2007
Hi Bob,
How did you try compiling this plugin? In ParaView 3 you don't need to add
the "PARAVIEW_EXTRA_EXTERNAL_MODULE" option to cmake. Also the
GocadReaderParaViewImport.cmake file is not needed in ParaView 3.
To compile your plug-in, you need to have your plugin files all in one
folder. If say the folder name is "BobsReader". Then you need to do the
following.
1) Go to the BobsReader folder and use "ccmake ./"(Linux) or similar
adaptation in windows.
2) Configure cmake at which point it will ask you for the location of your
build directory(first time only). Point this variable to the location of
your ParaView 3 build folder. (You should have build from source for
ParaView 3 before attempting to add the plugin)
3) Configure again and then generate. Then simply do a "make" in BobsReader
to create the libraries which will be .dll in windows and .so in linux. Then
you can load this in ParaView 3
The following link also points to similar instructions.
http://wiki.mirarco.org/index.php/Paraview_3_-_Adding_Filters
I hope this helps.
-Bikash
On 5/31/07, Bob Anderson <banderson at mirarco.org> wrote:
>
> I have a custom reader (GocadReader) that was working fine in PV2.6 and
> I'm trying to add it to 3.0.1
>
> My directory structure is:
>
> ParaView3.0.1
>
> Applications
>
> CMake
>
> Common
>
> CustomReaders
>
> GocadReader – with my CMakeLists.txt, GocadReader.qrc,
> GocadReader.xml, GocadReader.cxx and .h
>
> etc.
>
>
>
> CMakeLists.txt is
>
> FIND_PACKAGE(ParaView REQUIRED)
>
> INCLUDE(${PARAVIEW_USE_FILE})
>
> ADD_PARAVIEW_PLUGIN(GocadReaderGUIPlugin "1.0"
>
> GUI_RESOURCES GocadReader.qrc )
>
>
>
> GocadReader.qrc is
>
> <RCC>
>
> <qresource prefix="/ParaViewResources">
>
> <file>GocadReader.xml</file>
>
> </qresource>
>
> </RCC>
>
>
>
> GocadReader.xml is
>
> <ParaViewReaders>
>
> <Reader name="GocadReader"
>
> extensions=".ts .pl .vs"
>
> file_description="Gocad ASCII Files">
>
> </Reader>
>
> </ParaViewReaders>
>
>
>
> I also have the GocadReaderParaViewImport.cmake from 2.6 – Is it still
> needed?
>
>
>
> Do I still need to identify this as an EXTERNAL_PLUGIN is CMake?
> Otherwise, how do I make ParaView aware of it?
>
>
>
> What am I missing?
>
>
>
> Bob Anderson
>
> MIRARCO Mining Innovation
>
> Laurentian University
>
> 935 Ramsey Lake Road
>
> Sudbury, ON P3E 2C6
>
> Phone: 705-675-1151 Ext. 2012
>
> Fax: 705-675-4838
>
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20070531/6b748528/attachment-0001.htm
More information about the ParaView
mailing list