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

Chiranjib Sur sur.chiranjib at gmail.com
Tue Mar 7 04:31:51 EST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170307/74963d06/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/74963d06/attachment.png>


More information about the Paraview-developers mailing list