fGizmoExC.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //---------------------------------------------------------------------------
  2. #ifndef fGizmoExCH
  3. #define fGizmoExCH
  4. //---------------------------------------------------------------------------
  5. #include <Windows.hpp>
  6. #include <System.SysUtils.hpp>
  7. #include <System.Classes.hpp>
  8. #include <Vcl.Controls.hpp>
  9. #include <Vcl.Forms.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.ExtCtrls.hpp>
  12. #include <Vcl.Buttons.hpp>
  13. #include <Vcl.ComCtrls.hpp>
  14. #include "GLS.BaseClasses.hpp"
  15. #include "GLS.BitmapFont.hpp"
  16. #include "GLS.Cadencer.hpp"
  17. #include "GLS.Coordinates.hpp"
  18. #include "GLS.GeomObjects.hpp"
  19. #include "GLS.Graph.hpp"
  20. #include "GLS.Objects.hpp"
  21. #include "GLS.Scene.hpp"
  22. #include "GLS.SceneViewer.hpp"
  23. #include "GLS.WindowsFont.hpp"
  24. #include "GLS.Keyboard.hpp"
  25. #include "GLS.GizmoEx.hpp"
  26. //---------------------------------------------------------------------------
  27. class TForm1 : public TForm
  28. {
  29. __published: // IDE-managed Components
  30. TLabel *Label9;
  31. TGLSceneViewer *Viewer;
  32. TPanel *Panel2;
  33. TSpeedButton *SpeedButton1;
  34. TSpeedButton *SpeedButton2;
  35. TSpeedButton *SpeedButton3;
  36. TSpeedButton *SpeedButton4;
  37. TSpeedButton *SpeedButton5;
  38. TLabel *Label12;
  39. TSpeedButton *SpeedButton6;
  40. TSpeedButton *SpeedButton11;
  41. TLabel *Label15;
  42. TSpeedButton *SpeedButton12;
  43. TSpeedButton *SpeedButton13;
  44. TLabel *Label17;
  45. TComboBox *ComboBox4;
  46. TPanel *Panel4;
  47. TSpeedButton *SpeedButton7;
  48. TSpeedButton *SpeedButton8;
  49. TSpeedButton *SpeedButton9;
  50. TSpeedButton *SpeedButton10;
  51. TPageControl *PageControl1;
  52. TTabSheet *TabSheet1;
  53. TLabel *Label10;
  54. TLabel *Label11;
  55. TLabel *Label4;
  56. TLabel *Label5;
  57. TLabel *Label16;
  58. TLabel *Label6;
  59. TLabel *Label7;
  60. TLabel *Label13;
  61. TCheckBox *CheckBox1;
  62. TCheckBox *CheckBox10;
  63. TCheckBox *CheckBox11;
  64. TCheckBox *CheckBox12;
  65. TCheckBox *CheckBox2;
  66. TCheckBox *CheckBox4;
  67. TCheckBox *CheckBox5;
  68. TCheckBox *CheckBox6;
  69. TCheckBox *CheckBox7;
  70. TCheckBox *CheckBox8;
  71. TCheckBox *CheckBox9;
  72. TEdit *edAutoZoomFactor;
  73. TEdit *edtGizmoThickness;
  74. TEdit *edtScaleCoef;
  75. TEdit *edzoomfactor;
  76. TRadioGroup *OptPickMode;
  77. TComboBox *ComboBox3;
  78. TCheckBox *CheckBox13;
  79. TCheckBox *CheckBox14;
  80. TCheckBox *CheckBox15;
  81. TCheckBox *CheckBox3;
  82. TEdit *edMoveCoef;
  83. TEdit *edRotateCoef;
  84. TCheckBox *CheckBox16;
  85. TEdit *Edit1;
  86. TTabSheet *TabSheet2;
  87. TLabel *Label1;
  88. TLabel *Label14;
  89. TLabel *Label2;
  90. TLabel *Label3;
  91. TColorBox *ColorBox1;
  92. TColorBox *ColorBox2;
  93. TColorBox *ColorBox3;
  94. TColorBox *ColorBox4;
  95. TTabSheet *TabSheet3;
  96. TLabel *Label8;
  97. TPanel *Panel1;
  98. TSpeedButton *SpeedButton14;
  99. TSpeedButton *SpeedButton15;
  100. TSpeedButton *SpeedButton17;
  101. TSpeedButton *SpeedButton18;
  102. TPanel *Panel3;
  103. TTreeView *TreeView1;
  104. TPanel *Panel5;
  105. TGroupBox *GroupBox1;
  106. TSpeedButton *SpeedButton16;
  107. TSpeedButton *SpeedButton19;
  108. TSpeedButton *SpeedButton20;
  109. TGLScene *GLScene1;
  110. TGLDummyCube *GLRootUserInterface;
  111. TGLDummyCube *GLTargetCamera;
  112. TGLCamera *Camera;
  113. TGLLightSource *GLLightSource1;
  114. TGLLightSource *GLLightSource2;
  115. TGLXYZGrid *GLXYZGrid1;
  116. TGLDummyCube *GLRootObjects;
  117. TGLDodecahedron *GLDodecahedron3;
  118. TGLArrowLine *GLArrowLine3;
  119. TGLArrowLine *GLArrowLine4;
  120. TGLCube *GLCube2;
  121. TGLCube *GLCube1;
  122. TGLSphere *GLSphere1;
  123. TGLFrustrum *GLFrustrum1;
  124. TGLDisk *GLDisk1;
  125. TGLDummyCube *RootGizmo;
  126. TGLDummyCube *RootTempObjects;
  127. TGLCadencer *GLCadencer1;
  128. TGLWindowsBitmapFont *WindowsBitmapFont;
  129. TTimer *Timer1;
  130. void __fastcall FormCreate(TObject *Sender);
  131. void __fastcall FormDestroy(TObject *Sender);
  132. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  133. void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
  134. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  135. TPoint &MousePos, bool &Handled);
  136. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  137. void __fastcall Timer1Timer(TObject *Sender);
  138. private: // User declarations
  139. int mx, my;
  140. TGLVector MousePos,LostMousePos;
  141. bool MouseMoving;
  142. TGLVector pos;
  143. TGLBaseSceneObject *FObj;
  144. TGLGizmoEx *Gizmo;
  145. float FVectorLength;
  146. int FCreationScenarious;
  147. void __fastcall UpdateTreeView();
  148. public: // User declarations
  149. __fastcall TForm1(TComponent* Owner);
  150. };
  151. //---------------------------------------------------------------------------
  152. extern PACKAGE TForm1 *Form1;
  153. //---------------------------------------------------------------------------
  154. #endif