home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / TPlot / Serlist.hpp < prev    next >
C/C++ Source or Header  |  2000-10-11  |  4KB  |  90 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'SerList.pas' rev: 3.00
  6.  
  7. #ifndef SerListHPP
  8. #define SerListHPP
  9. #include <Misc.hpp>
  10. #include <pSeries.hpp>
  11. #include <Axis.hpp>
  12. #include <Dialogs.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Graphics.hpp>
  15. #include <Controls.hpp>
  16. #include <Classes.hpp>
  17. #include <SysInit.hpp>
  18. #include <System.hpp>
  19.  
  20. //-- user supplied -----------------------------------------------------------
  21.  
  22. namespace Serlist
  23. {
  24. //-- type declarations -------------------------------------------------------
  25. class DELPHICLASS TSeriesList;
  26. class PASCALIMPLEMENTATION TSeriesList : public Classes::TList 
  27. {
  28.     typedef Classes::TList inherited;
  29.     
  30. private:
  31.     Classes::TList* FAxisList;
  32.     Axis::TAxis* FXAxis;
  33.     Axis::TAxis* FYAxis;
  34.     Classes::TNotifyEvent FOnChange;
  35.     int LastSavedPoint;
  36.     float __fastcall GetXmin(void);
  37.     float __fastcall GetXmax(void);
  38.     bool __fastcall GetDataChanged(void);
  39.     int __fastcall GetMaxNoPts(void);
  40.     int __fastcall GetMinNoPts(void);
  41.     int __fastcall GetTotalNoPts(void);
  42.     void __fastcall SetDataChanged(bool Value);
  43.     
  44. protected:
  45.     virtual void __fastcall StyleChange(void);
  46.     
  47. public:
  48.     __property bool DataChanged = {read=GetDataChanged, write=SetDataChanged, stored=false, nodefault};
  49.         
  50.     __property int TotalNoPts = {read=GetTotalNoPts, stored=false, nodefault};
  51.     __property int MaxNoPts = {read=GetMaxNoPts, stored=false, nodefault};
  52.     __property int MinNoPts = {read=GetMinNoPts, stored=false, nodefault};
  53.     __property float Xmin = {read=GetXmin, stored=false};
  54.     __property float Xmax = {read=GetXmax, stored=false};
  55.     __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
  56.     __fastcall virtual TSeriesList(Classes::TList* AxisListPtr);
  57.     __fastcall virtual ~TSeriesList(void);
  58.     HIDESBASE int __fastcall Add(int XSeriesIndex);
  59.     int __fastcall AddExternal(Misc::pSingleArray XPointer, Misc::pSingleArray YPointer, int NumberOfPoints
  60.         );
  61.     int __fastcall AddInternal(Misc::pSingleArray XPointer, Misc::pSingleArray YPointer, int NumberOfPoints
  62.         );
  63.     void __fastcall ClearSeries(void);
  64.     int __fastcall CloneSeries(int TheSeries);
  65.     void __fastcall DeleteSeries(int Index);
  66.     void __fastcall DataAsHTMLTable(Classes::TStringList* &TheData);
  67.     void __fastcall GetStream(bool AsText, char Delimiter, Classes::TMemoryStream* TheStream);
  68.     void __fastcall GetSubHeaderStream(char Delimiter, Classes::TMemoryStream* TheStream);
  69.     void __fastcall GetBinaryStream(int Start, int Finish, Classes::TMemoryStream* TheStream);
  70.     void __fastcall GetTextStream(char Delimiter, int Start, int Finish, Classes::TMemoryStream* TheStream
  71.         );
  72.     void __fastcall AppendStream(bool AsText, char Delimiter, Misc::TMemoryStreamEx* TheStream);
  73.     void __fastcall Draw(Graphics::TCanvas* ACanvas);
  74.     void __fastcall DrawColumns(Graphics::TCanvas* ACanvas);
  75.     void __fastcall DrawHistory(Graphics::TCanvas* ACanvas, float HistoryX);
  76.     void __fastcall DrawMultiple(Graphics::TCanvas* ACanvas, Byte Multiplicity);
  77.     void __fastcall DrawHistoryMultiple(Graphics::TCanvas* ACanvas, Byte Multiplicity);
  78.     int __fastcall GetNearestPoint(int iX, int iY, int &TheSeries, int &NearestiX, int &NearestiY, float 
  79.         &NearestX, float &NearestY, float &MinDistance, Pseries::TSeries* &pSeries);
  80. };
  81.  
  82. //-- var, const, procedure ---------------------------------------------------
  83.  
  84. }    /* namespace Serlist */
  85. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  86. using namespace Serlist;
  87. #endif
  88. //-- end unit ----------------------------------------------------------------
  89. #endif    // SerList
  90.