home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16357 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!ames!nsisrv!gorgo.gsfc.nasa.gov!sullivan
  3. From: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
  4. Subject: Mixed model work procs question
  5. Message-ID: <1992Nov12.155902@gorgo.gsfc.nasa.gov>
  6. Keywords: mixed model, work procs
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: gorgo.gsfc.nasa.gov
  9. Reply-To: sullivan@gorgo.gsfc.nasa.gov (Dan sullivan)
  10. Organization: NASA/GSFC Hydrospheric Sciences Branch
  11. Date: Thu, 12 Nov 1992 23:59:02 GMT
  12. Lines: 33
  13.  
  14.  
  15.  
  16. I am porting a program from GL to GL/Motif and I have a question about
  17. setting and tracking the pointer. 
  18. The GL program plots data on the world and allows the user to roam the world.
  19. (perspective and polarview)
  20. When the user pushes the "ROAM" widget on the control panel, the program
  21. moves the cursor to the center of the GL window. 
  22.      -The left/right mouse button increases/decreases distance from
  23. Earth surface
  24.      -Horizontal/vertical distance from the center of the window
  25.          controls azimuth/inclination 
  26.      -The cursor is constrained to an area of 100 pixels square within
  27.      the window.
  28.      - Program exits "ROAM" mode when the escape key is pressed.
  29.  
  30. What is the best way to implement this using mixed model programming?
  31. I could use work procs, but I need to know the position of the cursor.
  32. Should I use Xquerypointer to track cursor movement?
  33. Is there a way to constrain the cursor, as with setvaluator?
  34.  
  35. Any advice would be greatly appreciated.
  36.             Thanks
  37.                    Dan
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. Dan Sullivan                   #  Laboratory for Terrestrial Physics
  40. (STX) 
  41.                                #  Code 920.2
  42. sullivan@gorgo.gsfc.nasa.gov   #  NASA-Goddard Space Flight Center
  43.                                #  Greenbelt, MD 20771
  44.                                #  voice: (301) 286-2484
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46.  
  47.