Thats the way I'd do it.  One problem would be that when you are doing button-down interaction and using OpenGL rendering, there are no events coming from SuoerviseWindow - the interaction all takes place within the OpenGL renderer and not as part of overall OpenDX execution.  If the different windows are in the same coordinate space so that you want the same camera to be used in each,  you can set up the interact with one window, then when you button up in that window, route the resulting camera to the other pipelines to bring them to the same viewpoint.

Greg


Kent Eschenberg <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

05/11/2004 02:25 PM
Please respond to opendx-dev

       
        To:        DX Dev DX <opendx2-dev@lists.berlios.de>, DX Users DX <opendx2-users@lists.berlios.de>
        cc:        
        Subject:        [opendx-dev] Multiple Viewports



Folks,

Instead of following my usual practice, I thought I'd ask beforehand for
advice on creating multiple viewports with the current DX. Python is doing
the entire user interface, using DXLink. Already, one Python window nicely
receives the output from DX. I'd like to add options to, in effect,
subdivide that window into up to 6 viewports with mouse actions either
shared or separate for each.

It seems the way to proceed is to create, for each viewport, its own
pipeline, camera, SuperviseWindow and SuperviseState. Does that make sense?

The user may wish to temporarily turn off a couple of viewports. I'll have
Python change the size of the remaining viewports to fully use the window.
The information flowing into the unwanted SuperviseWindows can be turned
off with a Route, so it doesn't try to update. But where do I direct its
output? Could I set its window id temporarily to zero?

Finally, for shared rotations, pans, etc., it seems I could use Route to
send the events from one SupervisWindow to all the SuperviseStates. Does
that make sense?

Sorry to bother yall with postings to two groups but this fell inbetween.

Thanks in advance for your sugggestions!
Kent
- - -
Kent Eschenberg   [EMAIL PROTECTED]   (412)268-6829
Scientific Visualization Specialist, Pittsburgh Supercomputing Center

There are 10 types of people in the world: those who
understand binary, and those who don't.


Reply via email to