<div dir="ltr"><div><div><div>Hi Pascal<br><br>Nice work, thanks for sharing.<br><br></div>There is no "pqIntSliderWidget" in ParaView yet, so no, it is not possible.<br></div>MRs are welcome, so if you want to contribute, please head to <a href="https://gitlab.kitware.com/paraview/paraview/">https://gitlab.kitware.com/paraview/paraview/</a><br></div>It would also be possible to implement it in a plugin.<br><div><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">best,<br><br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 29, 2018 at 5:03 PM, Pascal S. Meysonnat <span dir="ltr"><<a href="mailto:p.meysonnat@aia.rwth-aachen.de" target="_blank">p.meysonnat@aia.rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<div class="gmail-m_8262668892450287273moz-cite-prefix">On 03/29/2018 04:45 AM, Mathieu
Westphal wrote:<br>
</div>
</span><div><div class="gmail-h5"><blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello Pascal,<br>
<br>
</div>
First, i would suggest identifying a widget in <span id="gmail-m_8262668892450287273:17b.1">ParaView</span>
that behave the way you would like your widget to behave,
then take a look into this widget XML for inspiration.<br>
<br>
</div>
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 ?<br>
</div>
<br>
Also what do you mean by increment ? There is no such concept
of increment in ParaView slider based widgets.<br>
<br>
</div>
Best regards,<br>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail-m_8262668892450287273gmail_signature">
<div dir="ltr"><span id="gmail-m_8262668892450287273:17b.3">Mathieu</span> <span id="gmail-m_8262668892450287273:17b.4">Westphal</span><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Wed, Mar 28, 2018 at 9:15 PM,
Pascal <span id="gmail-m_8262668892450287273:17b.5">Meysonnat</span>
<span dir="ltr"><<a href="mailto:p.meysonnat@aia.rwth-aachen.de" target="_blank">p.<span id="gmail-m_8262668892450287273:17b.6">meysonnat</span>@<span id="gmail-m_8262668892450287273:17b.7">aia</span>.<span id="gmail-m_8262668892450287273:17b.8">rwth</span>-<span id="gmail-m_8262668892450287273:17b.9">aachen</span>.<span id="gmail-m_8262668892450287273:17b.10">d<wbr>e</span></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">Dear
all,
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>
<div> <DoubleVectorProperty</div>
<div> Name="Values"</div>
<div> command="SetValues"</div>
<div> number_of_elements="1"</div>
<div> default_values="1"></div>
<div> panel_widget="int_range"></div>
<div> <ArrayRangeDomain name="range"></div>
<div> <RequiredProperties></div>
<div> <Property function="Input"</div>
<div> name="Input" /></div>
<div> </RequiredProperties></div>
<div> </ArrayRangeDomain></div>
<div> </DoubleVectorProperty></div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Thank you very much for your help, </div>
<div><br>
</div>
<div>Regards, </div>
<div><br>
</div>
<div>Pascal </div>
<div><br>
</div>
<div>
<span class="gmail-m_8262668892450287273m_2203978730382752357Apple-style-span" style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px">
<div style="overflow-wrap: break-word;"><span class="gmail-m_8262668892450287273m_2203978730382752357Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;">
<div>--</div>
<div>Dr.-Ing. Pascal S. Meysonnat</div>
<div><br>
</div>
<div>Chair of Fluid Mechanics and Institute
of Aerodynamics</div>
<div>RWTH Aachen University</div>
<div><a href="https://maps.google.com/?q=W%C3%BCllnerstra%C3%9Fe+5a+%0D%0A+++++++++++++++++++++++++++++D-52062+Aachen+%0D%0A+++++++++++++++++++++++++++++Germany&entry=gmail&source=g">Wüllnerstraße 5a</a></div>
<div><a href="https://maps.google.com/?q=W%C3%BCllnerstra%C3%9Fe+5a+%0D%0A+++++++++++++++++++++++++++++D-52062+Aachen+%0D%0A+++++++++++++++++++++++++++++Germany&entry=gmail&source=g">D-52062 Aachen</a></div>
<div><a href="https://maps.google.com/?q=W%C3%BCllnerstra%C3%9Fe+5a+%0D%0A+++++++++++++++++++++++++++++D-52062+Aachen+%0D%0A+++++++++++++++++++++++++++++Germany&entry=gmail&source=g">Germany</a></div>
<div><br>
</div>
</div>
</span></div>
</span>
</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview-develop<wbr>ers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div></div><p>Dear <span id="gmail-m_8262668892450287273:17b.3">Mathieu,
<br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3">I finally
managed to get it work in the end, except for one special
question which remains open. Here is the solution. <br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3">In the xml file
I hat to use the function RangeInfo (see below):<br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"> <DoubleVectorProperty
name="LevelRange"<br>
command="GetLevelRange"<br>
information_only="1"<br>
number_of_elements="2"<br>
default_values="-1 -10"><br>
<SimpleDoubleInformationHelper /><br>
</DoubleVectorProperty><br>
<br>
<DoubleVectorProperty<br>
name="MaxLevelToShow"<br>
command="SetMaxLevelToShow"<br>
information_property="<wbr>LevelRange"<br>
number_of_elements="2"<br>
animateable="1"<br>
default_values="0 0"<br>
panel_widget="double_range"><br>
<DoubleRangeDomain name="range" ><br>
<RequiredProperties><br>
<Property name="LevelRange"
function="RangeInfo"/><br>
</RequiredProperties><br>
</DoubleRangeDomain><br>
</DoubleVectorProperty><br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3">and in the *.h
file of the reader, the Macro had to be set</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3">vtkGetVector2Macro(LevelRange,
int);<br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3">as well as </span><span id="gmail-m_8262668892450287273:17b.3"></span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"></span><span id="gmail-m_8262668892450287273:17b.3"><span id="gmail-m_8262668892450287273:17b.3">int LevelRange[2];</span></span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><span id="gmail-m_8262668892450287273:17b.3">Finished! Now I can read
the values into LevelRange from the RequestInformation and the
sliders appear correctly. There is just one final thing which
is missing. I have integer values and I would like the sliders
to be rather of an integer type than being of double type,
i.e., i would like them do change in full integer values? Is
there a way to achieve this?</span></span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><span id="gmail-m_8262668892450287273:17b.3">Best Regards</span></span></p><span class="gmail-HOEnZb"><font color="#888888">
<p><span id="gmail-m_8262668892450287273:17b.3"><span id="gmail-m_8262668892450287273:17b.3">Pascal Meysonnat <br>
</span></span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><br>
</span></p>
<p><span id="gmail-m_8262668892450287273:17b.3"><br>
</span></p>
</font></span></div>
</blockquote></div><br></div></div></div></div></div></div>