<div dir="ltr"><div><div>Hello<br><br></div><div>I suposed you may already have thought of that, but <br>the easiest way to go would be to label you property "Height (cm)"<br></div><br></div>Regards<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 7, 2017 at 10:31 AM, Chiranjib Sur <span dir="ltr"><<a href="mailto:sur.chiranjib@gmail.com" target="_blank">sur.chiranjib@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I am developing a plugin and while doing so, I thought of putting "<font color="#0000ff">units system</font>" to the numeric fields in the property panel. For example, the in the below screenshot I want to add " <font color="#0000ff">in cm</font>" after the numeric field.</div><div><br></div><div><img src="cid:ii_15aa819249275a26" alt="Inline image 1" width="446" height="60"><br></div><div><br></div><div>Currently, I can extract the numeric value of these quantities by using "<font color="#0000ff">vtkSMPropertyHelper</font>" like</div><div><br></div><div><font color="#0000ff" face="monospace, monospace">vtkSMPropertyHelper( proxy(), "Height" ).GetAsDouble();</font><br></div><div><br></div><div>This utility I want to retain. I am wondering, how can I add strings like "<font color="#0000ff">cm</font>" etc in the display menu without reading them using <font color="#0000ff">vtkSMPropertyHelper</font>.</div><div><br></div><div>Any clue?</div><div><br></div><div>Thanks in advance.</div><span class="HOEnZb"><font color="#888888"><div>Chiranjib</div></font></span></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/<wbr>opensource/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="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br></div>