home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / HippoDraw / hippo / hippoplotNeXT.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-28  |  2.5 KB  |  84 lines

  1. /*
  2.  * hippoplotps.c - Postscript routines for displaying hippo ntuples.
  3.  *
  4.  * Copyright (C)  1991  The Board of Trustees of The Leland Stanford
  5.  * Junior University.  All Rights Reserved.
  6.  *
  7.  * $Header: /nfs/ebnextk/LocalSources/hippo/RCS/hippoplotNeXT.h,v 3.2 1991/12/18 17:33:52 rensing Rel $
  8.  *
  9.  */
  10.  
  11. #include <dpsclient/wraps.h>
  12. #include "hippowrapsps.h"
  13.  
  14. /*
  15.  * initPlot - specify the outer and inner rectangles in device coords,
  16.  * and the inner rectangle again in user coords. This sets global
  17.  * values that are used by the other routines, so it should be called
  18.  * whenever any rectangle specification is changed.
  19.  */
  20. int initPlot_NeXT(rectangle *rect1, rectangle *rect2, rectangle *rect3);
  21.  
  22. /*
  23.  * Draw lines between coordinates
  24.  */
  25. int drawLine_NeXT(float *coords, int nCoords, linestyle_t ls);
  26.  
  27. /*
  28.  * Draw a series of points, using the symbol specified
  29.  */
  30. int drawPoints_NeXT(float *coords, int nCoords, plotsymbol_t symbol,
  31.             float symbolSize);
  32.  
  33. /*
  34.  * Draw vertical error bars.  We use only the x part of the
  35.  * coordinates, plus the y-low and y-high pairs.
  36.  */
  37. int drawYError_NeXT(float *coords, float *errorYs, int nCoords);
  38.  
  39. /*
  40.  * Draw horizontal error bars.  We use only the y part of the
  41.  * coordinates, plus the x-low and x-high pairs.
  42.  */
  43. int drawXError_NeXT(float *coords, float *errorXs, int nCoords);
  44.  
  45. /*
  46.  * Place text at a given location in device coords. X alignment is
  47.  * specified as 'L', 'R', or 'C' (or lower case), meaning that the
  48.  * left, right, or center of the text is positioned at the xy
  49.  * location.  Similarly Y alignment is given as 'B', 'C', or 'T', for
  50.  * bottom, center or top.  Rotation is then performed, given in
  51.  * degrees anti-clockwise.  The variable 'fontSize' is the size in
  52.  * 'points'.
  53.  */
  54. int drawText_NeXT(char *string, float x, float y, float fontSize, 
  55.           float rotation, char xAlign, char yAlign);
  56.  
  57. /*
  58.  * draw ticks and labels along Y axis
  59.  */
  60. int drawYTicks_NeXT( float *ticks, int nticks, float tickwidth, int side );
  61. int drawXTicks_NeXT( float *ticks, int nticks, float tickwidth, int side );
  62.  
  63. /*
  64. * shade portions of plot to indicate areas removed by a cut
  65. */
  66. int shade_NeXT(float xlow, float xhigh, float ylow, float yhigh );
  67.  
  68.  
  69. /*
  70.  * plot "x10^mag" at specified location
  71.  */
  72. int drawMag_NeXT( float x, float y, int mag, float fontSize );
  73.  
  74. /*
  75.  * greyscale/color 2D plot for the NeXT
  76.  */
  77. int drawColor2D_NeXT(int nXBins, int nYBins, rectangle *marginRect,
  78.              float *data, float binMin, float binMax, int useColor );
  79.  
  80.  
  81.  
  82. int drawLego2D_NeXT(rectangle *marginRect);
  83.  
  84.