Unit1.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <tchar.h>
  7. //---------------------------------------------------------------------------
  8. #include <System.Classes.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.ExtCtrls.hpp>
  13. #include "GLBaseClasses.hpp"
  14. #include "GLCoordinates.hpp"
  15. #include "GLCrossPlatform.hpp"
  16. #include "GLMaterial.hpp"
  17. #include "GLObjects.hpp"
  18. #include "GLScene.hpp"
  19. #include "GLVectorFileObjects.hpp"
  20. #include "GLWin32Viewer.hpp"
  21. #include "GLBSP.hpp"
  22. #include "GLMeshCSG.hpp"
  23. #include "GLUtils.hpp"
  24. //---------------------------------------------------------------------------
  25. class TForm1 : public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TGLSceneViewer *GLSceneViewer1;
  29. TPanel *Panel1;
  30. TButton *ButtonClear;
  31. TButton *Button2;
  32. TButton *Button3;
  33. TButton *Button4;
  34. TButton *Button5;
  35. TCheckBox *CheckBox1;
  36. TGLScene *GLScene1;
  37. TGLCamera *GLCamera1;
  38. TGLLightSource *GLLightSource1;
  39. TGLDummyCube *GLDummyCube1;
  40. TGLFreeForm *GLFreeForm3;
  41. TGLFreeForm *GLFreeForm2;
  42. TGLFreeForm *GLFreeForm1;
  43. TGLMaterialLibrary *GLMaterialLibrary1;
  44. void __fastcall FormCreate(TObject *Sender);
  45. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  46. int X, int Y);
  47. void __fastcall GLSceneViewer1MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  48. int X, int Y);
  49. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  50. int Y);
  51. void __fastcall FormMouseWheelDown(TObject *Sender, TShiftState Shift, TPoint &MousePos,
  52. bool &Handled);
  53. void __fastcall FormMouseWheelUp(TObject *Sender, TShiftState Shift, TPoint &MousePos,
  54. bool &Handled);
  55. void __fastcall ButtonClearClick(TObject *Sender);
  56. void __fastcall Button2Click(TObject *Sender);
  57. void __fastcall Button3Click(TObject *Sender);
  58. void __fastcall Button4Click(TObject *Sender);
  59. void __fastcall Button5Click(TObject *Sender);
  60. void __fastcall CheckBox1Click(TObject *Sender);
  61. private: // User declarations
  62. int mx, my;
  63. bool Drag;
  64. public: // User declarations
  65. __fastcall TForm1(TComponent* Owner);
  66. };
  67. //---------------------------------------------------------------------------
  68. extern PACKAGE TForm1 *Form1;
  69. //---------------------------------------------------------------------------
  70. #endif