Unit1.h 4.0 KB

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