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


Reply via email to