Simple. Mark("field2"), then Include(min=max=your criterion, like 0 or 1), then Unmark.
Do this on each branch that has a different criterion value.

Since the data is presumably not connected but scattered, you can safely set cull=true in the Includes.
The results will be subsets of the input field, each fields in their own right.

In each branch, Mark("field1") then Glyph. To get proportionate glyphs, you'll have to route the original field to each
Glyph so a common min and max is set. (That would require you to Mark("field1") so that field1 becomes
the 'data').


On Tuesday, May 27, 2003, at 09:11 America/New_York, Klaas Gadeyne wrote:

Hi,

I'm trying to process data in the general array format.
These data look as follows:

positions[3] field0[3] field1[1] field2[1]

field0 contains vector data for the positions (3D)
field1 contains scalar data for the same positions.

No troubles so far :-) I can visualise both these fields with any
troubles.
But:

field2 contains a discrete variable. The value of this
variable should determine in what "subimage" (with the "arrange" module)
the other information fields should be visualised. So for example,
suppose I have the following data:

#positions field0 field1 field2
0 0 1 0 0 1 0.5 0
0 1 1 0 0 1 0.4 1
0 0 1 0 1 1 0.6 0

Then the glyphs of the first and the third data line should be routed
to a different macro then those of the second line

something like

| Import |
|
|
| switch |
/ \
/ \
/ \
|do something| |do something else|
\ /
\ /
\ /
|collect and arrange|
|
...

I've tried to realise this with the include, inquire, and route
modules, but I can't find _how_ to realise my goal with these?

Am I forgetting something stupid? Can Opendx do this kind of stuff?
(I found a lot of routing examples based on whole fields, but not
based on the contents of a particular item in a field)

Thanks,

Klaas Gadeyne






_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853

Reply via email to