home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / hfiles / constant.h < prev    next >
C/C++ Source or Header  |  1990-05-02  |  5KB  |  171 lines

  1. #ifndef lint
  2. static char SccsConstId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Constant.h
  6.  * Purpose:    Named constants to identify modes and requests
  7.  * Modified:    {0} Michael VanHilst    initial version         31 December 1987
  8.  *        {1} MVH    Some names changed for X11 version      18 May 1989
  9.  *        {n} <who> -- <does what> -- <when>
  10.  */
  11.  
  12. /* special flag values to recognize a unique condition */
  13. #define INOTSET -0x2000000
  14.  
  15. /* major mode identifiers */
  16. #define BOP    0x001        /* black and white halftone color maps */
  17. #define COP    0x002        /* cursors */
  18. #define EOP    0x003        /* environment controls */
  19. #define GOP    0x004        /* color graph manipulation */
  20. #define MOP    0x005        /* color maps */
  21. #define ROP    0x006        /* region controls */
  22. #define SOP    0x007        /* image reading and scaling */
  23. #define VOP    0x008        /* color manipulation */
  24. #define XOP    0x009        /* magnifier window */
  25. #define ZOP    0x00a        /* pan and zoom */
  26.  
  27. /* environment control flags */
  28. #define EOP_Verbose    0x0010
  29. #define EOP_Raise    0x0020
  30. #define EOP_Reset    0x0030
  31. #define EOP_Track    0x0040
  32. #define EOP_ScopeTrack    0x0050
  33. #define EOP_TextTrack    0x0060
  34. #define EOP_ColorTrack    0x0070
  35. #define EOP_Output    0x0080
  36. #define EOP_NewFile    0x0090
  37. #define EOP_Exit    0x0100
  38.  
  39. /* image drawing flags  - use code numbers */
  40. #define SOP_Linear    0x0001
  41. #define SOP_Wrap    0x0002
  42. #define SOP_Sqrt    0x0003
  43. #define SOP_Log        0x0004
  44. #define SOP_HistEq    0x0005
  45. #define SOP_Zscale    0x0007
  46. #define SOP_Histogram    0x0010
  47. #define SOP_Blink    0x0100
  48.  
  49. #define SOP_ZoomNone    0x000b
  50. #define SOP_ZoomSamp    0x000c
  51. #define SOP_ZoomMax    0x000d
  52. #define SOP_ZoomSum    0x000e
  53. #define SOP_ZoomAv    0x000f
  54.  
  55. /* image reading file and pipe packet types */
  56. #define SOP_Array    0x0010        /* raster array */
  57. #define SOP_FITS    0x0020        /* FlexibleImageTransferSystem */
  58. #define SOP_SAOCCD    0x0030        /* SAO CCD FITS-like array */
  59. #define SOP_IRAF    0x0040        /* IRAF imh file header */
  60. #define SOP_IPC        0x0050        /* Einstein satellite IPC */
  61. #define SOP_HRI        0x0060        /* Einstein satellite HRI */
  62. #define SOP_ROSAT    0x0070        /* Roentgen satellite raw */
  63. #define SOP_HOPR    0x0080        /* ROSAT HRI intermediate */
  64. #define SOP_PROS    0x0090        /* IRAF pipe with PROS regions */
  65. #define SOP_Imtool    0x00a0        /* IRAF pipe with NOAO lists */
  66. #define SOP_MIDAS    0x00b0
  67. #define SOP_Logo    0x00c0
  68. #define SOP_Giff    0x00d0        /* compressed */
  69. #define SOP_RLE        0x00e0        /* Utah RunLengthEncoded */
  70. #define SOP_HDF        0x00f0        /* NCSA image format */
  71.  
  72. /* Array types for iamge data */
  73. #define ARR_None    0x0000
  74. #define ARR_U1        0x0001
  75. #define ARR_I2        0x0002
  76. #define ARR_U2        0x0003
  77. #define ARR_I4        0x0004
  78. #define ARR_R4        0x0014
  79. #define ARR_R8        0x0018
  80. #define ARR_ASC_I    0x0021
  81. #define ARR_ASC_R    0x0022
  82. #define ARR_ASC_Sc    0x0023
  83.  
  84. /* color modifying flags */
  85. #define VOP_Halftone    0x0001
  86. #define VOP_Cells    0x0002
  87. #define VOP_Overlay    0x0004
  88. #define VOP_PseudoColor 0x0010
  89. #define VOP_StaticColor 0x0020
  90.  
  91. #define VOP_ContBias    0x1000
  92. #define VOP_ThreshSat    0x2000
  93. #define VOP_gamma    0x4000
  94. #define VOP_Invert    0x0080
  95.  
  96. #define MOP_Store    0x0010
  97. #define MOP_Recall    0x0020
  98. #define MOP_Write    0x0030
  99. #define MOP_Read    0x0040
  100.  
  101. #define MOP_GrayScale    0x0000
  102. #define MOP_Init_A    0x0100
  103. #define MOP_Init_B    0x0200
  104. #define MOP_Init_C    0x0300
  105. #define MOP_Init_D    0x0400
  106. #define MOP_Init_E    0x0500
  107. #define MOP_Init_F    0x0600
  108. #define MOP_Init_G    0x0700
  109. #define MOP_Init_H    0x0800
  110. #define MOP_SignOff    0x1000
  111.  
  112. /* BLACK AND WHITE HALFTONING */
  113. #define BOP_Dither    0x0010
  114. #define BOP_Diffuse    0x0020
  115. #define BOP_ImPress    0x0030
  116. #define BOP_PostScript    0x0040
  117. #define BOP_Invert    0x0080
  118. #define BOP_Matrix1    0x0100        /* WEIGHTING MATRICES FOR DITHER */
  119. #define BOP_Matrix2    0x0200
  120. #define BOP_SignOff    0x1000
  121.  
  122. /* REGION FLAGS */
  123. #define ROP_Appnd       0x0001
  124. #define ROP_Cycle       0x0002
  125. #define ROP_Label       0x0003
  126. #define ROP_Omit        0x0004
  127. #define ROP_Reset       0x0005
  128. #define ROP_View        0x0006
  129. #define ROP_Read        0x0007
  130. #define ROP_Write       0x0008
  131. #define ROP_Tody    0x0100
  132. #define ROP_Eric    0x0200
  133.  
  134. /* DISPLAY ZOOMING  - use bits */
  135. #define ZOP_ZPan    0x00ff
  136. #define ZOP_unZPan    0xff00
  137.  
  138. #define ZOP_ZPan14    0x0020
  139. #define ZOP_ZPan12    0x0010
  140. #define ZOP_ZPan1    0x0001
  141. #define ZOP_ZPan2    0x0002
  142. #define ZOP_ZPan4    0x0004
  143. #define ZOP_Center    0x0100
  144.  
  145. /* CURSOR TYPES */
  146. #define COP_Shape    0x0f00
  147. #define COP_Point    0x0100
  148. #define COP_Polygon    0x0200
  149. #define COP_Box        0x0300
  150. #define COP_Circle    0x0400
  151. #define COP_Ellipse    0x0500
  152. #define COP_Arrow    0x0600
  153. #define COP_Text    0x0700
  154. #define COP_Bitmap    0x0800
  155. #define COP_Annuli    0x1000
  156. #define COP_PieSlice    0x2000
  157. #define COP_SetOrigin    0x4000
  158. #define COP_Orthogonal    0x8000
  159. #define COP_Print    0x0010
  160.  
  161. /* ZOOMBOX SCOPE ZOOM */
  162. #define XOP_Scope    0x000f
  163. #define XOP_unScope    0xfff0
  164.  
  165. #define XOP_Scope1    0x0001
  166. #define XOP_Scope2    0x0002
  167. #define XOP_Scope4    0x0004
  168. #define XOP_Scope8    0x0008
  169. #define XOP_View    -1
  170. #define XOP_Text    -2
  171.