home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d12345 / CHEMPLOT.ZIP / TPlot / Datalist.hpp < prev    next >
C/C++ Source or Header  |  2001-06-01  |  6KB  |  137 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) 'Datalist.pas' rev: 3.00
  6.  
  7. #ifndef DatalistHPP
  8. #define DatalistHPP
  9. #include <Titles.hpp>
  10. #include <Misc.hpp>
  11. #include <Plotdefs.hpp>
  12. #include <Parser.hpp>
  13. #include <Functons.hpp>
  14. #include <Data.hpp>
  15. #include <Axis.hpp>
  16. #include <Windows.hpp>
  17. #include <Graphics.hpp>
  18. #include <Dialogs.hpp>
  19. #include <Controls.hpp>
  20. #include <NoMath.hpp>
  21. #include <SysUtils.hpp>
  22. #include <Classes.hpp>
  23. #include <SysInit.hpp>
  24. #include <System.hpp>
  25.  
  26. //-- user supplied -----------------------------------------------------------
  27.  
  28. namespace Datalist
  29. {
  30. //-- type declarations -------------------------------------------------------
  31. class DELPHICLASS TSeriesList;
  32. class PASCALIMPLEMENTATION TSeriesList : public Classes::TList 
  33. {
  34.     typedef Classes::TList inherited;
  35.     
  36. private:
  37.     Classes::TList* FAxisList;
  38.     bool FDataChanged;
  39.     bool FIgnoreChanges;
  40.     Axis::TAxis* FXAxis;
  41.     Axis::TAxis* FYAxis;
  42.     Classes::TNotifyEvent FOnStyleChange;
  43.     Classes::TNotifyEvent FOnDataChange;
  44.     int LastSavedPoint;
  45.     Windows::TRect PlotBorder;
  46.     int NoPieRows;
  47.     float __fastcall GetXmin(void);
  48.     float __fastcall GetXmax(void);
  49.     float __fastcall GetYmin(void);
  50.     float __fastcall GetYmax(void);
  51.     float __fastcall GetZmin(void);
  52.     float __fastcall GetZmax(void);
  53.     float __fastcall GetYErrorMin(void);
  54.     float __fastcall GetYErrorMax(void);
  55.     int __fastcall GetMaxNoPts(void);
  56.     int __fastcall GetMinNoPts(void);
  57.     int __fastcall GetTotalNoPts(void);
  58.     
  59. protected:
  60.     void __fastcall StyleChange(System::TObject* Sender);
  61.     void __fastcall DataChange(System::TObject* Sender);
  62.     virtual void __fastcall DoStyleChange(void);
  63.     virtual void __fastcall DoDataChange(void);
  64.     
  65. public:
  66.     __property bool DataChanged = {read=FDataChanged, write=FDataChanged, stored=false, nodefault};
  67.     __property bool IgnoreChanges = {read=FIgnoreChanges, write=FIgnoreChanges, nodefault};
  68.     __property int TotalNoPts = {read=GetTotalNoPts, stored=false, nodefault};
  69.     __property int MaxNoPts = {read=GetMaxNoPts, stored=false, nodefault};
  70.     __property int MinNoPts = {read=GetMinNoPts, stored=false, nodefault};
  71.     __property float Xmin = {read=GetXmin, stored=false};
  72.     __property float Xmax = {read=GetXmax, stored=false};
  73.     __property float Ymin = {read=GetYmin};
  74.     __property float Ymax = {read=GetYmax};
  75.     __property float Zmin = {read=GetZmin};
  76.     __property float Zmax = {read=GetZmax};
  77.     __property float YErrorMin = {read=GetYErrorMin};
  78.     __property float YErrorMax = {read=GetYErrorMax};
  79.     __property Classes::TNotifyEvent OnStyleChange = {read=FOnStyleChange, write=FOnStyleChange};
  80.     __property Classes::TNotifyEvent OnDataChange = {read=FOnDataChange, write=FOnDataChange};
  81.     __fastcall virtual TSeriesList(Classes::TList* AxisListPtr);
  82.     __fastcall virtual ~TSeriesList(void);
  83.     HIDESBASE int __fastcall Add(int XSeriesIndex);
  84.     int __fastcall AddExternal(Misc::pSingleArray XPointer, Misc::pSingleArray YPointer, int NumberOfPoints
  85.         );
  86.     int __fastcall AddInternal(Misc::pSingleArray XPointer, Misc::pSingleArray YPointer, int NumberOfPoints
  87.         );
  88.     void __fastcall ClearSeries(void);
  89.     int __fastcall CloneSeries(int TheSeries);
  90.     void __fastcall DeleteSeries(int Index, bool Ask);
  91.     bool __fastcall ParseData(Classes::TStringList* TheData, System::AnsiString TheHelpFile);
  92.     bool __fastcall ConvertTextData(int ColCount, int SeriesCount, int FirstLine, System::AnsiString Delimiter
  93.         , Classes::TStringList* TheData, Parser::pSeriesInfoArray SeriesInfo);
  94.     bool __fastcall ConvertXYZData(int FirstLine, System::AnsiString Delimiter, Classes::TStrings* InfoGridRows
  95.         , Classes::TStringList* TheData);
  96.     bool __fastcall ConvertBinaryData(int ColCount, int SeriesCount, Classes::TMemoryStream* TheStream, 
  97.         Parser::pSeriesInfoArray SeriesInfo);
  98.     void __fastcall DataAsHTMLTable(Classes::TStringList* &TheData);
  99.     void __fastcall GetStream(bool AsText, char Delimiter, Classes::TMemoryStream* &TheStream);
  100.     void __fastcall GetSubHeaderStream(char Delimiter, Classes::TMemoryStream* TheStream);
  101.     void __fastcall GetBinaryStream(int Start, int Finish, Classes::TMemoryStream* TheStream);
  102.     void __fastcall GetTextStream(char Delimiter, int Start, int Finish, Classes::TMemoryStream* TheStream
  103.         );
  104.     void __fastcall AppendStream(bool AsText, char Delimiter, Misc::TMemoryStreamEx* TheStream);
  105.     bool __fastcall LoadFromStream(Classes::TMemoryStream* AStream, bool &AsText);
  106.     void __fastcall Draw(Graphics::TCanvas* ACanvas, int XYBridge);
  107.     void __fastcall DrawError(Graphics::TCanvas* ACanvas);
  108.     void __fastcall DrawBubble(Graphics::TCanvas* ACanvas, int BubbleSize);
  109.     void __fastcall DrawMultiple(Graphics::TCanvas* ACanvas, Byte Multiplicity, Graphics::TPen* MultiplePen
  110.         , int MultiJoin1, int MultiJoin2);
  111.     void __fastcall DrawColumns(Graphics::TCanvas* ACanvas, Misc::TPercent ColumnGap);
  112.     void __fastcall DrawStack(Graphics::TCanvas* ACanvas, Misc::TPercent ColumnGap);
  113.     void __fastcall DrawNormStack(Graphics::TCanvas* ACanvas, Misc::TPercent ColumnGap);
  114.     void __fastcall DrawPie(Graphics::TCanvas* ACanvas, Titles::TBorder* Border, int NoRows);
  115.     void __fastcall DrawPolar(Graphics::TCanvas* ACanvas, float PolarRange);
  116.     void __fastcall Draw3DWire(Graphics::TCanvas* ACanvas, Axis::TAngleAxis* ZAxis, bool ZLink);
  117.     void __fastcall Draw3DContour(Graphics::TCanvas* ACanvas, Axis::TAngleAxis* ZAxis, Plotdefs::TContourDetail 
  118.         ContourDetail);
  119.     void __fastcall DrawContour(Graphics::TCanvas* ACanvas, Plotdefs::TContourDetail ContourDetail);
  120.     void __fastcall DrawColorScale(Graphics::TCanvas* ACanvas, float TheMin, float Span, Plotdefs::TContourDetail 
  121.         TheContourDetail);
  122.     void __fastcall DrawHistory(Graphics::TCanvas* ACanvas, float HistoryX);
  123.     void __fastcall DrawHistoryMultiple(Graphics::TCanvas* ACanvas, Byte Multiplicity);
  124.     int __fastcall GetNearestPoint(Plotdefs::TPlotType ThePlotType, int ColumnGap, int iX, int iY, int 
  125.         &TheSeries, float &MinDistance, Data::TSeries* &pSeries);
  126.     Data::TSeries* __fastcall GetSeriesOfZ(float ZValue);
  127. };
  128.  
  129. //-- var, const, procedure ---------------------------------------------------
  130.  
  131. }    /* namespace Datalist */
  132. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  133. using namespace Datalist;
  134. #endif
  135. //-- end unit ----------------------------------------------------------------
  136. #endif    // Datalist
  137.