[Paraview-developers] DoubleVectorProperty (Slider) range set at run time
Mathieu Westphal
mathieu.westphal at kitware.com
Wed Mar 28 22:45:59 EDT 2018
Hello Pascal,
First, i would suggest identifying a widget in ParaView that behave the way
you would like your widget to behave, then take a look into this widget XML
for inspiration.
There may be a way to do what you want to do, but you will need to precise,
where do these "at run-time min and max" values come from ?
Also what do you mean by increment ? There is no such concept of increment
in ParaView slider based widgets.
Best regards,
Mathieu Westphal
On Wed, Mar 28, 2018 at 9:15 PM, Pascal Meysonnat <p.meysonnat at aia.rwth-
aachen.de> wrote:
> Dear all,
>
> I am currently developing a new plugin for our in-house solver and would
> like to have a slider to select certain values which are only known at run
> time. I have seen the property panel configuration for such a case to look
> similar to:
>
> <DoubleVectorProperty
> Name="Values"
> command="SetValues"
> number_of_elements="1"
> default_values="1">
> panel_widget="int_range">
> <ArrayRangeDomain name="range">
> <RequiredProperties>
> <Property function="Input"
> name="Input" />
> </RequiredProperties>
> </ArrayRangeDomain>
> </DoubleVectorProperty>
>
> I am not fully sure on how to set the range properly at the run time.
> Let’s for example say i know at run time the range of the slider should be
> 1…8. How can i set the range properly and how can I set the increment? Is
> there some small example I can may be have a look at?
>
> Thank you very much for your help,
>
> Regards,
>
> Pascal
>
> --
> Dr.-Ing. Pascal S. Meysonnat
>
> Chair of Fluid Mechanics and Institute of Aerodynamics
> RWTH Aachen University
> Wüllnerstraße 5a
> D-52062 Aachen
> Germany
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview-developers/attachments/20180329/631edee3/attachment.html>
More information about the Paraview-developers
mailing list