<div dir="ltr">What I am asking is how to dynamically change a slider's min and max values on Properties panel.<div><br></div><div>ParaView wiki has this code to add a slider on Properties panel:</div><div><div><br></div>
<div><DoubleVectorProperty</div><div>name="PercentToRemove"</div><div>command="SetPercentToRemove"</div><div>number_of_elements="1"</div><div>default_values="0.1"></div><div><DoubleRangeDomain name="range" min="0.0" max="1.0" /></div>
<div></DoubleVectorProperty></div><div><br></div><div>This slider has values ranging from 0.0 to 1.0 hard-coded. I want to change the min and max values to the min and max values in my data's scalar field, but those values are not available until I read the data in.</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 10:46 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am not sure I follow the question. Are you talking about how to put<br>
a slider on Properties panel based on something on the filter XML?<br>
<div><div class="h5"><br>
On Tue, Nov 26, 2013 at 3:19 PM, Joe Ping-Lin Hsiao <<a href="mailto:phsiao@cs.unc.edu">phsiao@cs.unc.edu</a>> wrote:<br>
> Hi,<br>
><br>
> I'd like to expose a double variable in the form of slider. In the Wiki<br>
> example, the range of the scalar values are hard-coded. I wonder if there's<br>
> any why to read the scalar range in my code and reflect that back to the the<br>
> slider.<br>
><br>
> Thanks,<br>
> Joe<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br></div>