Unit1.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.ComCtrls.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include "GLS.BaseClasses.hpp"
  15. #include "GLS.Cadencer.hpp"
  16. #include "GLS.Coordinates.hpp"
  17. #include "GLS.Graph.hpp"
  18. #include "GLS.Objects.hpp"
  19. #include "GLS.Scene.hpp"
  20. #include "GLS.SimpleNavigation.hpp"
  21. #include "GLS.SkyDome.hpp"
  22. #include "GLS.ThorFX.hpp"
  23. #include "GLS.SceneViewer.hpp"
  24. #include "GLS.Utils.hpp"
  25. #include "JPeg.hpp"
  26. //---------------------------------------------------------------------------
  27. class TForm1 : public TForm
  28. {
  29. __published: // IDE-managed Components
  30. TGLSceneViewer *GLSceneViewer1;
  31. TPanel *Panel1;
  32. TLabel *Label1;
  33. TLabel *Label6;
  34. TLabel *Label4;
  35. TLabel *Label3;
  36. TLabel *Label5;
  37. TTrackBar *DistanceBar;
  38. TTrackBar *GSbar;
  39. TTrackBar *GAbar;
  40. TTrackBar *WildBar;
  41. TTrackBar *VibBar;
  42. TCheckBox *SpinBox;
  43. TCheckBox *CoreBox;
  44. TMemo *Memo1;
  45. TCheckBox *PauseBox;
  46. TGLScene *GLScene1;
  47. TGLSkyDome *SkyDome1;
  48. TGLHeightField *HeightField1;
  49. TGLDummyCube *Objects;
  50. TGLCube *TargetCube;
  51. TGLCube *ThorCube;
  52. TGLLightSource *GLLightSource1;
  53. TGLCamera *GLCamera1;
  54. TGLCadencer *GLCadencer1;
  55. TGLThorFXManager *GLThorFXManager1;
  56. TGLSimpleNavigation *GLSimpleNavigation1;
  57. void __fastcall FormCreate(TObject *Sender);
  58. void __fastcall GSbarChange(TObject *Sender);
  59. void __fastcall GAbarChange(TObject *Sender);
  60. void __fastcall WildBarChange(TObject *Sender);
  61. void __fastcall VibBarChange(TObject *Sender);
  62. void __fastcall DistanceBarChange(TObject *Sender);
  63. void __fastcall CoreBoxClick(TObject *Sender);
  64. void __fastcall GLThorFXManager1CalcPoint(TObject *Sender, int PointNo, float &x,
  65. float &y, float &z);
  66. void __fastcall PauseBoxClick(TObject *Sender);
  67. void __fastcall HeightField1GetHeight(const float x, const float y, float &z, TVector4f &Color,
  68. TTexPoint &TexPoint);
  69. private: // User declarations
  70. int mx, my;
  71. public: // User declarations
  72. __fastcall TForm1(TComponent* Owner);
  73. };
  74. //---------------------------------------------------------------------------
  75. extern PACKAGE TForm1 *Form1;
  76. //---------------------------------------------------------------------------
  77. #endif