home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / DRAWFN3S.ZIP / VIEWOBJ.H < prev   
Encoding:
C/C++ Source or Header  |  1990-05-06  |  1.5 KB  |  46 lines

  1. /*****************************************************************************
  2. * General, visible to others, definitions of View Object module.         *
  3. *                                         *
  4. * Written by:  Gershon Elber            IBM PC Ver 0.1,    Sep. 1988    *
  5. *****************************************************************************/
  6.  
  7. #ifndef    VIEW_OBJ_H
  8. #define    VIEW_OBJ_H
  9.  
  10. /* Interactive menu setup structure: */
  11. #define INTERACT_NUM_OF_STRINGS    3
  12. #define INTERACT_NUM_OF_SUB_WINDOWS    11
  13. #define INTERACT_SUB_WINDOW_HEIGHT    0.04  /* Actually half Height/Width. */
  14. #define INTERACT_SUB_WINDOW_WIDTH    0.3
  15.  
  16. #define MAX_ROTATE_ANGLE    45.0 /* Max. rates used by interactive mode. */
  17. #define MAX_TRANSLATE_FACTOR    2.0
  18. #define MAX_SCALE_FACTOR    2.0
  19.  
  20. #define GENERIC_MAT_FILE    "generic.mat"
  21.  
  22. typedef struct InteractString {
  23.     double X, Y;
  24.     int Color;
  25.     char *Str;
  26. } InteractString;
  27. typedef struct InteractSubWindow {
  28.     double X, Y;                       /* Center points. */
  29.     int Color,
  30.     TextInside; /* If TRUE, Str will be in window, otherwise left to it. */
  31.     char *Str;
  32. } InteractSubWindow;
  33. typedef struct InteractWindowStruct {     /* The interactive menu structures. */
  34.     /* Rotate, Translate, Scale strings: */
  35.     InteractString Strings[INTERACT_NUM_OF_STRINGS];
  36.     InteractSubWindow SubWindows[INTERACT_NUM_OF_SUB_WINDOWS];
  37. } InteractWindowStruct;
  38.  
  39.  
  40. /* Prototypes for the View Object module: */
  41.  
  42. void InteractDrawMenu(void);
  43. int InteractHandleInput(MatrixType TransMat, MatrixType OrigMat);
  44.  
  45. #endif    VIEW_OBJ_H
  46.