[Paraview] Custom Panel Plugin for Custom Reader

Clinton Stimpson clinton at elemtech.com
Wed Feb 13 21:46:34 EST 2008


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



More information about the ParaView mailing list