Unit1.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "GLS.BaseClasses.hpp"
  10. #include "GLS.Cadencer.hpp"
  11. #include "GLS.Coordinates.hpp"
  12. #include "GLS.GeomObjects.hpp"
  13. #include "GLS.Graph.hpp"
  14. #include "GLS.Objects.hpp"
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.SceneViewer.hpp"
  17. #include <Vcl.ExtCtrls.hpp>
  18. //---------------------------------------------------------------------------
  19. class TForm1 : public TForm
  20. {
  21. __published: // IDE-managed Components
  22. TGLSceneViewer *Viewer;
  23. TPanel *Panel2;
  24. TCheckBox *CheckBox6;
  25. TButton *Button1;
  26. TCheckBox *CheckBox1;
  27. TCheckBox *CheckBox2;
  28. TCheckBox *CheckBox3;
  29. TButton *Button2;
  30. TCheckBox *CheckBox4;
  31. TCheckBox *CheckBox5;
  32. TGLScene *GLScene;
  33. TGLDummyCube *DCCamTarget;
  34. TGLLightSource *GLLightSource1;
  35. TGLLightSource *GLLightSource2;
  36. TGLCube *GLCube1;
  37. TGLXYZGrid *GLXYZGrid1;
  38. TGLPolygon *GLPolygon1;
  39. TGLLines *GLLines1;
  40. TGLPoints *GLPoints1;
  41. TGLLines *GLLines2;
  42. TGLCamera *GLCamera1;
  43. TGLCadencer *GLCadencer;
  44. void __fastcall FormCreate(TObject *Sender);
  45. void __fastcall Button1Click(TObject *Sender);
  46. void __fastcall Button2Click(TObject *Sender);
  47. void __fastcall CheckBox4Click(TObject *Sender);
  48. void __fastcall GLCadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  49. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  50. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  51. TPoint &MousePos, bool &Handled);
  52. void __fastcall FormResize(TObject *Sender);
  53. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  54. private: // User declarations
  55. int mdx, mdy;
  56. TAffineVector BoxPos, BoxScale, MinExtend, MaxExtend;
  57. TAffineVector TriangePos[3];
  58. void __fastcall MakeRandomData();
  59. void __fastcall DrawResult();
  60. public: // User declarations
  61. __fastcall TForm1(TComponent* Owner);
  62. };
  63. //---------------------------------------------------------------------------
  64. extern PACKAGE TForm1 *Form1;
  65. //---------------------------------------------------------------------------
  66. #endif