[Paraview] request help with plugin and line widget
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon May 17 09:14:42 EDT 2010
In ParaViewSource/Servers/ServerManager/Resources/filters.xml ,
there's a proxy named "ProbeLine" under the "filters" group. (You can
directly refer to the ProbeLine filter under the "internal_filters"
group, just to make it easier to understand). That's the XML for the
"Plot Over Line" filter. You want to model your XML on that. You don't
need to directly deal with pqLineWidget. The trick is the following
property:
<InputProperty
name="Source"
command="SetInputConnection"
label="Probe Type">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
</ProxyGroupDomain>
<ProxyListDomain name="proxy_list">
<Proxy group="extended_sources" name="HighResLineSource" />
</ProxyListDomain>
<Documentation>
This property specifies the dataset whose geometry will
be used in determining positions to probe.
</Documentation>
</InputProperty>
This refers to "HighResLineSource". Now if you open utilities.xml at
the same location, you'll find the xml for HighResLineSource that has
some XML in <Hints/> section that defines that the line widget is to
be used.
Utkarsh
On Mon, May 17, 2010 at 6:15 AM, Phil Amburn <amburn at gri.msstate.edu> wrote:
> I am new to ParaView plugins and would really appreciate help with a task.
>
> I want to read a structured grid file and probe the grid with a line, almost identical to ParaView's Plot Over Line filter.
> This new filter needs to generate a particular meteorology plot called "Skew T Log P" rather than an XY plot, otherwise I would just use Plot Over Line.
>
> The ability of Plot Over Line to interactively move the line is a very nice feature that I'd like to have as well.
>
> I've tried two approaches, but have encountered problems with both, and that's the reason for this request.
>
> First approach was to try to find the source for Plot Over Line but I wasn't able to find that and modify the plot output.
>
> Second approach was to try pqLineWidget to realize an interactive line for the probe, but I'm currently not able to make that work, either. Example code successfully incorporating pqLineWidget would be very helpful.
>
> Any help or thoughts would be much appreciated.
>
> I'm working with ParaView 3.6.2, Windows XP, and MSVC 2008.
>
> Thanks,
>
> Phil
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list