Unit1.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 "GLBaseClasses.hpp"
  10. #include "GLCadencer.hpp"
  11. #include "GLCoordinates.hpp"
  12. #include "GLCrossPlatform.hpp"
  13. #include "GLGraph.hpp"
  14. #include "GLObjects.hpp"
  15. #include "GLScene.hpp"
  16. #include "GLWin32Viewer.hpp"
  17. #include <Vcl.ComCtrls.hpp>
  18. #include <Vcl.ExtCtrls.hpp>
  19. //---------------------------------------------------------------------------
  20. class TForm1 : public TForm
  21. {
  22. __published: // IDE-managed Components
  23. TGLSceneViewer *Viewer;
  24. TPanel *Panel2;
  25. TLabel *Label5;
  26. TLabel *Label3;
  27. TLabel *Label4;
  28. TLabel *Label1;
  29. TLabel *Label7;
  30. TCheckBox *CheckBox06;
  31. TCheckBox *CheckBox04;
  32. TCheckBox *CheckBox05;
  33. TCheckBox *CheckBox07;
  34. TEdit *Edit1;
  35. TEdit *Edit2;
  36. TEdit *Edit3;
  37. TUpDown *UpDown1;
  38. TUpDown *UpDown2;
  39. TUpDown *UpDown3;
  40. TEdit *Edit4;
  41. TEdit *Edit5;
  42. TEdit *Edit6;
  43. TUpDown *UpDown4;
  44. TUpDown *UpDown5;
  45. TUpDown *UpDown6;
  46. TEdit *Edit7;
  47. TEdit *Edit8;
  48. TEdit *Edit9;
  49. TUpDown *UpDown7;
  50. TUpDown *UpDown8;
  51. TUpDown *UpDown9;
  52. TEdit *Edit10;
  53. TUpDown *UpDown10;
  54. TButton *Button3;
  55. TButton *Button4;
  56. TGLScene *GLScene;
  57. TGLDummyCube *DCCamTarget;
  58. TGLLightSource *GLLightSource1;
  59. TGLLightSource *GLLightSource2;
  60. TGLCube *GLCube1;
  61. TGLDummyCube *DCCube1;
  62. TGLSphere *GLSphere1;
  63. TGLSphere *GLSphere2;
  64. TGLXYZGrid *GLXYZGrid1;
  65. TGLLines *GLLines1;
  66. TGLLines *GLLines3;
  67. TGLCamera *GLCamera1;
  68. TGLCadencer *GLCadencer;
  69. void __fastcall Button4Click(TObject *Sender);
  70. void __fastcall FormCreate(TObject *Sender);
  71. void __fastcall CheckBox04Click(TObject *Sender);
  72. void __fastcall Edit1Change(TObject *Sender);
  73. void __fastcall Button3Click(TObject *Sender);
  74. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  75. int X, int Y);
  76. void __fastcall GLCadencerProgress(TObject *Sender, const double deltaTime, const double newTime);
  77. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  78. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  79. TPoint &MousePos, bool &Handled);
  80. private: // User declarations
  81. int mdx, mdy;
  82. TAffineVector intersPoint, ResNormal, BoxScale, SpherePos;
  83. Glvectorgeometry::TMatrix BoxMatrix;
  84. float SphereRadius;
  85. public: // User declarations
  86. __fastcall TForm1(TComponent* Owner);
  87. };
  88. //---------------------------------------------------------------------------
  89. extern PACKAGE TForm1 *Form1;
  90. //---------------------------------------------------------------------------
  91. #endif