fGizmoC.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //---------------------------------------------------------------------------
  2. #ifndef fGizmoCH
  3. #define fGizmoCH
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.SysUtils.hpp>
  9. #include <System.Classes.hpp>
  10. #include <Vcl.Graphics.hpp>
  11. #include <Vcl.Controls.hpp>
  12. #include <Vcl.Forms.hpp>
  13. #include <Vcl.StdCtrls.hpp>
  14. #include <Vcl.Dialogs.hpp>
  15. #include <Vcl.ExtCtrls.hpp>
  16. #include "GLS.BaseClasses.hpp"
  17. #include "GLS.BitmapFont.hpp"
  18. #include "GLS.Cadencer.hpp"
  19. #include "GLS.Coordinates.hpp"
  20. #include "GLS.GeomObjects.hpp"
  21. #include "GLS.Objects.hpp"
  22. #include "GLS.Scene.hpp"
  23. #include "GLS.SceneViewer.hpp"
  24. #include "GLS.WindowsFont.hpp"
  25. #include "GLS.SpaceText.hpp"
  26. #include "GLS.HUDObjects.hpp"
  27. #include "GLS.Gizmo.hpp"
  28. #include "GLS.VectorFileObjects.hpp"
  29. //---------------------------------------------------------------------------
  30. class TForm1 : public TForm
  31. {
  32. __published: // IDE-managed Components
  33. TGLSceneViewer *Viewer;
  34. TPanel *Panel1;
  35. TBevel *Bevel1;
  36. TLabel *Label1;
  37. TLabel *Label2;
  38. TLabel *Label3;
  39. TLabel *Label4;
  40. TLabel *Label5;
  41. TLabel *Label6;
  42. TLabel *Label10;
  43. TLabel *Label11;
  44. TLabel *Label7;
  45. TCheckBox *CheckBox1;
  46. TCheckBox *CheckBox2;
  47. TComboBox *CBXAxis;
  48. TCheckBox *CheckBox3;
  49. TComboBox *CBXOperation;
  50. TCheckBox *CheckBox4;
  51. TCheckBox *CheckBox5;
  52. TCheckBox *CheckBox6;
  53. TCheckBox *CheckBox7;
  54. TCheckBox *CheckBox8;
  55. TCheckBox *CheckBox9;
  56. TCheckBox *CheckBox10;
  57. TCheckBox *CheckBox11;
  58. TColorBox *ColorBox1;
  59. TColorBox *ColorBox2;
  60. TColorBox *ColorBox3;
  61. TEdit *edAutoZoomFactor;
  62. TEdit *edZoomFactor;
  63. TCheckBox *CheckBox12;
  64. TEdit *edMoveCoef;
  65. TEdit *edRotateCoef;
  66. TCheckBox *CheckBox13;
  67. TCheckBox *CheckBox14;
  68. TCheckBox *CheckBox15;
  69. TEdit *edGizmoThickness;
  70. TRadioGroup *OptPickMode;
  71. TEdit *edScaleCoef;
  72. TGLScene *GLScene1;
  73. TGLDummyCube *GLDummyCube1;
  74. TGLDodecahedron *GLDodecahedron3;
  75. TGLArrowLine *GLArrowLine3;
  76. TGLArrowLine *GLArrowLine4;
  77. TGLCube *GLCube1;
  78. TGLSphere *GLSphere1;
  79. TGLLightSource *GLLightSource1;
  80. TGLLightSource *GLLightSource2;
  81. TGLDummyCube *RootGizmo;
  82. TGLCamera *Camera;
  83. TGLCadencer *GLCadencer1;
  84. TGLWindowsBitmapFont *WindowsBitmapFont;
  85. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  86. void __fastcall OptPickModeClick(TObject *Sender);
  87. void __fastcall ViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  88. int X, int Y);
  89. void __fastcall ViewerMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  90. void __fastcall ViewerMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  91. int X, int Y);
  92. void __fastcall FormShow(TObject *Sender);
  93. void __fastcall edAutoZoomFactorChange(TObject *Sender);
  94. void __fastcall edAutoZoomFactorKeyPress(TObject *Sender, System::WideChar &Key);
  95. void __fastcall CheckBox12Click(TObject *Sender);
  96. void __fastcall CBXAxisChange(TObject *Sender);
  97. void __fastcall CBXOperationChange(TObject *Sender);
  98. void __fastcall edMoveCoefChange(TObject *Sender);
  99. void __fastcall edRotateCoefChange(TObject *Sender);
  100. void __fastcall edGizmoThicknessChange(TObject *Sender);
  101. void __fastcall edScaleCoefChange(TObject *Sender);
  102. void __fastcall edZoomFactorChange(TObject *Sender);
  103. void __fastcall ColorBox1Change(TObject *Sender);
  104. void __fastcall FormCreate(TObject *Sender);
  105. void __fastcall FormDestroy(TObject *Sender);
  106. private: // User declarations
  107. int mx, my;
  108. bool noMouseMotion;
  109. TGLGizmo *Gizmo;
  110. void __fastcall FillPickableObjectsList(TGLBaseSceneObject *root, bool doClearList);
  111. public: // User declarations
  112. __fastcall TForm1(TComponent* Owner);
  113. };
  114. //---------------------------------------------------------------------------
  115. extern PACKAGE TForm1 *Form1;
  116. //---------------------------------------------------------------------------
  117. #endif