Unit1.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include "GLS.VectorGeometry.hpp"
  12. #include "GLS.Scene.hpp"
  13. #include "GLS.BaseClasses.hpp"
  14. #include <GLS.GeomObjects.hpp>
  15. #include <GLS.Navigator.hpp>
  16. #include <GLS.Cadencer.hpp>
  17. #include <GLS.SceneViewer.hpp>
  18. #include <GLS.Objects.hpp>
  19. #include <GLS.VectorFileObjects.hpp>
  20. #include "GLS.Coordinates.hpp"
  21. #include "GLS.Utils.
  22. #include "GLS.Cadencer.hpp"
  23. #include "GLS.SceneViewer.hpp"hpp"
  24. //---------------------------------------------------------------------------
  25. class TForm1:public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TGLScene * GLScene1;
  29. TGLLightSource *GLLightSource1;
  30. TGLDummyCube *DummyCube1;
  31. TGLFreeForm *FreeForm1;
  32. TGLSphere *Sphere1;
  33. TGLArrowLine *ArrowLine1;
  34. TGLSceneViewer *GLSceneViewer2;
  35. TGLCamera *GLCamera2;
  36. TGLCadencer *GLCadencer1;
  37. TTimer *Timer1;
  38. TGLDummyCube *DummyCube2;
  39. TGLSphere *Sphere2;
  40. TGLLightSource *GLLightSource2;
  41. TPanel *Panel1;
  42. TLabel *Label1;
  43. TLabel *Label2;
  44. TLabel *Label3;
  45. TLabel *Label4;
  46. TTrackBar *TrackBar1;
  47. TButton *Button1;
  48. TGLLines *Lines1;
  49. TLabel *LabelFPS;
  50. void __fastcall GLCadencer1Progress(TObject * Sender, const double deltaTime,
  51. const double newTime);
  52. void __fastcall Timer1Timer(TObject * Sender);
  53. void __fastcall Button1Click(TObject * Sender);
  54. private: // User declarations
  55. float colTotalTime; // for timing collision detection
  56. int colCount;
  57. void AddToTrail(const Gls::Vectorgeometry::TVector & p);
  58. public: // User declarations
  59. __fastcall TForm1(TComponent * Owner);
  60. int mousex, mousey;
  61. };
  62. //---------------------------------------------------------------------------
  63. extern PACKAGE TForm1 *Form1;
  64. //---------------------------------------------------------------------------
  65. #endif