Unit1.h 4.5 KB

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