fSmoothNaviC.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //---------------------------------------------------------------------------
  2. #ifndef fSmoothNaviCH
  3. #define fSmoothNaviCH
  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 "GLS.BaseClasses.hpp"
  14. #include "GLS.Cadencer.hpp"
  15. #include "GLS.Coordinates.hpp"
  16. #include "GLS.GeomObjects.hpp"
  17. #include "GLS.Graph.hpp"
  18. #include "GLS.Objects.hpp"
  19. #include "GLS.Scene.hpp"
  20. #include "GLS.SceneViewer.hpp"
  21. #include "GLS.SmoothNavigator.hpp"
  22. #include "GLS.Keyboard.hpp"
  23. #include "GLS.Utils.hpp"
  24. //---------------------------------------------------------------------------
  25. class TForm1 : public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TGLSceneViewer *GLSceneViewer1;
  29. TPanel *Panel3;
  30. TCheckBox *MouseLookCheckBox;
  31. TGroupBox *GroupBox2;
  32. TRadioButton *RadioButton6;
  33. TRadioButton *RadioButton7;
  34. TRadioButton *RadioButton8;
  35. TGroupBox *GroupBox1;
  36. TLabel *Label1;
  37. TPanel *Panel1;
  38. TGLScene *GLScene1;
  39. TGLDummyCube *scene;
  40. TGLXYZGrid *GLXYZGrid1;
  41. TGLLightSource *GLLightSource1;
  42. TGLSphere *GLSphere1;
  43. TGLArrowLine *GLArrowLine1;
  44. TGLCamera *GLCamera1;
  45. TGLCadencer *GLCadencer1;
  46. TTimer *FPSTimer;
  47. void __fastcall FormCreate(TObject *Sender);
  48. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  49. void __fastcall FPSTimerTimer(TObject *Sender);
  50. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  51. void __fastcall MouseLookCheckBoxClick(TObject *Sender);
  52. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  53. void __fastcall RadioButton6Click(TObject *Sender);
  54. void __fastcall RadioButton7Click(TObject *Sender);
  55. void __fastcall RadioButton8Click(TObject *Sender);
  56. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  57. int Y);
  58. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  59. int X, int Y);
  60. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  61. TPoint &MousePos, bool &Handled);
  62. private: // User declarations
  63. TGLSmoothUserInterface *UI;
  64. TGLSmoothNavigator *Navigator;
  65. // RealPos: TPoint;
  66. TShiftState ShiftState;
  67. int xx, yy;
  68. int NewXX, NewYY;
  69. void __fastcall CheckControls(double DeltaTime, double newTime);
  70. public: // User declarations
  71. __fastcall TForm1(TComponent* Owner);
  72. };
  73. //---------------------------------------------------------------------------
  74. extern PACKAGE TForm1 *Form1;
  75. //---------------------------------------------------------------------------
  76. #endif