home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m242 / 1.ddi / READ.ME < prev    next >
Encoding:
Text File  |  1989-12-24  |  14.1 KB  |  463 lines

  1. ##############################################################################
  2. #            #                          #                 #
  3. #            #    Essential Graphics    #                 #
  4. #            #       Version  3.0       #                 #
  5. #            #                          #                 #
  6. ##############################################################################
  7.  
  8.     These diskettes contain version 3.0 of Essential Graphics.  Please 
  9. print or read through the remainder of this file for bug fixes and/or manual 
  10. updates.
  11.  
  12.  
  13. ##############################################################################
  14. #            #                          #                 #
  15. #            #    Installation       #                 #
  16. #            #                          #                 #
  17. ##############################################################################
  18.  
  19.    To install this product run the INSTALL.EXE program from this disk.  It is
  20. self explanatory and will walk you through its options.
  21.  
  22. ##############################################################################
  23. #            #                          #                 #
  24. #            #         Diskette           #                 #
  25. #            #      Contents       #                 #
  26. #            #                          #                 #
  27. ##############################################################################
  28.  
  29.  
  30.     Disk #1                       Disk #2
  31.     -------                       -------
  32.     HFILES.ZIP                       FONTS.ZIP
  33.     INSTALL.EXE                   SMSEGL.ZIP   /* MSC large */                        
  34.     PKUNZIP.EXE                   VER2FUNCS.ZIP
  35.     PKZIP.EXE
  36.     READ.ME
  37.     SMSEGS.ZIP   /* MSC small model */
  38.     SOURCE.ZIP
  39.  
  40.     Disk #3                         Disk #4
  41.     -------                         -------
  42.     DEMOS1.ZIP                 DEMOS2.ZIP
  43.     \Turbo                    SMSCAPT.ZIP
  44.      SMSEGS.ZIP   /* TC small model */    \Turbo
  45.                              SMSEGL.ZIP   /* TC large */ 
  46.  
  47.   If you have any questions, comments or suggestions call us at :
  48.  
  49.     (201) 762-6965.
  50.  
  51.   Our BBS # is :
  52.  
  53.     (201) 762-0339
  54.  
  55. ##############################################################################
  56. #            #                          #                 #
  57. #            #   NOTES FOR UPGRADES       #                 #
  58. #            #      FROM VER 2.0       #                 #
  59. #            #                          #                 #
  60. ##############################################################################
  61.  
  62. In order to consolidate and provide a more efficient set of functions for 
  63. Essential Graphics version 3.0, the following functions have been renamed 
  64. or are now grouped into 1 function call.  See the documentation for more 
  65. information on the function and the VER2FUNC.ZIP file on disk #2 for source 
  66. code to these functions.
  67.  
  68.  
  69.   Version 2.0 Name                 Version 3.0 Name
  70.   ----------------                 ----------------
  71.  
  72.   ARC, ARCQ, GRARCA, GRARC, HTARC        EG_ARC
  73.   TARC                        EG_TARC
  74.   A_LINETO, R_LINETO, GRDMOVE, GRMOVE            EG_LINETO
  75.   CIRCLE, CIRCLEQ, GRCIRCA, GRCIRC        EG_LINETO
  76.   COPYPAGE                    GCOPYPAG
  77.   DOT                        EG_DOT
  78.   FONTLD                    FONT_LOAD
  79.   FONTCHG2                    FONT_CHANGE
  80.   FONTINF2                    FONT_INFO
  81.   FONTULD                    FONT_UNLOAD
  82.   GRLINE                    EG_LINE
  83.   GRDOTB, GRDASH                SET_LINE_STYLE
  84.   GRBXFILL, GRBXCTC, GRBXCT, GRBXULC        EG_RECTANGLE
  85.   GRBXLL, GRBXLR, GRBXLRC, GRBXUL
  86.   GRBXUR, GRBXURC, GRBXLLC, GRRTURC
  87.   GRRTCTC, GRRTLL, GRRTLLC, GRRTLR
  88.   GRRTLRC, GRRTUL, GRRTULC, GRRTUR
  89.   GRRTCT,  HTRECT
  90.   ABS_POLY, REL_POLY, GRPOLY, GRSHAPE        EG_POLYGON
  91.   POLYFILL
  92.   GRELIP, GRELIPQ, GRELIPA, GRELIPQA        EG_ELLIPSE
  93.   GRSHDN, GRSHDUP, GRSHLF, GRSHRT        EG_SHADE
  94.  
  95.  
  96. The following functions have been deleted and are no longer available.  See
  97. the below 3.0 functions for comparable capabilities.
  98.  
  99.   Version 2.0 Name             Version 3.0 Name
  100.   ----------------             ----------------
  101.  
  102.   GRXLAB, GRYLAB            FHATSAY
  103.   EASYINIT                HATCH FUNCTIONS
  104.   GETMODE, GETVIEW, GETWORLD        EG_STATUS
  105.   GETWORLD                    
  106.   GLABEL, GLABINIT, GSETMARK        EG_GRAPH
  107.   HSALLOC, HSFREE, VSINIT
  108.   HSBAR???, HTBAR???            EG_GRAPH, TD_CHART
  109.   HTARC, HTPIE                TD_PIE
  110.   SET_11H                SETVGA
  111.  
  112. ##############################################################################
  113. #            #                          #                 #
  114. #            #    3-D Charting Notes    #                 #
  115. #            #                          #                 #
  116. ##############################################################################
  117.  
  118. 1) All data arrays declared as floats should be declared as doubles instead. 
  119.    This will be consistent with our floating point version.
  120.  
  121. 2) Label along the xz-plane and yz-plane will not print if frameflag is set to
  122.    0 in td_chart().
  123.  
  124. 3) Although you can label along both the xz-plane and yz-planes, the number
  125.    of grids and other information is the same for both sides.
  126.  
  127. 4) If phi > 90 degrees, labels around the XY plane will not be displayed.
  128.  
  129. ##############################################################################
  130. #            #                          #                 #
  131. #            #    2-D Charting Notes    #                 #
  132. #            #                          #                 #
  133. ##############################################################################
  134.  
  135. 1) When filling out the structure members for eg_graph(), remember that the 
  136.    number of grids refers to the number of boxes along any axis.  To line up 
  137.    a grid line for each 1 of your labels and/or data values, you should set 
  138.    the num_grids value equal to the number of data values-1 or number of 
  139.    labels-1.  This will setup your graph and labels nicely.
  140.  
  141. 2) Try to use small labels when printing.  This will help to avoid overwriting 
  142.    and clutter along the axes.
  143.  
  144. 3) Set hatch patterns for drawing bar charts.  The item_color member in these 
  145.    cases is a hatch pattern, not a color.
  146.  
  147. ##############################################################################
  148. #            #                          #                 #
  149. #            #       Scanner Notes      #                 #
  150. #            #                          #                 #
  151. ##############################################################################
  152.  
  153. Support for the HP ScanJet will be available shortly, call for information on
  154. availability.
  155.  
  156. ##############################################################################
  157. #            #                          #                 #
  158. #            #  Floating Point Version  #                 #
  159. #            #                          #                 #
  160. ##############################################################################
  161.  
  162. Support for floating point coordinates is available by phone or mail.  If you
  163. need this version please call or write for a set of disks.
  164.  
  165.  
  166.  
  167. ##############################################################################
  168. #            #                          #                 #
  169. #            #     Plotter Notes        #                 #
  170. #            #                          #                 #
  171. ##############################################################################
  172.  
  173. Plotter viewport:
  174.  
  175. In order to use clipping and viewports coorectly on the plotter, call
  176. p_setview() with the appropriate plotter hard clip limits.
  177.  
  178. For example, on an HP7440 ColorPro the hard clip limits can be found in the
  179. HP Programmers Manual under Hard-Clip Limits.  They are as follows:
  180.  
  181.     X : 0 - 10300    Y : 0 - 7650
  182.  
  183. Call p_setview(0,0,10300,7650) to use all available plotter space.
  184.  
  185. ----------------------------------------------------------------------------
  186. Plotter initialization:
  187.  
  188. If you wish to use the plotter in a screen mode resolution, call initgraf2()
  189. to set up our external variables.
  190.  
  191. ##############################################################################
  192. #            #                          #                 #
  193. #            #       Documentation      #                 #
  194. #            #      Updates       #                 #
  195. #            #                          #                 #
  196. ##############################################################################
  197. Page 3-12
  198.  
  199. The default colors for an EGA or VGA card are :
  200.  
  201.     0,1,2,3,4,5,20,7,56,57,58,59,60,61,62,63
  202.  
  203. ==============================================================================
  204. CHECK_VID7
  205.  
  206.     Page 7-7
  207.  
  208. The example should have a pointer to a char as a parameter for this function.
  209.  
  210. EXAMPLE
  211.  
  212. char banks;
  213.     
  214. if (check_vid7(&banks))
  215.    printf("Video Seven card present\n");
  216. else
  217.    printf("Video Seven card not present\n");
  218.  
  219. ==============================================================================
  220. EG_GRAPH
  221.  
  222.     Page 4 - 11
  223.  
  224. In the example EG_TYPE stack_bars[BARS][BARS_IN_THE_STACK], the stack_bars 
  225. array is just a suggested name.  There is no array defined with this name.  
  226. Place your own array variable here.
  227.  
  228.  
  229.     Page 4 - 12
  230.  
  231. For an Above/Below graph, the bar_type structure member must be set equal to
  232. VERT_BARS, not HORZ_BARS as in the manual.
  233.  
  234.     Page 4 - 18
  235.  
  236. There is no hatch parameter to EG_CIRCLE.  See EG_ARC for hatch fills.
  237.  
  238.     Page 7 - 24
  239.  
  240. Replace any use of the word icon in the structure members with symbol.  The
  241. corect member names can be found on page 4-2.
  242. ==============================================================================
  243.  
  244. GET_BASE,SET_BASE
  245.  
  246.     Page 7-62
  247.  
  248. The parameters for the two functions should be switched.  GET_BASE() gets the
  249. pointers to the locations, not SET_BASE().
  250. ==============================================================================
  251.  
  252. EG_CIRCLE
  253.  
  254.     Page 7-20
  255.  
  256. There is no hatch parameter in this function.  See EG_ARC to fill a 360 degree
  257. arc.
  258.  
  259. ==============================================================================
  260. MODE_SAVE_SCR, MODE_REST_SCR
  261.  
  262.  
  263.     Page 7-75
  264.  
  265. After initializing a text screen with the mode number+128, call TEXT_RESET()
  266. to reset the text mode correctly.  This function has no parameters.
  267.  
  268. ==============================================================================
  269. SCRNDUMP
  270.  
  271.     Page 7-145
  272.  
  273. For the 640x200 modes, there are 3 shades for the IBM or Epson printers in
  274. sizes 0 or 1.
  275.  
  276.  
  277.     Page 148
  278.  
  279. For the 720x348 mode, there is an additional size available.  Size 2 is 
  280. approximately 1 page using quad density.
  281.  
  282.  
  283.     Page 154
  284.  
  285. Sizes for the 800x600 and 1024x768 modes were omitted.  They are as follows:
  286.  
  287. Mode        Size        Description
  288. ----        ----        -----------
  289. 800x600         0        approx. 1/15 page, 1 color
  290.          1         approx. 1/3  page, 1 color
  291.          2         approx. 1/3  page, 3 color
  292.          3         approx. 2/3  page, 1 color
  293.  
  294. 1024x768     0        approx. 1/8  page, 1 color
  295.          1         approx. 1/2  page, 1 color
  296.          2         approx. 2/3  page, 3 color, 300 dpi.
  297.  
  298.  
  299.     Page 155
  300.  
  301. Sizes for the 640x350 and 640x400 modes were omitted.  They are as follows:
  302.  
  303. Mode        Size        Description
  304. ----        ----        -----------
  305. 640x350         0        approx. 1/12 page, 1 color
  306.          1         approx. 1/3  page, 3 color
  307.          2         approx. 2/3  page, 3 color
  308.          3         approx. 1    page, 3 color
  309.  
  310. 640x400         0        approx. 1/10 page, 1 color
  311.          1         approx. 1/3  page, 3 color
  312.          2         approx. 3/4  page, 3 color
  313.  
  314.     Page 156
  315.  
  316. Sizes for the 640x400 modes were omitted.  They are as follows:
  317.  
  318. Mode        Size        Description
  319. ----        ----        -----------
  320. 640x400         0        approx. 1/10 page, 1 color
  321.          1         approx. 1/3  page, 3 color
  322.          2         approx. 2/3  page, 3 color
  323.  
  324.  
  325.     Page 156
  326.  
  327. There is no size 3 for 720x348 modes.
  328.  
  329. ==============================================================================
  330. TD_CHART
  331.  
  332.     page 7-196
  333.  
  334. Add -5 to the return codes section.
  335.  
  336.     -5  =  Not enough memory available
  337.  
  338. ==============================================================================
  339. TD_MIDPLANE
  340.  
  341.     page 7-202
  342.  
  343. If the fill_color = -99,only the frame is drawn, no filling of color is used.
  344.  
  345. ==============================================================================
  346. NAME
  347.  
  348.     td_graph_dim - set the dimensions between actual graph area and 
  349.                viewport
  350.  
  351. SYNOPSIS
  352.  
  353.     void td_graph_dim(top,bottom,left,right)
  354.  
  355.         float top;        /* space above the graph */
  356.         float bottom;        /* space below the graph */
  357.         float left;        /* space left of the graph */
  358.         float right;        /* space right of the graph */
  359.  
  360. DESCRIPTION
  361.     
  362.     This function allows you to set the space between the viewport and the 
  363.     actual graph area.  This space is used for the labels.  Once you call 
  364.     tdbarset(), these values will be set automatically depending on the 
  365.     resolution you use.  These values will be estimated automatically  
  366.     for your graph.  If the labels still can not fit in the alotted
  367.     space, you can adjust these values to let the labels fit in.  
  368.     See the figure and graphs in the EXAMPLE.
  369.  
  370. RETURN
  371.  
  372.     None
  373.  
  374. NOTE
  375.  
  376.     A -1 will use the default or current values.  Any other negative
  377.     value should not be used.
  378.  
  379. EXAMPLE
  380.  
  381.         ----------------------------    
  382.     |        (top)          r  |
  383.         |    -----------------  i  |
  384.     | l  |               |  g  | <--- viewport
  385.         | e  |               |  h  |
  386.         | f  |               |  t  | 
  387.     | t  |               |<---------- actual graph size
  388.         |    -----------------     |
  389.         |         (bottom)         | 
  390.         ----------------------------    
  391.  
  392.     If the labels were clipped by the viewport since the default 
  393.     space is not enough to fit in the labels.  Call this function
  394.     to increase the dimension between the viewport and the actual
  395.     graph area.
  396.  
  397. ==============================================================================
  398. NAME
  399.  
  400.     td_singlecolor - draw a 3-D chart using a single color for the object
  401.  
  402. SYNOPSIS
  403.  
  404.     void td_singlecolor(top_color,left_color,right_color)
  405.  
  406.         int top_color;        /* top object color */
  407.         int left_color;        /* left side object color */
  408.         int right_color;     /* right side object color */
  409.  
  410. DESCRIPTION
  411.     
  412. This function allows you to set all the bars, pyramids, etc. in a 3D chart to
  413. have all the same colors on the top, left and right hand sides.    
  414.  
  415. RETURN
  416.  
  417.     None
  418.  
  419. NOTE
  420.  
  421.     A -9999 will reset the colors to use multiple colors.
  422.  
  423. ==============================================================================
  424.  
  425. NAME
  426.  
  427.      vfpixn - return the number of pixels needed to print the string
  428.  
  429. SYNOPSIS
  430.  
  431.     i = vfpixn(vect,str,dir,space);
  432.  
  433.         int i;                 return value
  434.               struct vfont *vect;      pointer to loaded vector font
  435.         char *str;               string pointer
  436.               int dir;             direction of printing: 
  437.                     0 - horizontal
  438.                                         1 - vertical
  439.         int space;               if vertical printing, number of 
  440.                     spaces between characters
  441.  
  442. DESCRIPTION
  443.  
  444. The function returns the number of pixels needed to print the string.
  445.  
  446.  
  447. RETURNS
  448.  
  449.     i >= 0      successful call, return is the number of pixels
  450.                 -1     a character not part of font
  451.  
  452. NOTES
  453.  
  454. If the direction is horizontal, the space parameter is ignored.
  455.  
  456. EXAMPLE
  457.                    
  458.     struct vfont *fk;       /* vector font to use */
  459.  
  460.     dx=vfpixn(fk,"testfont",0,0);    
  461. ==============================================================================
  462.  
  463.