Unit1.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <tchar.h>
  6. #include <System.Classes.hpp>
  7. #include <Vcl.Controls.hpp>
  8. #include <Vcl.StdCtrls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.ComCtrls.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include "GLS.AsyncTimer.hpp"
  13. #include "GLS.BaseClasses.hpp"
  14. #include "GLS.Behaviours.hpp"
  15. #include "GLS.Cadencer.hpp"
  16. #include "GLS.Coordinates.hpp"
  17. #include "GLS.GeomObjects.hpp"
  18. #include "GLS.Graph.hpp"
  19. #include "GLS.Material.hpp"
  20. #include "GLS.Objects.hpp"
  21. #include "GLS.Scene.hpp"
  22. #include "GLS.SceneViewer.hpp"
  23. #include "GLS.zBuffer.hpp"
  24. #include "JPeg.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TLabel *Label1;
  30. TLabel *Label2;
  31. TPanel *Panel2;
  32. TGLSceneViewer *Caster;
  33. TPanel *Panel1;
  34. TGLSceneViewer *Viewer;
  35. TPanel *Panel3;
  36. TLabel *Label4;
  37. TLabel *TimeLbl;
  38. TTrackBar *DistanceBar;
  39. TButton *CastBtn;
  40. TPanel *Panel4;
  41. TLabel *Label3;
  42. TLabel *Label5;
  43. TTrackBar *DistanceBar2;
  44. TTrackBar *Focal;
  45. TPanel *Panel5;
  46. TCheckBox *FrustBox;
  47. TCheckBox *RotateBox;
  48. TCheckBox *ShadowOnBox;
  49. TCheckBox *SoftBox;
  50. TCheckBox *SkyShadBox;
  51. TPanel *Panel6;
  52. TLabel *Label9;
  53. TCheckBox *FadeBox;
  54. TTrackBar *dovBar;
  55. TTrackBar *AlphaBar;
  56. TMemo *Memo1;
  57. TGLScene *GLScene1;
  58. TGLDummyCube *Objects;
  59. TGLHeightField *HeightField1;
  60. TGLCube *Cube1;
  61. TGLTorus *Torus1;
  62. TGLTeapot *Teapot1;
  63. TGLZShadows *Shadows1;
  64. TGLCamera *GLCamera1;
  65. TGLCamera *GLCamera2;
  66. TGLLightSource *GLLightSource1;
  67. TGLMaterialLibrary *GLMaterialLibrary1;
  68. TGLMemoryViewer *MemView;
  69. TGLAsyncTimer *AsyncTimer1;
  70. TGLCadencer *GLCadencer1;
  71. void __fastcall FormCreate(TObject *Sender);
  72. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  73. int X, int Y);
  74. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  75. void __fastcall CasterMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  76. int X, int Y);
  77. void __fastcall CasterMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  78. void __fastcall DistanceBarChange(TObject *Sender);
  79. void __fastcall DistanceBar2Change(TObject *Sender);
  80. void __fastcall CastBtnClick(TObject *Sender);
  81. void __fastcall ViewerMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  82. int X, int Y);
  83. void __fastcall CasterMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  84. int X, int Y);
  85. void __fastcall FadeBoxClick(TObject *Sender);
  86. void __fastcall HeightField1GetHeight(const float x, const float y, float &z, TVector4f &Color,
  87. TTexPoint &TexPoint);
  88. void __fastcall FrustBoxClick(TObject *Sender);
  89. void __fastcall AsyncTimer1Timer(TObject *Sender);
  90. void __fastcall RotateBoxClick(TObject *Sender);
  91. void __fastcall ShadowOnBoxClick(TObject *Sender);
  92. void __fastcall SoftBoxClick(TObject *Sender);
  93. void __fastcall SkyShadBoxClick(TObject *Sender);
  94. void __fastcall FocalChange(TObject *Sender);
  95. void __fastcall dovBarChange(TObject *Sender);
  96. void __fastcall AlphaBarChange(TObject *Sender);
  97. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  98. private: // User declarations
  99. int mx,my;
  100. int mx2,my2;
  101. TGLzBuffer *zViewer;
  102. TGLzBuffer *zCaster;
  103. public: // User declarations
  104. __fastcall TForm1(TComponent* Owner);
  105. };
  106. //---------------------------------------------------------------------------
  107. extern PACKAGE TForm1 *Form1;
  108. //---------------------------------------------------------------------------
  109. #endif