home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / Chip_1998-03_cd.bin / zkuste / matemat / Vyssi / FOURIER.ZIP / cppbuild / Fourier.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-09  |  2.8 KB  |  77 lines

  1. //----------------------------------------------------------------------------
  2. // Fourier.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Fourier.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef FourierHPP
  6. #define FourierHPP
  7. //----------------------------------------------------------------------------
  8. #include <Classes.hpp>
  9. #include <System.hpp>
  10. namespace Fourier
  11. {
  12. //-- type declarations -------------------------------------------------------
  13. enum TFastFourierWgtWin { fwRectangle, fwTriangle, fwCos2, fwGauss, fwHamming, fwBlackman };
  14.  
  15. class __declspec(delphiclass) TFastFourier;
  16. class __declspec(pascalimplementation) TFastFourier : public Classes::TComponent
  17. {
  18.     typedef Classes::TComponent inherited;
  19.     
  20. private:
  21.     int FNumData;
  22.     void *FData;
  23.     TFastFourierWgtWin FWgtWin;
  24.     bool MaxValuesValid;
  25.     double FMaxReal;
  26.     double FMaxImag;
  27.     double FMinReal;
  28.     double FMinImag;
  29.     double FMaxPower;
  30.     double __fastcall GetRealVal(int p0);
  31.     void __fastcall SetRealVal(int p0, double p1);
  32.     double __fastcall GetImagVal(int p0);
  33.     void __fastcall SetImagVal(int p0, double p1);
  34.     void __fastcall SetNumData(int p0);
  35.     void __fastcall SetWgtWin(TFastFourierWgtWin p0);
  36.     double __fastcall GetPowerSpec(int p0);
  37.     double __fastcall GetMaxPower(void);
  38.     double __fastcall GetMaxReal(void);
  39.     double __fastcall GetMaxImag(void);
  40.     double __fastcall GetMinReal(void);
  41.     double __fastcall GetMinImag(void);
  42.     void __fastcall DoFFT(int p0);
  43.     void __fastcall CalcMaxValues(void);
  44.     
  45. public:
  46.     __fastcall virtual TFastFourier(Classes::TComponent* p0);
  47.     __fastcall virtual ~TFastFourier(void);
  48.     __property double RealSpec[int ix] = {read=GetRealVal, write=SetRealVal};
  49.     __property double ImagSpec[int ix] = {read=GetImagVal, write=SetImagVal};
  50.     void __fastcall Clear(void);
  51.     void __fastcall ClearImag(void);
  52.     void __fastcall ClearReal(void);
  53.     void __fastcall Transform(void);
  54.     void __fastcall InverseTransform(void);
  55.     __property double PowerSpec[int ix] = {read=GetPowerSpec};
  56.     __property double PowerMax = {read=GetMaxPower};
  57.     __property double RealMax = {read=GetMaxReal};
  58.     __property double ImagMax = {read=GetMaxImag};
  59.     __property double RealMin = {read=GetMinReal};
  60.     __property double ImagMin = {read=GetMinImag};
  61.     __property void * DataBuffer = {read=FData, nodefault};
  62.     
  63. __published:
  64.     __property int SpectrumSize = {read=FNumData, write=SetNumData, nodefault};
  65.     __property TFastFourierWgtWin WeightingWindow = {read=FWgtWin, write=SetWgtWin, nodefault};
  66. };
  67.  
  68. //-- var, const, procedure ---------------------------------------------------
  69. extern void __fastcall Register(void);
  70.  
  71. }    /* namespace Fourier */
  72. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  73. using namespace Fourier;
  74. #endif
  75. //-- end unit ----------------------------------------------------------------
  76. #endif    // Fourier
  77.