[Paraview-developers] Attribute Editor filter

Stanton, Eric T etstant at sandia.gov
Mon Mar 21 15:21:27 EST 2005


I've developed a filter for ParaView that I've named Attribute Editor
that allows you to edit point/cell attributes using point picking or
"box picking". You select the attribute you wish to edit and the new
value and then use a box or point widget to select the region (or
node/cell in this case of point picking) to edit. The entire input is
sent to the filter's output (we are not clipping it), with its variable
array modified. This is meant to allow the output to be saved to a data
file. 

I've discovered that the Calculator filter in ParaView has a similar
capability. Except to my knowledge there is no way to specify "regions"
to edit (i.e. its all or nothing). Is this correct? Adding a Clip to the
Calculator's output wouldn't work I think because I want to be able to
save out the data. Does this make the Attribute Editor idea worthwhile?

An enhancement I've been mulling over is to have the filter take two
inputs, one from the reader, and the other from any paraview filter
(whose inputs lead back to the same reader) that filters out regions of
the dataset (clip,cut,threshold,shrink, extract surface, etc). The nodes
and cells extracted from the latter will again be used as a selector for
editing nodes/cells in the former. Does this seem possible?

I also want to add "picking by scalars." This means in the attribute
editor filter the user would select an attribute (other than the one
he's editing) and specify a range of values for that attribute. Pressing
accept would edit the attribute on the nodes and/or cells that meet the
bounds set on the 2nd attribute. By doing this, the user could be
saying, for example, "give all regions with a temperature greater than
100C a (edited-attribute-name) value of 1." We wouldn't have to stop
there, either. We could allow, say, up to 3 attributes to be used to
define the regions.

Is there a current way in ParaView to accomplish what I'm talking about?
Any feedback?

Thanks,

Eric Stanton
Sandia National Laboratories
Data Analysis and Visualization
505-284-4422



More information about the Paraview-developers mailing list