[Paraview-developers] Add "text" in the property panel display fields

Mathieu Westphal mathieu.westphal at kitware.com
Tue Mar 7 04:41:42 EST 2017


Hello

I suposed you may already have thought of that, but
the easiest way to go would be to label you property "Height (cm)"

Regards

Mathieu Westphal

On Tue, Mar 7, 2017 at 10:31 AM, Chiranjib Sur <sur.chiranjib at gmail.com>
wrote:

> Hi,
> I am developing a plugin and while doing so, I thought of putting "units
> system" to the numeric fields in the property panel. For example, the in
> the below screenshot I want to add " in cm" after the numeric field.
>
> [image: Inline image 1]
>
> Currently, I can extract the numeric value of these quantities by using "
> vtkSMPropertyHelper" like
>
> vtkSMPropertyHelper( proxy(), "Height" ).GetAsDouble();
>
> This utility I want to retain. I am wondering, how can I add strings like "
> cm" etc in the display menu without reading them using vtkSMPropertyHelper
> .
>
> Any clue?
>
> Thanks in advance.
> Chiranjib
>
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170307/0b437414/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5263 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170307/0b437414/attachment.png>


More information about the Paraview-developers mailing list