[Paraview] Custom Panel Plugin for Custom Reader
Mike Jackson
imikejackson at gmail.com
Wed Feb 13 23:39:59 EST 2008
On Feb 13, 2008, at 9:46 PM, Clinton Stimpson wrote:
> Quoting Mike Jackson <imikejackson at gmail.com>:
>
>> On Feb 13, 2008 4:44 PM, <clinton at elemtech.com> wrote:
>>>
>>> On Wednesday 13 February 2008 2:24:16 pm Mike Jackson wrote:
>>> > I would like to write a custom object panel for my custom
>>> reader so
>>> > that I can display some information from the file and allow the
>>> user
>>> > to do things like select the VOI and such. I read the wiki
>>> pages and
>>> > got an idea what where to start. From there I proceeded to look
>>> > through the ParaView source, specifically at the XDMF reader
>>> since it
>>> > has a custom panel associated with it. I think I have most of the
>>> > parts in place but the one connection that I am missing is how
>>> does
>>> > ParaView know to display the pqXdmfPanel when the user selects an
>>> > Xdmf file?
>>>
>>> The CMake macro for declaring an object panel generates the code
>>> to do that.
>>> ADD_PARAVIEW_OBJECT_PANEL(...)
>>>
>>> Clint
>>>
>>
>> Great that was easy.
>> Next Question. If I want a custom UI panel for a Reader I am
>> assuming I am going to need both a server and a client plugin?
>
> You'll need both server and client side code in your plugin(s).
> You can do it in one or two calls to ADD_PARAVIEW_PLUGIN(...),
> depending on your circumstances.
>
> Clint
>
What would be a good example to look at in order to get an idea of
how to do this?
Thanks
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
More information about the ParaView
mailing list