[Paraview] Picking values in the Object Inspector like the cut and contour filter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 1 09:30:44 EDT 2011


Paul,

Both cut (pqCutPanel) and contour (pqContourPanel) panels are custom
panels. We haven;t added support for the autogenerated panels to add
the "values" widget (pqSampleScalarWidget) yet. You'll have to create
a custom panel for it.

Utkarsh


On Wed, Jun 1, 2011 at 9:07 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> Hi,
> I have created a filter where I would like to let the user pick values in a
> similar way to the contour and slice filter.
> Here is an extract from my XML file:
>   <DoubleVectorProperty
>         name="MyValues"
>         command="SetMyValue"
>         label="My Values"
>         set_number_command="SetNumberOfMyValues"
>         number_of_elements="0"
>         repeat_command="1"
>         number_of_elements_per_command="1"
>         use_index="1"
>         animateable="1">
>           <DoubleRangeDomain name="scalar_range" min="0.0" max="1.0" />
>      </DoubleVectorProperty>
> How can I use the widget from the cut or slice value to let the user choose
> the values in the Object Inspector?  Is this possible through the XML?
> Thanks in advance,
> Paul
> _______________________________________________
> 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