Unit1.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.ExtCtrls.hpp>
  13. #include "GLBaseClasses.hpp"
  14. #include "GLCadencer.hpp"
  15. #include "GLCoordinates.hpp"
  16. #include "GLCrossPlatform.hpp"
  17. #include "GLGeomObjects.hpp"
  18. #include "GLGraph.hpp"
  19. #include "GLObjects.hpp"
  20. #include "GLScene.hpp"
  21. #include "GLWin32Viewer.hpp"
  22. #include "GLSmoothNavigator.hpp"
  23. #include "GLKeyboard.hpp"
  24. #include "GLUtils.hpp"
  25. //---------------------------------------------------------------------------
  26. class TForm1 : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TGLSceneViewer *GLSceneViewer1;
  30. TPanel *Panel3;
  31. TCheckBox *MouseLookCheckBox;
  32. TGroupBox *GroupBox2;
  33. TRadioButton *RadioButton6;
  34. TRadioButton *RadioButton7;
  35. TRadioButton *RadioButton8;
  36. TGroupBox *GroupBox1;
  37. TLabel *Label1;
  38. TPanel *Panel1;
  39. TGLScene *GLScene1;
  40. TGLDummyCube *scene;
  41. TGLXYZGrid *GLXYZGrid1;
  42. TGLLightSource *GLLightSource1;
  43. TGLSphere *GLSphere1;
  44. TGLArrowLine *GLArrowLine1;
  45. TGLCamera *GLCamera1;
  46. TGLCadencer *GLCadencer1;
  47. TTimer *FPSTimer;
  48. void __fastcall FormCreate(TObject *Sender);
  49. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  50. void __fastcall FPSTimerTimer(TObject *Sender);
  51. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  52. void __fastcall MouseLookCheckBoxClick(TObject *Sender);
  53. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  54. void __fastcall RadioButton6Click(TObject *Sender);
  55. void __fastcall RadioButton7Click(TObject *Sender);
  56. void __fastcall RadioButton8Click(TObject *Sender);
  57. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  58. int Y);
  59. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  60. int X, int Y);
  61. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  62. TPoint &MousePos, bool &Handled);
  63. private: // User declarations
  64. TGLSmoothUserInterface *UI;
  65. TGLSmoothNavigator *Navigator;
  66. // RealPos: TPoint;
  67. TShiftState ShiftState;
  68. int xx, yy;
  69. int NewXX, NewYY;
  70. void __fastcall CheckControls(double DeltaTime, double newTime);
  71. public: // User declarations
  72. __fastcall TForm1(TComponent* Owner);
  73. };
  74. //---------------------------------------------------------------------------
  75. extern PACKAGE TForm1 *Form1;
  76. //---------------------------------------------------------------------------
  77. #endif