[Paraview] Custom display panel for a source or filter
Clinton Stimpson
clinton at elemtech.com
Thu Jan 3 10:55:31 EST 2008
To add a bit more on the compiling side of it... there is a CMake macro
in ParaView3/CMake/ParaViewPlugins.cmake called
ADD_PARAVIEW_DISPLAY_PANEL(). You can follow what it does, but you
can't use that macro directly because the implementation it creates for
pqDisplayPanelInterface assumes you have your own representation your're
making a panel for. In your case, you're making a panel for an existing
representation.
Then you call ADD_PARAVIEW_PLUGIN() and don't forget to fill in the
GUI_INTERFACE argument yourself since you aren't using any macros that
give you that.
Clint
Utkarsh Ayachit wrote:
> Hi Paul,
>
> In your plugin, you need to implement the pqDisplayPanelInterface
> (just what the pqStandardDisplayPanels in
> pqDisplayProxyEditorWidget.cxx does) and the register it with the
> plugin manager. If you look at
> pqDisplayProxyEditorWidget::updatePanel, you'll see that it checks for
> all pqDisplayPanelInterface implementations registered and asks them
> to create the panel for the source.
>
> Utkarsh
>
>
> Robert Maynard wrote:
>>
>> Last time I asked the same question, I was told I would have to
>> include the xmlName of my class to the conditional statement, and
>> recompile paraview to get custom display panels like TextSource to work.
>>
>> On Jan 3, 2008 9:12 AM, Paul Edwards <paul.m.edwards at gmail.com
>> <mailto:paul.m.edwards at gmail.com>> wrote:
>>
>> I am trying to provide a custom display panel for a plugin I have
>> created. The plugin is for a new source which is a subclass of
>> vtkMultiBlockPLOT3DReader (the plot3d file is generated from inputs
>> selected in the object panel) and I would like to customize the
>> display options for my users.
>>
>> I can see this is done for "TextSource" and "TimeToTextConverter"
>> but when looking through the code (pqObjectBuilder.cxx, line 400)
>> there is a conditional statement to check specifically for these
>> sources. Does this mean that it is not possible from a plugin? (Or
>> am I looking in the wrong place here?)
>>
>> Any help would be appreciated, thanks in advance,
>> Paul
>>
>> PS Great software ;)
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org <mailto: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
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list