This is Plot.h in view mode; [Download] [Up]
/* Generated by Interface Builder */
#import <objc/Object.h>
#import <appkit/nextstd.h>
#import <appkit/Form.h>
#import <appkit/Button.h>
#import <stdio.h>
@interface Plot:Object
{
// id mainTitle; /* the main title object */
// id yMax; /* the yMax object */
// id xMax; /* the xMax object */
id canvas; /* the PlotView object */
// id yMin; /* the yMin object */
// id xMin; /* the xMin object */
// id yInc; /* the yInc object */
// id xInc; /* the xInc object */
// id yTitle; /* the yTitle object */
// id xTitle; /* the xTitle object */
// id lineText; /* the lineText object */
// id lineThickness; /* the lineThickness object */
// id gridOnOff; /* the grid on/off button */
// id borderBoxOnOff; /* the border box on/off button */
// id xLinLog; /* the x-axis linear/logarithmic button */
// id yLinLog; /* the y-axis linear/logarithmic button */
// const char * maintitle;
// const char * xtitle;
// const char * ytitle;
NXCoord *x; /* the x coordinates */
NXCoord **y; /* the y coordinates */
int npoints; /* number of points */
int ncurves; /* number of curves */
NXPoint min; /* min.x and min.y from xMin and yMin objects */
NXPoint max; /* max.x and max.y from xMax and yMax objects */
NXPoint datamin; /* xmin and ymin from the data */
NXPoint datamax; /* xmax and ymax from the data */
}
- (NXCoord *)xdata;
- (NXCoord **)ydata;
- (int) nPoints;
- (int) nCurves;
//- (const char *) provideXtitle;
//- (const char *) provideYtitle;
//- (const char *) provideMaintitle;
- (BOOL) shouldDrawGrid;
- (BOOL) shouldDrawBox;
- (BOOL) xaxisLog;
- (BOOL) yaxisLog;
- forceXaxisLinear;
- forceYaxisLinear;
- (int)providelinestyle: (int)aCurve;
/* 0=solid, 1=dash, 2=dot, 3=chain dash */
/* 4=chain dot, 5=none */
- (int)providesymbolstyle: (int)aCurve;
/* 0=none, 1=circle, 2=x, 3=up triangle */
/* 4=down triangle, 5=diamond, 6=square */
/* 7=plus */
- (int)providelinethickness; /* 0=thin, 1=medium, 2=thick */
- (int)providesymbolsize; /* 0=pixel, 1=small, 2=medium, 3=large */
- (float) provideXmin;
- (float) provideXmax;
- (float) provideXinc;
- (float) provideYmin;
- (float) provideYmax;
- (float) provideYinc;
- resetXmin:(float)x;
- resetXmax:(float)x;
- resetXinc:(float)x;
- resetYmin:(float)x;
- resetYmax:(float)x;
- resetYinc:(float)x;
- drawPlot:sender;
- (int) readDataFromFile:(FILE *)aDataStream;
- (int) readDataFromStream:(NXStream *)aDataStream;
//Added by cwf to handle streams:
-useDataStreamAndPlot:(NXStream *)dataStream;
- findMinAndMax;
- sanityCheck; // Taken from 1.7
- niceMinMaxInc; // Taken from 1.7
- open:sender;
- openFile:(char *)dataFile;
#define N_LINE_STYLES 6 /* number of line styles (including none) */
#define N_SYMBOL_STYLES 8 /* number of symbol styles (including none) */
//Added to archive the instance variables
- read:(NXTypedStream *)stream;
- write:(NXTypedStream *)stream;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.