home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / FunctionObject.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  1.9 KB  |  76 lines

  1. /*
  2.  *  Copyright (C) 1993  Robert Davis
  3.  *
  4.  *  This program is free software; you can redistribute it and/or
  5.  *  modify it under the terms of Version 2, or any later version, of 
  6.  *  the GNU General Public License as published by the Free Software 
  7.  *  Foundation.
  8.  */
  9.  
  10. /* $Id: FunctionObject.h,v 1.6 1993/05/24 03:59:43 davis Exp $ */
  11.  
  12. #import "SubObject.h"
  13.  
  14. #define FUNCTION_NOSTYLE    99
  15. #define    FUNCTION_LINES        0
  16. #define FUNCTION_POINTS        1
  17. #define FUNCTION_LINESPOINTS    2
  18. #define FUNCTION_DOTS        3
  19. #define FUNCTION_IMPULSES    4
  20. #define FUNCTION_ERRORBARS    5
  21. #define FUNCTION_BOXES        6
  22. #define FUNCTION_BOXERRORBARS    7
  23. #define FUNCTION_STEPS        8
  24.  
  25. #define POINTS_NOSTYLE        0
  26. #define LINE_NOSTYLE        0
  27.  
  28. #define    NO_COLUMN        -1    /* For data files */
  29.  
  30. struct coldat {
  31.     BOOL    isOn;
  32.     int        number;            /* Number of columns */
  33.     int        x, y, yDelta, yLow, yHigh, z, boxWidth;
  34.     BOOL    useX, useY, useYDelta, useYLow, useYHigh, useZ, useBoxWidth;
  35. };
  36.  
  37. @interface FunctionObject:SubObject
  38. {
  39.     BOOL    isDataFile;    /* Is stringValue path of a data file?    */
  40.     BOOL    isThreeD;    /* Is this supposed to be plotted in 3    */
  41.     char    *title;        /* Optional key title            */
  42.     int        style;        /* Optional style            */
  43.     int        pointsStyle;    /* Kind of points (if style has points)    */
  44.     int        lineStyle;    /* Kind of line (if style has points)    */
  45.  
  46.     struct coldat columnData;    /* How to interpret data file columns    */
  47.     struct coldat columnDataOther;
  48. }
  49.  
  50. + (BOOL) isAcceptableStringValue:(const char *)aString;
  51. + (BOOL) isAcceptableDataFile:(const char *)aString;
  52.  
  53. - initFromString:(const char *)aString isThreeD:(BOOL)aCond;
  54. - free;
  55.  
  56. - setThreeD:(BOOL)cond;
  57. - (BOOL)isDataFile;
  58. - (struct coldat *)columnData;
  59.  
  60. - setTitle: (const char *)aString;
  61. - (const char *)title;
  62.  
  63. - setStyle: (int)anInt;
  64. - (int)style;
  65. - (const char *)styleString;
  66.  
  67. - setPointsStyle: (int)anInt;
  68. - (int)pointsStyle;
  69.  
  70. - setLineStyle: (int)anInt;
  71. - (int)lineStyle;
  72.  
  73. - (BOOL)isAttachment;
  74.  
  75. @end
  76.