home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!ames!nsisrv!gorgo.gsfc.nasa.gov!sullivan
- From: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
- Subject: Mixed model work procs question
- Message-ID: <1992Nov12.155902@gorgo.gsfc.nasa.gov>
- Keywords: mixed model, work procs
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: gorgo.gsfc.nasa.gov
- Reply-To: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
- Organization: NASA/GSFC Hydrospheric Sciences Branch
- Date: Thu, 12 Nov 1992 23:59:02 GMT
- Lines: 33
-
-
-
- I am porting a program from GL to GL/Motif and I have a question about
- setting and tracking the pointer.
- The GL program plots data on the world and allows the user to roam the world.
- (perspective and polarview)
- When the user pushes the "ROAM" widget on the control panel, the program
- moves the cursor to the center of the GL window.
- -The left/right mouse button increases/decreases distance from
- Earth surface
- -Horizontal/vertical distance from the center of the window
- controls azimuth/inclination
- -The cursor is constrained to an area of 100 pixels square within
- the window.
- - Program exits "ROAM" mode when the escape key is pressed.
-
- What is the best way to implement this using mixed model programming?
- I could use work procs, but I need to know the position of the cursor.
- Should I use Xquerypointer to track cursor movement?
- Is there a way to constrain the cursor, as with setvaluator?
-
- Any advice would be greatly appreciated.
- Thanks
- Dan
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Dan Sullivan # Laboratory for Terrestrial Physics
- (STX)
- # Code 920.2
- sullivan@gorgo.gsfc.nasa.gov # NASA-Goddard Space Flight Center
- # Greenbelt, MD 20771
- # voice: (301) 286-2484
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-