[Paraview-developers] Writing ParaView brands using ParaQ (Client Server Plugins)
Jorge Gerardo Peña Pastor
jorge.pena.pastor at gmail.com
Tue Nov 23 09:25:13 EST 2010
Thank you four your previous answers. I could combine both filter and
toolbar plugins.
Now, I'm trying to get more from my plugins.
My idea is to provide several plugin interfaces to make some plugins
able to deal with mouse events, object's representations in different
views or both of them depending on the plugin I'm developing.
ex. There are two different views (one 2D and other 3D). I write a 3d
box plugin. So I would like my plugin implements the plugin interface
to render in the 3D view. Later I write a plane plugin, so I would
like it implements both 2D and 3D interfaces to render in both views.
I now that this would be possible using Qt plugin system, but I can't
see how to do that using Paraview plugin system. What's the best way
to proceed?
In general I don't understand quite well how to deal with UI elements
(such us views) using Paraview plugins. Any help would be very
appreciated.
Thanks
2010/11/10 David Cole <david.cole at kitware.com>:
> 2010/11/10 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:
>>> - I want to offer a unique plugin that provides both the filter and
>>> the interface (toolbars, menus, docks) to manipulate it in the context
>>> of the new application. How can I combine those plugins into a single
>>> one?
>>
>> You can combine multiple plugins into a single ADD_PARAVIEW_PLUGIN
>> call. Just make sure that the inferface and other files are passed in
>> correctly if you use ADD_PARAVIEW_OBJECT_PANEL and similar other
>> macros to create plugins of different types.
>>
>>> - Should I use the ParaView plugin system? or should I use the Qt's one?
>>
>> You will have to use the ParaView plugin system if you are adding
>> filters or any of the standard types of GUI plugins. You can use Qt
>> style plugins for Qt widgets etc. but then you'll have to place the
>> code in your application to load the plugin and use the components
>> provided by the plugin explicitly. ParaView will not know what to do
>> with it at all.
>>
>>>
>>> - I also read this thread http://markmail.org/message/5f2yzi755ya4juxb
>>> about client and server side plugins, which states that it is better
>>> to create the same plugin to be loaded in both client and server. In
>>> my case, I have two paraview builds, one compiled without OpenGl, Qt
>>> and X support for the server, and the other one with support for them.
>>> Which paraview path should I choose to compile my plugin? If I want to
>>> combine both, my common sense tells me to use the one with graphical
>>> support, but is this ok for the server side??
>>
>> Guess there's a little misunderstand about this. You still should
>> create a single plugin in the source, but in your case, you will have
>> to compile the plugin twice with two different ParaView's one built
>> with Qt, OpenGL etc. and another without them.
>>
>>> Finally, a bit off-topic, is there some way to search inside this
>>> mailing list? I found very useful the markmail search engine with the
>>> paraview user mailing list, but I can't figure out how to search in
>>> this mailing list...
>>
>> Hmm, I could have sworn there was a way, but now I can't find it.
>> Maybe someone else knows.
>
> Google for:
> plugin site:http://public.kitware.com/pipermail/paraview-developers/
>
> works for me
>
More information about the Paraview-developers
mailing list