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