00001 //----------------------------------------------------------------------------- 00002 // 00003 // File: TxDataSeries.h 00004 // 00005 // Purpose: Holds a data series for plotting 00006 // 00007 // Version: $Id: TxDataSeries.h,v 1.1 2001/09/21 21:35:29 kgl Exp $ 00008 // 00009 // Copyright 1997-2001, Tech-X Corporation 00010 // 00011 //----------------------------------------------------------------------------- 00012 00013 #ifndef TX_DATA_SERIES_H 00014 #define TX_DATA_SERIES_H 00015 00016 // unix includes 00017 #include <txc_streams.h> 00018 00031 class TxDataSeries { 00032 00033 public: 00034 00036 friend ostream& operator<<(ostream&, const TxDataSeries&); 00037 00039 TxDataSeries(); 00043 TxDataSeries(int, int); 00045 TxDataSeries(const TxDataSeries&); 00047 const TxDataSeries& operator=(const TxDataSeries&); 00049 virtual ~TxDataSeries(){} 00050 00052 void setXIndex(int i){ xIndx = i;} 00054 int getXIndex() const { return xIndx;} 00055 00057 void setYIndex(int i){ yIndx = i;} 00059 int getYIndex() const { return yIndx;} 00060 00062 void setType(int t){ type = t;} 00064 int getType() const { return type;} 00065 00067 void setSymbol(int s){ symbol = s;} 00069 int getSymbol() const { return symbol;} 00070 00072 static const int connectedPoints; 00074 static const int noSymbol; 00075 00076 private: 00077 00079 int xIndx; 00081 int yIndx; 00083 int type; 00085 int symbol; 00086 00087 }; 00088 00089 #endif // TX_DATA_SERIES_H
Copyright Tech-X Corporation, all rights reserved.