You should look into the use of Pick and ProbeList.  The former is for
selecting locations on an object in the rendered 3d scene.  It will return
properties of the object at the selected location.  The latter will allow
you to lay down a set of points at arbitrary locations and get back the 3d
coordinates.  The results could be used for calculation (e.g., Measure),
placing other objects in the window (e.g., Glyph), specifying location of
other realization (e.g., MapToPlane), etc.

This sort of direct interaction is complementary to the indirect methods
you suggest via widgets.   The best way to subset depends on the data.  It
could be grid coordinates to Slab or physical coordinates, which you map to
the nearest grid coordinate for Slab or use with MapToPlane.

All of the interactors can be placed in a panel (same on or a different
one).  The output of the interactor is passed to whatever module you
want...

They are examples of the above in the sample set...




José Luis Gómez Dans <[EMAIL PROTECTED]>@opendx.watson.ibm.com
on 02/08/2001 01:26:53 PM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   [email protected]
cc:
Subject:  [opendx-users] User selection of an area with the mouse



Hi,
     I have a question, and so far, I am not really able to tackle it
properly. I am using OpenDX to visualize 2.5D data sets. As an added
bonus, I want to be able to select an area in the image and produce a
histogram of the values in here.

     On the GUI-side of things, I don't know whether this can be
done. It would be very nice to click on the image and get the grid
position of the point you have clicked on. It would be evn better to
have a rubber-band kind of arrangemet, by which you click on a corner,
and drag the mouse, and you get a list of all the grid points. I don't
know whether this is possible/feasible (from my understanding,
unlikely).

     The other way is to actually have some Intenger interactors or
similar to get input from the user. However, what is the best way to
select a subset of a dataset? I guess that a slab would do.

     Also, since I can't have the point-and-click, i am using
integers. However, I only seem to be able to get the integer boxes
unless I click on the icons in the VPE. How can I automatically send
them to the foreground as the program runs? I guess selector is here to
help, but I don't know how to "embed" other Interactor objects into a
panel?

     Thanks for your time,
     josé
--
José L Gómez Dans             PhD student
Tel: +44 114 222 5582              Radar & Communications Group
FAX; +44 870 132 2990              Department of Electronic Engineering
                         University of Sheffield UK


Reply via email to