Unit1.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 <Vcl.ExtCtrls.hpp>
  10. #include <Vcl.Grids.hpp>
  11. #include "GLS.BaseClasses.hpp"
  12. #include "GLS.Collision.hpp"
  13. #include "GLS.Coordinates.hpp"
  14. #include "GLS.Objects.hpp"
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.SpaceText.hpp"
  17. #include "GLS.VectorFileObjects.hpp"
  18. #include "GLS.SceneViewer.hpp"
  19. #include "GLS.Utils.hpp"
  20. #include "GLS.File3DS.hpp"
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TSplitter *Splitter1;
  26. TGLSceneViewer *GLSceneViewer1;
  27. TPanel *Panel1;
  28. TShape *Shape1;
  29. TLabel *Label1;
  30. TLabel *LATime;
  31. TLabel *Label2;
  32. TRadioGroup *cbCollisionMode;
  33. TPanel *Panel2;
  34. TStringGrid *StringGrid1;
  35. TMemo *Memo1;
  36. TGLScene *GLScene1;
  37. TGLLightSource *GLLightSource1;
  38. TGLLightSource *GLLightSource2;
  39. TGLDummyCube *DummyCube1;
  40. TGLCamera *GLCamera2;
  41. TGLSpaceText *txtX;
  42. TGLSpaceText *txtY;
  43. TGLSpaceText *txtZ;
  44. TGLFreeForm *TeaPot1;
  45. TGLFreeForm *TeaPot2;
  46. TGLCube *CubePoint1;
  47. TGLCube *CubePoint2;
  48. TGLCube *Cube2;
  49. TGLCube *Bar;
  50. TGLSphere *GLSphere1;
  51. TGLSphere *GLSphere2;
  52. TGLSphere *GLSphereEllipsoid1;
  53. TGLSphere *GLSphereEllipsoid2;
  54. TGLCube *GLCube1;
  55. TGLCamera *GLCamera1;
  56. TGLCamera *GLCamera3;
  57. TTimer *Timer1;
  58. TGLCollisionManager *CollisionManager1;
  59. void __fastcall FormCreate(TObject *Sender);
  60. void __fastcall FormShow(TObject *Sender);
  61. void __fastcall cbCollisionModeClick(TObject *Sender);
  62. void __fastcall Timer1Timer(TObject *Sender);
  63. void __fastcall CollisionManager1Collision(TObject *Sender, TGLBaseSceneObject *object1,
  64. TGLBaseSceneObject *object2);
  65. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  66. int X, int Y);
  67. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  68. int Y);
  69. private: // User declarations
  70. int mdx, mdy;
  71. bool CollisionDetected;
  72. TGLCustomSceneObject *CurrSO;
  73. public: // User declarations
  74. __fastcall TForm1(TComponent* Owner);
  75. };
  76. //---------------------------------------------------------------------------
  77. extern PACKAGE TForm1 *Form1;
  78. //---------------------------------------------------------------------------
  79. #endif