Unit1.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. #include <vcl.h>
  5. #include <tchar.h>
  6. //---------------------------------------------------------------------------
  7. #include <Classes.hpp>
  8. #include <Controls.hpp>
  9. #include <StdCtrls.hpp>
  10. #include <Forms.hpp>
  11. #include <Dialogs.hpp>
  12. #include <ExtCtrls.hpp>
  13. #include <ExtDlgs.hpp>
  14. #include <Menus.hpp>
  15. #include <GLVectorFileObjects.hpp>
  16. #include <GLTexture.hpp>
  17. #include <GLTree.hpp>
  18. #include <GLWin32Viewer.hpp>
  19. #include <GLObjects.hpp>
  20. #include <GLScene.hpp>
  21. #include <ComCtrls.hpp>
  22. #include "GLBaseClasses.hpp"
  23. #include "GLCoordinates.hpp"
  24. #include "GLCrossPlatform.hpp"
  25. #include "GLMaterial.hpp"
  26. #include "GLFileTGA.hpp"
  27. #include "GLUtils.hpp"
  28. //---------------------------------------------------------------------------
  29. class TForm1:public TForm
  30. {
  31. __published: // IDE-managed Components
  32. TGLScene * GLScene1;
  33. TGLSceneViewer *GLSceneViewer1;
  34. TGLCamera *GLCamera1;
  35. TGLDummyCube *GLDummyCube1;
  36. TGLLightSource *GLLightSource1;
  37. TGLMaterialLibrary *GLMaterialLibrary1;
  38. TPanel *Panel1;
  39. TLabel *Label1;
  40. TLabel *Label2;
  41. TTrackBar *TrackBar1;
  42. TTrackBar *TrackBar2;
  43. TLabel *Label3;
  44. TTrackBar *TrackBar3;
  45. TLabel *Label4;
  46. TTrackBar *TrackBar4;
  47. TLabel *Label5;
  48. TTrackBar *TrackBar5;
  49. TLabel *Label6;
  50. TTrackBar *TrackBar6;
  51. TLabel *Label7;
  52. TTrackBar *TrackBar7;
  53. TLabel *Label8;
  54. TTrackBar *TrackBar8;
  55. TLabel *Label9;
  56. TTrackBar *TrackBar9;
  57. TTrackBar *TrackBar10;
  58. TLabel *Label10;
  59. TGLFreeForm *GLFreeForm1;
  60. TMainMenu *MainMenu1;
  61. TMenuItem *File1;
  62. TMenuItem *LoadTree1;
  63. TMenuItem *SaveTree1;
  64. TMenuItem *N1;
  65. TMenuItem *Exit1;
  66. TMenuItem *NewTree1;
  67. TMenuItem *Material1;
  68. TMenuItem *LeafFrontTexture1;
  69. TMenuItem *LeafBackTexture1;
  70. TMenuItem *BranchTexture1;
  71. TMenuItem *N2;
  72. TMenuItem *ExportMesh1;
  73. TLabel *Label11;
  74. TOpenDialog *OpenDialog1;
  75. TSaveDialog *SaveDialog1;
  76. TGLPlane *GLPlane1;
  77. TLabel *Label12;
  78. TEdit *Edit1;
  79. TButton *Button1;
  80. TCheckBox *CheckBox1;
  81. TTrackBar *TrackBar11;
  82. TSaveDialog *SaveDialog2;
  83. TSaveDialog *SaveDialog3;
  84. TMenuItem *ExportMaterialLibrary1;
  85. TOpenPictureDialog *OpenPictureDialog1;
  86. void __fastcall GLSceneViewer1MouseDown(TObject * Sender, TMouseButton Button,
  87. TShiftState Shift, int X, int Y);
  88. void __fastcall GLSceneViewer1MouseMove(TObject * Sender, TShiftState Shift,
  89. int X, int Y);
  90. void __fastcall TrackBar1Change(TObject * Sender);
  91. void __fastcall TrackBar2Change(TObject * Sender);
  92. void __fastcall TrackBar3Change(TObject * Sender);
  93. void __fastcall TrackBar4Change(TObject * Sender);
  94. void __fastcall TrackBar5Change(TObject * Sender);
  95. void __fastcall TrackBar6Change(TObject * Sender);
  96. void __fastcall TrackBar7Change(TObject * Sender);
  97. void __fastcall TrackBar8Change(TObject * Sender);
  98. void __fastcall TrackBar9Change(TObject * Sender);
  99. void __fastcall TrackBar10Change(TObject * Sender);
  100. void __fastcall Button1Click(TObject * Sender);
  101. void __fastcall CheckBox1Click(TObject * Sender);
  102. void __fastcall TrackBar11Change(TObject * Sender);
  103. void __fastcall NewTree1Click(TObject * Sender);
  104. void __fastcall LoadTree1Click(TObject * Sender);
  105. void __fastcall SaveTree1Click(TObject * Sender);
  106. void __fastcall ExportMesh1Click(TObject * Sender);
  107. void __fastcall ExportMaterialLibrary1Click(TObject * Sender);
  108. void __fastcall Exit1Click(TObject * Sender);
  109. void __fastcall LeafFrontTexture1Click(TObject * Sender);
  110. void __fastcall LeafBackTexture1Click(TObject * Sender);
  111. void __fastcall BranchTexture1Click(TObject * Sender);
  112. private: // User declarations
  113. public: // User declarations
  114. __fastcall TForm1(TComponent * Owner);
  115. int mx, my;
  116. TGLTree *GLTree1;
  117. void AlignControlsToTree();
  118. void NewTree();
  119. };
  120. //---------------------------------------------------------------------------
  121. extern PACKAGE TForm1 *Form1;
  122. //---------------------------------------------------------------------------
  123. #endif