[Paraview] Exporters in Paraview GUI

clinton at elemtech.com clinton at elemtech.com
Wed Feb 27 18:22:01 EST 2008


I don't know of a simple or direct way to do that.

But it might be possible to do with a plugin that implements a custom view, 
instead of a writer.

http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_custom_view

The only parts you'd need are to define a ViewModuleProxy in the server 
manager xml, and on the client side, make your own view class derived from 
pqRenderView.  You'll notice the example has a captureImage() function, and 
that's about where you can put your exporters that require a vtkRenderWindow.  
In that client code, you can define your own context menus for the view if 
you wanted to use that to let the user a choose which exporter to use.  You 
could also add checks in there to make sure rendering is done on the client 
side, which some of those exporters seem to require.

The cmake macro ADD_PARAVIEW_VIEW_MODULE only requires the VIEW_TYPE and 
VIEW_XML_GROUP, which is all that plugin would define.

Clint

On Wednesday 27 February 2008 11:50:37 am Enkelejda Tafaj wrote:
> Hi,
>
> sorry for keeping this thread open, but I cannot find a solution for
> using Exporters in Paraview.
>
> E.g. does anyone know how to use the IVExporter in Paraview? There is
> the class vtkIVExporter which is compiled, but how to integrate it in
> the Paraview GUI? Integrating it as a Paraview Writer Plugin does not
> work as Exporters in VTK do not have the same interfaces as Writers
> (below I tried for GL2PS).
>
> Any idea how Paraview supports/integrates vtkExporters?
>
> Thank you,
> Enkelejda
>
> Enkelejda Tafaj wrote:
> > Hi,
> >
> > VTK provides the class vtkGL2PSExporter to export a scene as a
> > PostScript file using GL2PS. This is also very nice to have in Paraview,
> > as it writes vector PostScript (PS/EPS), and is thus very nice for
> > publication pics.
> >
> > I was trying the last two days to make a GL2PS plugin for Paraview by
> > activating the vtkGL2PSExporter. First I compiled vtkGL2PSExporter.cxx
> > (by default VTK_USE_GL2PS is set OFF) in Paraview, then wrote a
> > ServerManager xml file similiar to that in CVS
> > ParaView3/Examples/Plugins/Writer (see attached files) to make a writer
> > Plugin.
> >
> > The input data type to this plugin is a vtkRenderWindow, which I think
> > is the problem. I can load the plugin, but when I try "Save Data" I get
> > the following error message:
> >
> > ERROR: In /Paraview3.2.1/Servers/Common/vtkProcessModule.cxx, line 1001
> > vtkProcessModule (0x8128d00): Object type: vtkGL2PSExporter, could not
> > find requested method: "SetExecutive"
> > or the method was called with incorrect arguments.
> >
> > Can anyone help?
> >
> > Thank you,
> > Enkelejda
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview




More information about the ParaView mailing list