[Paraview] Custom Panel Plugin for Custom Reader

Mike Jackson imikejackson at gmail.com
Thu Feb 14 17:34:53 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
>



I think I am getting my plugin built but I have no idea if it is  
getting loaded in PV. I have PV from CVS built and I launch PV. I go  
to "Manage Plugins" and try to "load" my plugin. After a short wait I  
get an empty dialog box with an "OK" button. But nothing shows in the  
list. I even tried building the "Prism" plugin and got no joy there  
also.
   I am sure I am missing something simple. Might someone be able to  
tell me what is wrong?

Thanks
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services




More information about the ParaView mailing list