[Paraview] Data-dependent "default_values" attribute in ServerManager XML

Alexey I. Baranov baranov at cpfs.mpg.de
Fri Nov 20 06:54:07 EST 2009


Dear all,

I have a filter which draws spherical glyphs for each data points and tubes 
between some of them. Each data point have its own sphere color and size read 
from data file but the filter user may wish to change them via Properties 
Panel of Object Inspector using appropriate controls.
If user wants to change only the sphere radius and not the color, he selects 
the data point index from popup list, enter new radius into radius control 
but the color control (given as three ints) will have the default value 
hardcoded in Server Manager XML file and by pressing Apply will be changed to 
it. This is quite annoying behavior while to change only the radius the user 
must manually enter the old color into color controls. Similar problem occurs 
when user wants to change color and preserve the radius of the sphere.
Is it possible to make the default values of these parameters point-dependent 
so that by selecting each data point the current values of size and color for 
this data point are set into Properties panel controls? As I recognize this 
probably can be done by writing customized object panel plugin but may be 
there exists some simpler solution like assigning "default_values" attribute 
in XML file to some dynamically formed property?

With best regars,

Alexey Baranov.


More information about the ParaView mailing list