[Paraview] RE data array multi-component labelling

Favre Jean jfavre at cscs.ch
Fri Jun 4 08:16:06 EDT 2010


From: Stephane PLOIX [stephane.ploix at edf.fr]
Sent: Friday, June 04, 2010 12:33 PM
To: Favre  Jean
Cc: paraview at paraview.org
Subject: RE [Paraview] data array multi-component labelling

Hi Jean,

In the current paraview master, you can name each components of and array. You have a new method vtkAbstractArray::SetComponentName() for this.
If set, those component names appear in place of the traditionnal X, Y et and Z suffixes.
-----------------

thanks Stephane,

the method SetComponentName is exactly what I needed. The Coloring menu now perfectly shows each component labelled, for example, H_0 and H_1 for Hydrogen.

However, it has a side effect which is worse than the previous state. The Calculator, now shows all labels with a double underscore as in H_H_0, H_H_1 for Hydrogen.
I suspect that other filters which decompose array names with the underscore postfix would have the same problem. I am guessing Calculator is not aware that the components are already named. 

Comments?


Jean M. Favre
Swiss National Supercomputing Center


More information about the ParaView mailing list