home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / test / InsPEX / include / wdt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-21  |  36.9 KB  |  1,158 lines

  1.  
  2. /* $XConsortium: wdt.h,v 5.6 91/11/26 16:01:32 hersh Exp $ */
  3.  
  4. /*****************************************************************
  5. Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Sun Microsystems,
  14. the X Consortium, and MIT not be used in advertising or publicity 
  15. pertaining to distribution of the software without specific, written 
  16. prior permission.  
  17.  
  18. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  19. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 
  20. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  21. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28.  
  29. /*
  30.  * wdt.h: implementation dependent data for workstation description table
  31.  */
  32.  
  33. /* JSH - include so that MAXFLOAT is defined */
  34. #if !defined(X_NOT_STDC_ENV) && (__STDC__ || !defined(sun))
  35. #include <float.h>
  36. #endif
  37. #ifndef MAXFLOAT
  38. #ifdef FLT_MAX
  39. #define MAXFLOAT FLT_MAX
  40. #else
  41. #ifdef vax
  42. #define MAXFLOAT ((float)1.701411733192644299e+38)
  43. #else
  44. #define MAXFLOAT ((float)3.40282346638528860e+38)
  45. #endif /* vax */
  46. #endif /* FLT_MAX */
  47. #endif /* MAXFLOAT */
  48.  
  49. #ifdef PHIGS_WS_TYPE_X_TOOL
  50.  
  51. #define WSTYPE  "colour X tool"
  52.  
  53. /* ws connection id */
  54. Pconnid ws_connid = NULL;
  55.  
  56. /* macro for opening a "tool" type workstation */
  57. #define OPEN_WS1()  popen_ws(1, ws_connid, phigs_ws_type_x_tool);
  58.  
  59. #endif
  60.  
  61. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  62.  
  63. #define WSTYPE  "colour X drawable"
  64.  
  65. Display *ws_display;
  66. Window ws_window;
  67. Pconnid_x_drawable ws_conn;
  68.  
  69. /* ws connection id */
  70. Pconnid ws_connid;
  71.  
  72. #define WIN_WIDTH 100
  73. #define WIN_HEIGHT 100
  74. #define WIN_X 0
  75. #define WIN_Y 0
  76.  
  77. /* macro for opening a "xdrawable" type workstation */
  78. #define OPEN_WS1()  \
  79.     {\
  80.         i_make_xwindow( &ws_display,&ws_window, &ws_conn, \
  81.             WIN_X,WIN_Y,WIN_WIDTH,WIN_HEIGHT);\
  82.         popen_ws(1, &ws_conn, phigs_ws_type_x_drawable);\
  83.         ws_connid = (Pconnid) &ws_conn;\
  84.     }
  85.  
  86.  
  87.  
  88. #endif
  89.  
  90.  
  91. /*****************************************************
  92.  * Section 1 - 
  93.  * Data used by "inquire xxx facilities"  (wdt1.c)
  94.  *****************************************************/
  95.  
  96. /* 
  97.  * HLHSR 
  98.  */
  99.  
  100. #ifdef INSPEX_MONOCHROME_WS
  101. #endif
  102.  
  103. /* number and list of available HLHSR identifiers */
  104. Pint num_hlhsr_id = 2;
  105. Pint list_hlhsr_id[] = { PHIGS_HLHSR_ID_OFF, PHIGS_HLHSR_ID_ON };
  106.  
  107. /* number and list of available HLHSR modes */
  108. Pint num_hlhsr_mode = 1;
  109. Pint list_hlhsr_mode[] = { PHIGS_HLHSR_MODE_NONE };
  110.  
  111. /* 
  112.  * View 
  113.  */
  114.  
  115. /* number of predefined view indices */
  116. Pint num_pred_view_idx = 6;
  117.  
  118. /* 
  119.  * Line 
  120.  */
  121.  
  122. /* number and list of available line types */
  123. Pint num_line_type = 4;
  124. Pint list_line_type[] = { PLINE_SOLID, PLINE_DASH, PLINE_DOT, PLINE_DASH_DOT };
  125.  
  126.  
  127. /* number of available, nominal, minimum and maximum linewidths */
  128. Pint num_line_width = 1;
  129. Pfloat nom_line_width = 1.0;
  130. Pfloat min_line_width = 1.0;
  131. Pfloat max_line_width = 4294967296.0;
  132.  
  133. /* number of predefined polyline indices */
  134. Pint num_pred_line_idx = 5;
  135.  
  136.  
  137. /* 
  138.  * Marker 
  139.  */
  140.  
  141. /* number and list of available marker types */
  142. Pint num_marker_type = 5;
  143. Pint list_marker_type[] = { PMARKER_DOT, PMARKER_PLUS, PMARKER_ASTERISK, PMARKER_CIRCLE, PMARKER_CROSS };
  144.  
  145.  
  146. /* number of available, nominal, minimum and maximum marker size */
  147. Pint num_marker_size = 1;
  148. Pfloat nom_marker_size = 1.0;
  149. Pfloat min_marker_size = 1.0;
  150. Pfloat max_marker_size = 4294967296.0;
  151.  
  152. /* number of predefined marker indices */
  153. Pint num_pred_marker_idx = 5;
  154.  
  155. /* 
  156.  * Text 
  157.  */
  158.  
  159. /* number and list of text fonts and precision pairs */
  160. Pint num_font_precision = 3;
  161. Ptext_font_prec list_font_precision[] = { {1,PPREC_STRING}, 
  162.                                      {1,PPREC_CHAR},
  163.                                      {1,PPREC_STROKE} };
  164.  
  165. /* number of available, minimum, maximum character expansion factors */
  166. Pint num_char_exp = 0.0;
  167. Pfloat min_char_exp = 0.0;
  168. Pfloat max_char_exp = MAXFLOAT;
  169.  
  170. /* number of available, minimum, maximum character heights */
  171. Pint num_char_height = 0.0;
  172. Pfloat min_char_height = 0.0;
  173. Pfloat max_char_height = MAXFLOAT;
  174.  
  175. /* number of predefined text indices */
  176. Pint num_pred_text_idx = 6;
  177.  
  178. /* 
  179.  * Annotation text 
  180.  */
  181.  
  182. /* number and list of annotation styles */
  183. Pint num_anno_style = 2;
  184. Pint list_anno_style[] = { 1,2 };
  185.  
  186. /* number of available, minimum, maximum annotation character heights */
  187. Pint num_anno_char_height = 0.0;
  188. Pfloat min_anno_char_height = 0.0;
  189. Pfloat max_anno_char_height = MAXFLOAT;
  190.  
  191.  
  192. /* 
  193.  * Interior 
  194.  */
  195.  
  196. /* number and list of available interior styles */
  197. Pint num_interior_style = 3;
  198. Pint list_interior_style[] = { PSTYLE_HOLLOW, PSTYLE_SOLID, PSTYLE_EMPTY };
  199.  
  200. /* number and list of available hatch styles */
  201. Pint num_hatch_style = 0;
  202. Pint list_hatch_style[] = { NULL };
  203.  
  204. /* number of predefined interior indices */
  205. Pint num_pred_interior_idx = 5;
  206.  
  207. /*
  208.  * Pattern
  209.  */
  210.  
  211. /* number of predefined pattern indices */
  212. Pint num_pred_pattern_idx = 0;
  213.  
  214. /* 
  215.  * Edge 
  216.  */
  217.  
  218. /* number and list of available edge types */
  219. Pint num_edge_type = 4;
  220. Pint list_edge_type[] = { PLINE_SOLID, PLINE_DASH, PLINE_DOT, PLINE_DASH_DOT };
  221.  
  222.  
  223. /* number of available, nominal, minimum and maximum edge widths */
  224. Pint num_edge_width = 1;
  225. Pfloat nom_edge_width = 1.0;
  226. Pfloat min_edge_width = 1.0;
  227. Pfloat max_edge_width = 4294967296.0;
  228.  
  229. /* number of predefined edge indices */
  230. Pint num_pred_edge_idx = 5;
  231.  
  232. /* 
  233.  * Colour Model
  234.  */
  235.  
  236. /* number and list of available, default colour models */
  237. Pint num_col_model = 1;
  238. Pint list_col_model[] = {PMODEL_RGB };
  239. Pint def_col_model = PMODEL_RGB;
  240.  
  241.  
  242. /*
  243.  * Colour
  244.  */
  245.  
  246. #ifdef INSPEX_MONOCHROME_WS
  247. #endif
  248.  
  249. /* luminance values and chromaticity coordinates of display primaries */
  250. /*
  251. Pchrom_coeff chromaticity[3] = { {0.628,0.346}, {0.268,0.588}, {0.150,0.070} };
  252. */
  253.  
  254. /* colour availability */
  255. Pcolr_avail col_avail = PAVAIL_COLR;
  256.  
  257. /* number of available, number of predefined colour indices */
  258. Pint num_col_idx = 256;
  259. Pint num_pred_col_idx = 8;
  260.  
  261.  
  262. /***************************************************
  263.  * Section 2 - 
  264.  * Data used by "inqure predefined xxx", 
  265.  * and "inqure list of xxx indices" (wdt2.c)
  266.  ***************************************************/
  267.  
  268. /*
  269.    Note: The nth element of "pred_xxx_reps" refers to 
  270.      the nth element of "list_pred_xxx_idx" 
  271. */
  272.  
  273.  
  274. /* 
  275.    list of predifined view indices  and
  276.    tables of predefined view representation: 
  277.     . view index 
  278.     . view representation:
  279.         orientation and mapping matrix, clipping limits,
  280.         x-y, back and front clipping indicator
  281. */
  282.  
  283. Pint list_pred_view_idx[] = {0,1,2,3,4,5};
  284. Pview_rep3 pred_view_reps[] = {
  285.     /* view 0 */
  286.     {{{1.0, 0.0, 0.0, 0.0},
  287.     {0.0, 1.0, 0.0, 0.0},
  288.     {0.0, 0.0, 1.0, 0.0},
  289.     {0.0, 0.0, 0.0, 1.0}},
  290.     {{1.0, 0.0, 0.0, 0.0},
  291.     {0.0, 1.0, 0.0, 0.0},
  292.     {0.0, 0.0, 1.0, 0.0},
  293.     {0.0, 0.0, 0.0, 1.0}},
  294.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  295.     PIND_CLIP, PIND_CLIP, PIND_CLIP} ,
  296.     /* view 1 */
  297.     {{{1.0, 0.0, 0.0, 0.0},
  298.     {0.0, 1.0, 0.0, 0.0},
  299.     {0.0, 0.0, 1.0, 0.0},
  300.     {0.0, 0.0, 0.0, 1.0}},
  301.     {{0.3, 0.0, 0.0, 0.1},
  302.     {0.0, 0.3, 0.0, 0.1},
  303.     {0.0, 0.0, 1.0, 0.0},
  304.     {0.0, 0.0, 0.0, 1.0}},
  305.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  306.     PIND_CLIP, PIND_CLIP, PIND_CLIP} ,
  307.     /* view 2 */
  308.     {{{1.0, 0.0, 0.0, 0.0},
  309.     {0.0, 0.0, -1.0, 0.0},
  310.     {0.0, 1.0, 0.0, 0.0},
  311.     {0.0, 0.0, 0.0, 1.0}},
  312.     {{0.3, 0.0, 0.0, 0.1},
  313.     {0.0, 0.3, 0.0, 0.9},
  314.     {0.0, 0.0, 1.0, 0.0},
  315.     {0.0, 0.0, 0.0, 1.0}},
  316.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  317.     PIND_CLIP, PIND_CLIP, PIND_CLIP} ,
  318.     /* view 3 */
  319.     {{{0.0, 0.0, -1.0, 0.0},
  320.     {0.0, 1.0, 0.0, 0.0},
  321.     {1.0, 0.0, 0.0, 0.0},
  322.     {0.0, 0.0, 0.0, 1.0}},
  323.     {{0.3, 0.0, 0.0, 0.9},
  324.     {0.0, 0.3, 0.0, 0.1},
  325.     {0.0, 0.0, 1.0, 0.0},
  326.     {0.0, 0.0, 0.0, 1.0}},
  327.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  328.     PIND_CLIP, PIND_CLIP, PIND_CLIP} ,
  329.     /* view 4 */
  330.     {{{0.7071, 0.0, -0.7071, 0.0},
  331.     {-0.4082, 0.8165, -0.4082, 0.0},
  332.     {0.5774, 0.5774, 0.5774, 0.0},
  333.     {0.0, 0.0, 0.0, 1.0}},
  334.     {{0.2121, 0.0, 0.0, 0.75},
  335.     {0.0, 0.2121, 0.0, 0.75},
  336.     {0.0, 0.0, 0.5774, 0.0},
  337.     {0.0, 0.0, 0.0, 1.0}},
  338.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  339.     PIND_CLIP, PIND_CLIP, PIND_CLIP},
  340.     /* view 5 */
  341.     {{{0.7071, 0.0, -0.7071, 0.0},
  342.     {-0.4082, 0.8165, -0.4082, 0.0},
  343.     {0.5774, 0.5774, 0.5774, 0.0},
  344.     {0.0, 0.0, 0.0, 1.0}},
  345.     {{0.3536, 0.0, -0.025, 0.5},
  346.     {0.0, 0.3536, -0.025, 0.5},
  347.     {0.0, 0.0, 0.5274, 0.0},
  348.     {0.0, 0.0, -0.05, 1.0}},
  349.     {0.0, 1.0, 0.0, 1.0, 0.0, 1.0},
  350.     PIND_CLIP, PIND_CLIP, PIND_CLIP}
  351.     };
  352.  
  353. /* 
  354.    list of predifined polyline indices  and
  355.    table of predefined polyline bundles: type, width and colour 
  356. */
  357. Pint list_pred_line_idx[] = {1,2,3,4,5};
  358. Pline_bundle pred_line_reps[] = { {PLINE_SOLID, 1.0, 1} ,
  359.                                   {PLINE_DASH, 1.0, 1} ,
  360.                                   {PLINE_DOT, 1.0, 1} ,
  361.                                   {PLINE_DASH_DOT, 1.0, 1} ,
  362.                                   {PLINE_SOLID, 2.0, 1} 
  363.                 };
  364.  
  365. /* 
  366.    list of predifined polymarker indices  and
  367.    table of predefined polymarker bundles: type, size and colour 
  368. */
  369. Pint list_pred_marker_idx[] = {1,2,3,4,5};
  370. Pmarker_bundle pred_marker_reps[] = { {PMARKER_DOT, 1.0, 1}, 
  371.                                   {PMARKER_PLUS, 1.0, 1} ,
  372.                                   {PMARKER_ASTERISK, 1.0, 1} ,
  373.                                   {PMARKER_CIRCLE, 1.0, 1} ,
  374.                                   {PMARKER_CROSS, 1.0, 1} 
  375.                 };
  376.  
  377. /*
  378.    list of predifined text indices  and
  379.    table of predefined text bundles: 
  380.     text font and precision, 
  381.     character expansion factor and spacing 
  382.     text colour
  383. */
  384. Pint list_pred_text_idx[] = {1,2,3,4,5,6};
  385. Ptext_bundle pred_text_reps[] = { {1, PPREC_STROKE, 1.0, 0.0, 1}, 
  386.                                   {1, PPREC_STROKE, 1.5, 0.0, 1}, 
  387.                                   {1, PPREC_STROKE, 2.0, 0.0, 1}, 
  388.                                   {1, PPREC_STROKE, 2.5, 0.0, 1}, 
  389.                                   {1, PPREC_STROKE, 3.0, 0.0, 1}, 
  390.                                   {1, PPREC_STROKE, 3.5, 0.0, 1}
  391.                 };
  392.         
  393. /*
  394.    list of predifined interior indices  and
  395.    table of predefined interior bundles: style, index and colour 
  396. */
  397. Pint list_pred_interior_idx[] = {1,2,3,4,5};
  398. Pint_bundle pred_interior_reps[] = { {PSTYLE_SOLID, 1, 1},
  399.                                      {PSTYLE_HOLLOW, 1, 1},
  400.                                      {PSTYLE_EMPTY, 1, 1},
  401.                                      {PSTYLE_SOLID, 1, 1},
  402.                                      {PSTYLE_SOLID, 1, 1}
  403.                 };
  404.  
  405. /*
  406.    list of predifined edge indices  and
  407.    table of predefined edge bundles: flag, type, scale and colour 
  408. */
  409. Pint list_pred_edge_idx[] = {1,2,3,4,5};
  410. Pedge_bundle pred_edge_reps[] = { {PEDGE_ON, PLINE_SOLID, 1.0, 1},
  411.                                   {PEDGE_ON, PLINE_DASH, 1.0, 1},
  412.                                   {PEDGE_ON, PLINE_DOT, 1.0, 1},
  413.                                   {PEDGE_ON, PLINE_DASH_DOT, 1.0, 1},
  414.                                   {PEDGE_ON, PLINE_SOLID, 3.0, 1}
  415.                 };
  416.  
  417. /*
  418.    list of predifined pattern indices  and
  419.    table of predefined pattern bundles: flag, type, scale and colour 
  420. */
  421. Pint list_pred_pattern_idx[] = {NULL};
  422. Ppat_rep pred_pattern_reps[] = { {NULL} };
  423.  
  424. /*
  425.    list of predifined colour indices  and
  426.    table of predefined colour bundles: x,y,z 
  427. */
  428. Pint list_pred_col_idx[] = {0,1,2,3,4,5,6,7};
  429. Pfloat pred_col_reps[][3] = { {0.0,0.0,0.0}, 
  430.             {1.0,1.0,1.0},
  431.             {1.0,0.0,0.0},
  432.             {0.0,1.0,0.0},
  433.             {0.0,0.0,1.0},
  434.             {1.0,1.0,0.0},
  435.             {0.0,1.0,1.0},
  436.             {1.0,0.0,1.0}};
  437.  
  438.  
  439. /*******************************************
  440.  * Section 3 - 
  441.  * Data used by misc inquiries  (wdt3.c)
  442.  *******************************************/
  443.  
  444. /* workstation category */
  445. Pws_cat wscat = PCAT_OUTIN;
  446.  
  447. /* workstation classification */
  448. Pws_class wsclass = PCLASS_RASTER;
  449.  
  450. /* workstation display size */
  451. Pdc_units device_coor_units = PDC_OTHER;
  452.  
  453. #ifdef PHIGS_WS_TYPE_X_TOOL
  454.     Pvec device_max_disp_size = {600.0, 600.0};
  455.     Pint_size raster_max_disp_size = {600, 600};
  456. #endif 
  457. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  458.     Pvec device_max_disp_size = {WIN_WIDTH , WIN_HEIGHT};
  459.     Pint_size raster_max_disp_size = {WIN_WIDTH, WIN_HEIGHT};
  460. #endif
  461.  
  462. /* workstation display size3 */
  463. Pdc_units device_coor_units3 = PDC_OTHER;
  464.  
  465. #ifdef PHIGS_WS_TYPE_X_TOOL
  466.     Pvec3 device_max_disp_size3 = {600.0, 600.0, 1.0};
  467.     Pint_size3 raster_max_disp_size3 = {600, 600, 8};
  468. #endif
  469.  
  470. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  471.     Pvec3 device_max_disp_size3 = {WIN_WIDTH, WIN_HEIGHT, 1.0};
  472.     Pint_size3 raster_max_disp_size3 = {WIN_WIDTH, WIN_HEIGHT, 8};
  473. #endif
  474.  
  475. /* 
  476.  * GDP
  477.  */
  478.  
  479. /*
  480.    Note: The nth element of "list_gdp_attrs" must corresponds to 
  481.      the nth element of "list_gdp" and "list_gdp_num_attrs"
  482. */
  483.  
  484. /* number and list of available Generalized Drawing Primitives */
  485. /* for each gdp, the number and list of attributes used */
  486. Pint num_gdp = 0;
  487. Pint list_gdp[] = { NULL };
  488. Pint list_gdp_num_attrs[] = { NULL };
  489. Pattrs list_gdp_attrs[][5] = {NULL};
  490.  
  491. /* 
  492.  * GDP3
  493.  */
  494. /*
  495.    Note: The nth element of "list_gdp3_attrs" must corresponds to 
  496.      the nth element of "list_gdp3" and "list_gdp3_num_attrs"
  497. */
  498.  
  499. /* number and list of available Generalized Drawing Primitives 3 */
  500. /* for each gdp3, the number and list of attributes used */
  501. Pint num_gdp3 = 0;
  502. Pint list_gdp3[] = { NULL };
  503. Pint list_gdp3_num_attrs[] = { NULL };
  504. Pattrs list_gdp3_attrs[][5] = {NULL};
  505.  
  506. /* 
  507.  * GSE 
  508.  */
  509.  
  510. /* number and list of available Generalized Structure Elements */
  511. Pint num_gse = 0;
  512. Pint list_gse[] = { NULL };
  513.  
  514. /* 
  515.    dynamic modification of workstation : 
  516.        polyline,polymarker,text,interior,edge,pattern,
  517.     and colour bundle representation;
  518.        view representation; workstation transformation; 
  519.        highlighting and invisibility filter; HLHSR 
  520. */
  521.  
  522. Pdyns_ws_attrs ws_dyn_mods = { PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, 
  523.               PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG };
  524.  
  525. /* 
  526.    dynamic modification of structure : 
  527.     structure content modification, 
  528.     post structure, unpost structure,
  529.     delete structure, reference modification 
  530. */
  531.  
  532. Pdyns_structs str_dyn_mods = { PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG, PDYN_IRG };
  533.  
  534. /* default display deferral/modification mode */
  535. Pdefer_mode  def_defer_mode = PDEFER_ASAP;
  536. Pmod_mode  def_mod_mode = PMODE_UQUM;
  537.  
  538. /* number of display priorities supported */
  539. Pint num_display_pri = 0;
  540.  
  541. /* 
  542.    workstation table length :
  543.        polyline, polymarker, text, interior, edge, pattern, colour, view 
  544. */
  545. Pws_st_tables ws_tbl_lengths  =  { 20, 20, 20, 20, 20, 0, 256, 6 };
  546.  
  547.  
  548. /*******************************************
  549.  * Section 4 - 
  550.  * Data used by input inquiries  (wdt4.c)
  551.  *******************************************/
  552.  
  553. /* 
  554.   number of logical device of class:
  555.     locator, stroke, valuator, pick and string
  556. */
  557.  
  558. Pint  num_locator_dev = 3;
  559. Pint  num_stroke_dev = 1;
  560. Pint  num_valuator_dev = 12;
  561. Pint  num_choice_dev = 3;
  562. Pint  num_pick_dev = 1;
  563. Pint  num_string_dev = 1;
  564.  
  565. /*
  566.   default data for every logical device of class locator(3):
  567.     initial position, list of prompt and echo types and echo area/volume.
  568.  
  569.   The followings are :
  570.     list of device number,
  571.     list of initial positions,
  572.     list of number of available prompt and echo types,
  573.     list of list of available prompt and echo types,
  574.     list of echo areas/volume,
  575.   Note: 
  576.     1. the nth element of list_* refers to the nth element of
  577.        list_locator_dev_num[].
  578.  
  579.     2. locator data records are ommited, since they will not be verified 
  580. */
  581.  
  582. Pint list_locator_dev_num [] = {1,2,3};
  583. Ppoint list_locator_init_pos[] = {{0.0,0.0},{0.0,0.0},{0.0,0.0}};
  584. Pint list_locator_num_pet[] = {1,1,1};
  585. Pint list_locator_list_pet[][10] = { {1},{1},{1} };
  586.  
  587. #ifdef PHIGS_WS_TYPE_X_TOOL
  588. Plimit list_locator_def_echo_area[] = { {0.0,600.0, 0.0,600.0},
  589.                                         {0.0,600.0, 0.0,600.0},
  590.                                         {0.0,600.0, 0.0,600.0}};
  591. #endif
  592. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  593. Plimit list_locator_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  594.                                         {0.0,WIN_WIDTH, 0.0,WIN_HEIGHT},
  595.                                         {0.0,WIN_WIDTH, 0.0,WIN_HEIGHT}};
  596. #endif
  597.  
  598. Pint list_locator3_dev_num [] = {1,2,3};
  599. Ppoint3 list_locator3_init_pos[] = {{0.0,0.0,0.0},{0.0,0.0,0.0},{0.0,0.0,0.0}};
  600. Pint list_locator3_num_pet[] = {1,1,1};
  601. Pint list_locator3_list_pet[][10] = { {1},{1},{1} };
  602.  
  603. #ifdef PHIGS_WS_TYPE_X_TOOL
  604. Plimit3 list_locator3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0},
  605.                                             {0.0,600.0, 0.0,600.0, 0.0,1.0},
  606.                                             {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  607. #endif
  608. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  609. Plimit3 list_locator3_def_echo_volume[] = { 
  610.                 {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  611.                                 {0.0,WIN_WIDTH,0.0,WIN_HEIGHT, 0.0,1.0},
  612.                                 {0.0,WIN_WIDTH,0.0,WIN_HEIGHT, 0.0,1.0} };
  613. #endif
  614.  
  615. /*
  616.   default data for every logical device of class choice(3):
  617.     max # of choices, list of prompt and echo types and echo area/volume.
  618.  
  619.   The followings are :
  620.     list of device number,
  621.     list of maximum number of choices,
  622.     list of number of available prompt and echo types,
  623.     list of list of available prompt and echo types,
  624.     list of echo areas/volume,
  625.   Note: 
  626.     1. the nth element of list_* refers to the nth element of
  627.        list_choice_dev_num[].
  628.  
  629.     2. choice data records are ommited, since they will not be verified 
  630. */
  631.  
  632. Pint list_choice_dev_num [] = {1};
  633. Pint list_choice_max_num_choice[] = {100};
  634. Pint list_choice_num_pet[] = {2};
  635. Pint list_choice_list_pet[][10] = { {1,3} };
  636. #ifdef PHIGS_WS_TYPE_X_TOOL
  637. Plimit list_choice_def_echo_area[] = { {0.0,600.0, 0.0,600.0} };
  638. #endif
  639. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  640. Plimit list_choice_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT} };
  641. #endif
  642.  
  643. Pint list_choice3_dev_num [] = {1};
  644. Pint list_choice3_max_num_choice[] = {100};
  645. Pint list_choice3_num_pet[] = {2};
  646. Pint list_choice3_list_pet[][10] = { {1,3} };
  647. #ifdef PHIGS_WS_TYPE_X_TOOL
  648. Plimit3 list_choice3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  649. #endif
  650. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  651. Plimit3 list_choice3_def_echo_volume[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0} };
  652. #endif
  653.  
  654. /*
  655.   default data for every logical device of class valuator(3):
  656.     initial position, list of prompt and echo types and echo area/volume.
  657.  
  658.   The followings are :
  659.     list of device number,
  660.     list of default initial value,
  661.     list of number of available prompt and echo types,
  662.     list of list of available prompt and echo types,
  663.     list of echo areas/volume,
  664.   Note: 
  665.     1. the nth element of list_* refers to the nth element of
  666.        list_valuator_dev_num[].
  667.  
  668.     2. valuator data records are ommited, since they will not be verified 
  669. */
  670.  
  671. Pint list_valuator_dev_num [] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
  672. Pfloat list_valuator_def_init_value[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
  673. Pint list_valuator_num_pet[] = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2};
  674. Pint list_valuator_list_pet[][10] = { {1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1} };
  675. #ifdef PHIGS_WS_TYPE_X_TOOL
  676. Plimit list_valuator_def_echo_area[] = { {0.0,600.0, 0.0,600.0} ,
  677. {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} ,
  678. {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} ,
  679. {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} ,
  680. {0.0,600.0, 0.0,600.0} , {0.0,600.0, 0.0,600.0} };
  681. #endif
  682. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  683. Plimit list_valuator_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  684. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  685. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  686. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  687. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  688. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT},
  689. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT} };
  690. #endif
  691.  
  692. Pint list_valuator3_dev_num [] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
  693. Pfloat list_valuator3_def_init_value[] = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
  694. Pint list_valuator3_num_pet[] = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2};
  695. Pint list_valuator3_list_pet[][10] = { {1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1},{1,-1} };
  696. #ifdef PHIGS_WS_TYPE_X_TOOL
  697. Plimit3 list_valuator3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0},
  698. {0.0,600.0, 0.0,600.0, 0.0,1.0}, {0.0,600.0, 0.0,600.0, 0.0,1.0},
  699. {0.0,600.0, 0.0,600.0, 0.0,1.0}, {0.0,600.0, 0.0,600.0, 0.0,1.0},
  700. {0.0,600.0, 0.0,600.0, 0.0,1.0}, {0.0,600.0, 0.0,600.0, 0.0,1.0},
  701. {0.0,600.0, 0.0,600.0, 0.0,1.0}, {0.0,600.0, 0.0,600.0, 0.0,1.0},
  702. {0.0,600.0, 0.0,600.0, 0.0,1.0}, {0.0,600.0, 0.0,600.0, 0.0,1.0},
  703. {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  704. #endif
  705. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  706. Plimit3 list_valuator3_def_echo_volume[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  707. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  708. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  709. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  710. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  711. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0}, {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0},
  712. {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0} };
  713. #endif
  714. /*
  715.   default data for every logical device of class stroke(3):
  716.     initial position, list of prompt and echo types and echo area/volume.
  717.  
  718.   The followings are :
  719.     list of device number,
  720.     list of available input buffer size,
  721.     list of number of available prompt and echo types,
  722.     list of list of available prompt and echo types,
  723.     list of echo areas/volume,
  724.   Note: 
  725.     1. the nth element of list_* refers to the nth element of
  726.        list_stroke_dev_num[].
  727.  
  728.     2. stroke data records are ommited, since they will not be verified 
  729. */
  730.  
  731. Pint list_stroke_dev_num [] = {1};
  732. Pint list_stroke_avail_bufsize[] = {200};
  733. Pint list_stroke_num_pet[] = {1};
  734. Pint list_stroke_list_pet[][10] = { {1} };
  735. #ifdef PHIGS_WS_TYPE_X_TOOL
  736. Plimit list_stroke_def_echo_area[] = { {0.0,600.0, 0.0,600.0} };
  737. #endif
  738. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  739. Plimit list_stroke_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT} };
  740. #endif
  741.  
  742. Pint list_stroke3_dev_num [] = {1};
  743. Pint list_stroke3_avail_bufsize[] = {200};
  744. Pint list_stroke3_num_pet[] = {1};
  745. Pint list_stroke3_list_pet[][10] = { {1} };
  746. #ifdef PHIGS_WS_TYPE_X_TOOL
  747. Plimit3 list_stroke3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  748. #endif
  749. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  750. Plimit3 list_stroke3_def_echo_volume[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0} };
  751. #endif
  752.  
  753. /*
  754.   default data for every logical device of class string(3):
  755.     initial position, list of prompt and echo types and echo area/volume.
  756.  
  757.   The followings are :
  758.     list of device number,
  759.     list of available input buffer size,
  760.     list of number of available prompt and echo types,
  761.     list of list of available prompt and echo types,
  762.     list of echo areas/volume,
  763.   Note: 
  764.     1. the nth element of list_* refers to the nth element of
  765.        list_string_dev_num[].
  766.  
  767.     2. string data records are ommited, since they will not be verified 
  768. */
  769.  
  770. Pint list_string_dev_num [] = {1};
  771. Pint list_string_avail_bufsize[] = {1024};
  772. Pint list_string_num_pet[] = {1};
  773. Pint list_string_list_pet[][10] = { {1} };
  774. #ifdef PHIGS_WS_TYPE_X_TOOL
  775. Plimit list_string_def_echo_area[] = { {0.0,600.0, 0.0,600.0} };
  776. #endif
  777. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  778. Plimit list_string_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT} };
  779. #endif
  780.  
  781. Pint list_string3_dev_num [] = {1};
  782. Pint list_string3_avail_bufsize[] = {1024};
  783. Pint list_string3_num_pet[] = {1};
  784. Pint list_string3_list_pet[][10] = { {1} };
  785. #ifdef PHIGS_WS_TYPE_X_TOOL
  786. Plimit3 list_string3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  787. #endif
  788. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  789. Plimit3 list_string3_def_echo_volume[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0} };
  790. #endif
  791.  
  792. /*
  793.   default data for every logical device of class pick(3):
  794.     initial position, list of prompt and echo types and echo area/volume.
  795.  
  796.   The followings are :
  797.     list of device number,
  798.     list of number of available prompt and echo types,
  799.     list of list of available prompt and echo types,
  800.     list of echo areas/volume,
  801.   Note: 
  802.     1. the nth element of list_* refers to the nth element of
  803.        list_pick_dev_num[].
  804.  
  805.     2. pick data records are ommited, since they will not be verified 
  806. */
  807.  
  808. Pint list_pick_dev_num [] = {1};
  809. Pint list_pick_num_pet[] = {1};
  810. Pint list_pick_list_pet[][10] = { {1} };
  811. #ifdef PHIGS_WS_TYPE_X_TOOL
  812. Plimit list_pick_def_echo_area[] = { {0.0,600.0, 0.0,600.0} };
  813. #endif
  814. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  815. Plimit list_pick_def_echo_area[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT} };
  816. #endif
  817.  
  818. Pint list_pick3_dev_num [] = {1};
  819. Pint list_pick3_num_pet[] = {1};
  820. Pint list_pick3_list_pet[][10] = { {1} };
  821. #ifdef PHIGS_WS_TYPE_X_TOOL
  822. Plimit3 list_pick3_def_echo_volume[] = { {0.0,600.0, 0.0,600.0, 0.0,1.0} };
  823. #endif
  824. #ifdef PHIGS_WS_TYPE_X_DRAWABLE
  825. Plimit3 list_pick3_def_echo_volume[] = { {0.0,WIN_WIDTH,0.0,WIN_HEIGHT,0.0,1.0} };
  826. #endif
  827.  
  828. /*******************************************
  829.  * Section 5 - 
  830.  * Data used by PHIGS+ "inquire xxx facilities"  (wdt5.c)
  831.  * and PHIGS+ "inqure workstation table length plus"
  832.  *******************************************/
  833.  
  834.  
  835. /* number and list of available line shading methods */
  836. Pint num_line_shading_method = 1;
  837. Pint list_line_shading_method[] = { PSD_NONE};
  838.  
  839. /* number and list of available interior shading methods */
  840. Pint num_interior_shading_method = 1;
  841. Pint list_interior_shading_method[] = { PSD_NONE};
  842.  
  843. /* number and list of available reflectance equations */
  844. Pint num_reflectance_equation = 4;
  845. Pint list_reflectance_equation[] = { PREFL_NONE,
  846.     PREFL_AMBIENT,PREFL_AMB_DIFF,PREFL_AMB_DIFF_SPEC };
  847.  
  848. /* number of predefined depth cue indices */
  849. Pint num_pred_depth_cue_idx = 2;
  850.  
  851. /* number and list of available light source types */
  852. Pint num_light_src_type = 4;
  853. Pint list_light_src_type[] = { PLIGHT_AMBIENT, PLIGHT_DIRECTIONAL,
  854.                                PLIGHT_POSITIONAL, PLIGHT_SPOT};
  855.  
  856. /* maximum number of simultaneously active non-ambient lights */
  857. Pint max_num_simult_light = 64;
  858.  
  859. /* number of predefined light source indices */
  860. Pint num_pred_light_src_idx = 2;
  861.  
  862. /* maximum non-uniform B-spline order */
  863. Pint max_nurb_order = 10;
  864.  
  865. /* maximum parametric polynomial order */
  866. Pint max_para_poly_order = 0;
  867.  
  868. /* maximum trimming curve order */
  869. Pint max_trim_curve_order = 6;
  870.  
  871. /* number of predefined parametric surface indices */
  872. Pint num_pred_para_surface_idx = 0;
  873.  
  874. /* number and list of available parametric polynomial curve types */
  875. Pint num_para_poly_curve_type = 0;
  876. Pint list_para_poly_curve_type[] = {NULL};
  877.  
  878. /* number and list of available parametric polynomial surface types */
  879. Pint num_para_poly_surface_type = 0;
  880. Pint list_para_poly_surface_type[] = {NULL};
  881.  
  882. /* number and list of available curve approximation criteria types */
  883. Pint num_curve_approx_type = 6;
  884. Pint list_curve_approx_type[] = {PCURV_WS_DEP,
  885.     PCURV_CONSTANT_PARAMETRIC_BETWEEN_KNOTS,
  886.     PCURV_CHORDAL_SIZE_WC,
  887.     PCURV_CHORDAL_SIZE_NPC,
  888.     PCURV_CHORDAL_DEVIATION_WC,
  889.     PCURV_CHORDAL_DEVIATION_NPC
  890.     };
  891.  
  892. /* number and list of available surface approximation criteria types */
  893. Pint num_surface_approx_type = 6;
  894. Pint list_surface_approx_type[] = {PSURF_WS_DEP,
  895.     PSURF_CONSTANT_PARAMETRIC_BETWEEN_KNOTS,
  896.     PSURF_CHORDAL_SIZE_WC,
  897.     PSURF_CHORDAL_SIZE_NPC,
  898.     PSURF_PLANAR_DEVIATION_WC,
  899.     PSURF_PLANAR_DEVIATION_NPC
  900.     };
  901.  
  902. /* number and list of available trimming curve approximation criteria types */
  903. Pint num_trim_curve_approx_type = 2;
  904. Pint list_trim_curve_approx_type[] = {PCURV_WS_DEP,
  905.     PCURV_CONSTANT_PARAMETRIC_BETWEEN_KNOTS,
  906.     };
  907.  
  908. /* number and list of available parametric surface characteristics types */
  909. Pint num_para_surface_type = 3;
  910. Pint list_para_surface_type[] = {
  911.     PSC_NONE,
  912.     PSC_WS_DEP,
  913.     PSC_ISOPARAMETRIC_CURVES
  914.     };
  915.  
  916. /* number and list of available direct colour models */
  917. Pint num_direct_col_model = 1;
  918. Pint list_direct_col_model[] = {PMODEL_RGB};
  919.  
  920. /* number and list of available rendering colour models */
  921. Pint num_rendering_col_model = 1;
  922. Pint list_rendering_col_model[] = {PRCM_RGB};
  923.  
  924. /* number and list of colour mapping methods */
  925. Pint num_cmap_method = 2;
  926. Pint list_cmap_method[] = {PCOLR_MAP_TRUE, PCOLR_MAP_PSEUDO};
  927.  
  928. /* number of predefined colour mapping indices */
  929. Pint num_pred_cmap_idx = 1;
  930.  
  931. /* 
  932.    PHIGS+ workstation table length :
  933.        polyline, polymarker, text, interior, edge, pattern, colour, view 
  934.     general interior, depth cue, light source, colour mapping, cull size
  935. */
  936. Pws_tables_plus ws_tbl_lengths_plus  =  { 20, 20, 20, 20, 20, 0, 256, 6,
  937.                      6, 16, 1};
  938.  
  939. /* 
  940.    dynamic modification of workstation attributes plus: 
  941.        light source, depth cue and colour map  representation
  942. */
  943.  
  944. Pdyns_ws_attrs_plus ws_dyn_mods_plus = {PDYN_IRG, PDYN_IRG, PDYN_IRG};
  945.  
  946. /***************************************************
  947.  * Section 6 - 
  948.  * Data used by PHIGS+ "inqure predefined xxx", 
  949.  * and "inqure list of xxx indices" (wdt6.c)
  950.  ***************************************************/
  951.  
  952. /*
  953.    Note: The nth element of "pred_xxx_reps" refers to 
  954.      the nth element of "list_pred_xxx_idx" 
  955. */
  956.  
  957. /* 
  958.    list of predifined light source indices  and
  959.    table of predefined light source bundles: type, content
  960.    macro to initialize list of predefined light source representations
  961. */
  962. Pint list_pred_light_src_idx[] = {1,2};
  963. Plight_src_bundle pred_light_src_reps[2]; 
  964. #define INIT_PRED_LIGHT_SRC_REPS() {\
  965.     pred_light_src_reps[0].type = PLIGHT_AMBIENT;\
  966.     pred_light_src_reps[0].rec.ambient.colr.type = PINDIRECT;\
  967.     pred_light_src_reps[0].rec.ambient.colr.val.ind = 1;\
  968.     pred_light_src_reps[1] = pred_light_src_reps[0];\
  969.     }
  970.  
  971. /* 
  972.    list of predifined depth cue indices  and
  973.    table of predefined depth cue bundles:mode, reference planes, scaling, 
  974.        general colour
  975.    macro to initialize list of predefined depth cue representations
  976. */
  977. Pint list_pred_depth_cue_idx[] = {0,1};
  978. Pdcue_bundle pred_depth_cue_reps[2]; 
  979. #define INIT_PRED_DEPTH_CUE_REPS() {\
  980.     pred_depth_cue_reps[0].mode = PSUPPRESSED;\
  981.     pred_depth_cue_reps[0].ref_planes[0] = 0.0;\
  982.     pred_depth_cue_reps[0].ref_planes[1] = 1.0;\
  983.     pred_depth_cue_reps[0].scaling[0] = 0.0;\
  984.     pred_depth_cue_reps[0].scaling[1] = 1.0;\
  985.     pred_depth_cue_reps[0].colr.type = PINDIRECT;\
  986.     pred_depth_cue_reps[0].colr.val.ind = 0;\
  987.     pred_depth_cue_reps[1] = pred_depth_cue_reps[0];\
  988.     pred_depth_cue_reps[1].mode = PALLOWED;\
  989.     }
  990.  
  991. /* 
  992.    list of predifined colour mapping indices  and
  993.    macro to initialize list of predefined colour mapping representations
  994. */
  995. Pint list_pred_cmap_idx[] = {0};
  996. Pint pred_cmap_reps_method[1]; 
  997. Pcolr_map_data pred_cmap_reps_data[1]; 
  998. #define INIT_PRED_CMAP_REPS() {\
  999.     pred_cmap_reps_method[0] = PCOLR_MAP_TRUE;\
  1000.     }
  1001.  
  1002. /* 
  1003.    list of predifined polyline indices plus and
  1004.    table of predefined polyline bundles plus: type, width and general colour 
  1005.    macro to initialize list of predefined line representations plus
  1006. */
  1007. Pint list_pred_line_idx_plus[] = {1,2,3,4,5};
  1008. Pline_bundle_plus pred_line_reps_plus[5];
  1009. #define INIT_PRED_LINE_REPS_PLUS() {\
  1010.     pred_line_reps_plus[0].type = PLINE_SOLID;\
  1011.     pred_line_reps_plus[0].width = 1.0;\
  1012.     pred_line_reps_plus[0].shad_meth = PSD_NONE;\
  1013.     pred_line_reps_plus[0].approx_type = PCURV_WS_DEP;\
  1014.     pred_line_reps_plus[0].approx_val = 1.0;\
  1015.     pred_line_reps_plus[0].colr.type = PINDIRECT;\
  1016.     pred_line_reps_plus[0].colr.val.ind = 1;\
  1017.     pred_line_reps_plus[1] = pred_line_reps_plus[0];\
  1018.     pred_line_reps_plus[2] = pred_line_reps_plus[0];\
  1019.     pred_line_reps_plus[3] = pred_line_reps_plus[0];\
  1020.     pred_line_reps_plus[4] = pred_line_reps_plus[0];\
  1021.     pred_line_reps_plus[1].type = PLINE_DASH;\
  1022.     pred_line_reps_plus[2].type = PLINE_DOT;\
  1023.     pred_line_reps_plus[3].type = PLINE_DASH_DOT;\
  1024.     pred_line_reps_plus[4].width = 2.0;\
  1025.     }
  1026.  
  1027. /* 
  1028.    list of predifined polymarker indices plus and
  1029.    table of predefined polymarker bundles plus: type, size and general colour 
  1030.    macro to initialize list of predefined marker representations plus
  1031. */
  1032. Pint list_pred_marker_idx_plus[] = {1,2,3,4,5};
  1033. Pmarker_bundle_plus pred_marker_reps_plus[5];
  1034. #define INIT_PRED_MARKER_REPS_PLUS() {\
  1035.     pred_marker_reps_plus[0].type = PMARKER_DOT;\
  1036.     pred_marker_reps_plus[0].size = 1.0;\
  1037.     pred_marker_reps_plus[0].colr.type = PINDIRECT;\
  1038.     pred_marker_reps_plus[0].colr.val.ind = 1;\
  1039.     pred_marker_reps_plus[1] = pred_marker_reps_plus[0];\
  1040.     pred_marker_reps_plus[2] = pred_marker_reps_plus[0];\
  1041.     pred_marker_reps_plus[3] = pred_marker_reps_plus[0];\
  1042.     pred_marker_reps_plus[4] = pred_marker_reps_plus[0];\
  1043.     pred_marker_reps_plus[1].type = PMARKER_PLUS;\
  1044.     pred_marker_reps_plus[2].type = PMARKER_ASTERISK;\
  1045.     pred_marker_reps_plus[3].type = PMARKER_CIRCLE;\
  1046.     pred_marker_reps_plus[4].type = PMARKER_CROSS;\
  1047.     }
  1048.  
  1049. /*
  1050.    list of predifined text indices plus and
  1051.    table of predefined text bundles plus: 
  1052.     text font and precision, 
  1053.     character expansion factor and spacing 
  1054.     general text colour
  1055.    macro to initialize list of predefined text representations plus
  1056. */
  1057. Pint list_pred_text_idx_plus[] = {1,2,3,4,5,6};
  1058. Ptext_bundle_plus pred_text_reps_plus[6]; 
  1059. #define INIT_PRED_TEXT_REPS_PLUS() {\
  1060.     pred_text_reps_plus[0].font = 1;\
  1061.     pred_text_reps_plus[0].prec = PPREC_STROKE;\
  1062.     pred_text_reps_plus[0].char_expan = 1.0;\
  1063.     pred_text_reps_plus[0].char_space = 0.0;\
  1064.     pred_text_reps_plus[0].colr.type = PINDIRECT;\
  1065.     pred_text_reps_plus[0].colr.val.ind = 1;\
  1066.     pred_text_reps_plus[1] = pred_text_reps_plus[0];\
  1067.     pred_text_reps_plus[2] = pred_text_reps_plus[0];\
  1068.     pred_text_reps_plus[3] = pred_text_reps_plus[0];\
  1069.     pred_text_reps_plus[4] = pred_text_reps_plus[0];\
  1070.     pred_text_reps_plus[5] = pred_text_reps_plus[0];\
  1071.     pred_text_reps_plus[1].char_expan = 1.5;\
  1072.     pred_text_reps_plus[2].char_expan = 2.0;\
  1073.     pred_text_reps_plus[3].char_expan = 2.5;\
  1074.     pred_text_reps_plus[4].char_expan = 3.0;\
  1075.     pred_text_reps_plus[5].char_expan = 3.5;\
  1076.     }
  1077.  
  1078. /*
  1079.    list of predifined interior indices plus  and
  1080.    table of predefined interior bundles plus: style, index and general colour 
  1081.    macro to initialize list of predefined interior representations plus
  1082. */
  1083. Pint list_pred_interior_idx_plus[] = {1,2,3,4,5};
  1084. Pint_bundle_plus pred_interior_reps_plus[5]; 
  1085. #define INIT_PRED_INTERIOR_REPS_PLUS() {\
  1086.     pred_interior_reps_plus[0].style = PSTYLE_SOLID;\
  1087.     pred_interior_reps_plus[0].style_ind = 1;\
  1088.     pred_interior_reps_plus[0].refl_eqn = PREFL_NONE;\
  1089.     pred_interior_reps_plus[0].shad_meth = PSD_NONE;\
  1090.     pred_interior_reps_plus[0].refl_props.ambient_coef = 1.0;\
  1091.     pred_interior_reps_plus[0].refl_props.diffuse_coef = 1.0;\
  1092.     pred_interior_reps_plus[0].refl_props.specular_coef = 0.0;\
  1093.     pred_interior_reps_plus[0].refl_props.specular_colr.type = PINDIRECT;\
  1094.     pred_interior_reps_plus[0].refl_props.specular_colr.val.ind = 1;\
  1095.     pred_interior_reps_plus[0].refl_props.specular_exp = 0.0;\
  1096.     pred_interior_reps_plus[0].colr.type = PINDIRECT;\
  1097.     pred_interior_reps_plus[0].colr.val.ind = 1;\
  1098.     pred_interior_reps_plus[0].back_style = PSTYLE_SOLID;\
  1099.     pred_interior_reps_plus[0].back_style_ind = 1;\
  1100.     pred_interior_reps_plus[0].back_refl_eqn = PREFL_NONE;\
  1101.     pred_interior_reps_plus[0].back_shad_meth = PSD_NONE;\
  1102.     pred_interior_reps_plus[0].back_refl_props.ambient_coef = 1.0;\
  1103.     pred_interior_reps_plus[0].back_refl_props.diffuse_coef = 1.0;\
  1104.     pred_interior_reps_plus[0].back_refl_props.specular_coef = 0.0;\
  1105.     pred_interior_reps_plus[0].back_refl_props.specular_colr.type = PINDIRECT;\
  1106.     pred_interior_reps_plus[0].back_refl_props.specular_colr.val.ind = 1;\
  1107.     pred_interior_reps_plus[0].back_refl_props.specular_exp = 0.0;\
  1108.     pred_interior_reps_plus[0].back_colr.type = PINDIRECT;\
  1109.     pred_interior_reps_plus[0].back_colr.val.ind = 1;\
  1110.     pred_interior_reps_plus[0].approx_type = PSURF_WS_DEP;\
  1111.     pred_interior_reps_plus[0].approx_val[0] = 1.0;\
  1112.     pred_interior_reps_plus[0].approx_val[1] = 1.0;\
  1113.     pred_interior_reps_plus[1] = pred_interior_reps_plus[0];\
  1114.     pred_interior_reps_plus[2] = pred_interior_reps_plus[0];\
  1115.     pred_interior_reps_plus[3] = pred_interior_reps_plus[0];\
  1116.     pred_interior_reps_plus[4] = pred_interior_reps_plus[0];\
  1117.     pred_interior_reps_plus[1].style = PSTYLE_HOLLOW;\
  1118.     pred_interior_reps_plus[1].back_style = PSTYLE_HOLLOW;\
  1119.     pred_interior_reps_plus[2].style = PSTYLE_EMPTY;\
  1120.     pred_interior_reps_plus[2].back_style = PSTYLE_EMPTY;\
  1121.     pred_interior_reps_plus[3].style = PSTYLE_SOLID;\
  1122.     pred_interior_reps_plus[3].back_style = PSTYLE_HOLLOW;\
  1123.     pred_interior_reps_plus[4].style = PSTYLE_SOLID;\
  1124.     pred_interior_reps_plus[4].back_style = PSTYLE_EMPTY;\
  1125.     }
  1126.  
  1127. /*
  1128.    list of predifined edge indices plus and
  1129.    table of predefined edge bundles plus: flag, type, scale and general colour 
  1130.    macro to initialize list of predefined edge representations plus
  1131. */
  1132. Pint list_pred_edge_idx_plus[] = {1,2,3,4,5};
  1133. Pedge_bundle_plus pred_edge_reps_plus[5];
  1134. #define INIT_PRED_EDGE_REPS_PLUS() {\
  1135.     pred_edge_reps_plus[0].flag = PEDGE_ON;\
  1136.     pred_edge_reps_plus[0].type = PLINE_SOLID;\
  1137.     pred_edge_reps_plus[0].width = 1.0;\
  1138.     pred_edge_reps_plus[0].colr.type = PINDIRECT;\
  1139.     pred_edge_reps_plus[0].colr.val.ind = 1;\
  1140.     pred_edge_reps_plus[1] = pred_edge_reps_plus[0];\
  1141.     pred_edge_reps_plus[2] = pred_edge_reps_plus[0];\
  1142.     pred_edge_reps_plus[3] = pred_edge_reps_plus[0];\
  1143.     pred_edge_reps_plus[4] = pred_edge_reps_plus[0];\
  1144.     pred_edge_reps_plus[1].type = PLINE_DASH;\
  1145.     pred_edge_reps_plus[2].type = PLINE_DOT;\
  1146.     pred_edge_reps_plus[3].type = PLINE_DASH_DOT;\
  1147.     pred_edge_reps_plus[4].width = 2.0;\
  1148.     }
  1149.  
  1150. /*
  1151.    list of predifined pattern indices plus and
  1152.    table of predefined pattern bundles plus: flag,type,scale and general colour 
  1153.    macro to initialize list of predefined pattern representations plus
  1154. */
  1155. Pint list_pred_pattern_idx_plus[] = {NULL};
  1156. Ppat_rep_plus pred_pattern_reps_plus[] = { {NULL} };
  1157. #define INIT_PRED_PATTERN_REPS_PLUS()    
  1158.