fCsgC.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //---------------------------------------------------------------------------
  2. #ifndef fCsgCH
  3. #define fCsgCH
  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 "GLS.BaseClasses.hpp"
  14. #include "GLS.Coordinates.hpp"
  15. #include "GLS.Material.hpp"
  16. #include "GLS.Objects.hpp"
  17. #include "GLS.Scene.hpp"
  18. #include "GLS.VectorFileObjects.hpp"
  19. #include "GLS.SceneViewer.hpp"
  20. #include "GLS.MeshBSP.hpp"
  21. #include "GLS.MeshCSG.hpp"
  22. #include "GLS.Utils.hpp"
  23. //---------------------------------------------------------------------------
  24. class TForm1 : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TPanel *Panel1;
  29. TButton *ButtonClear;
  30. TButton *Button2;
  31. TButton *Button3;
  32. TButton *Button4;
  33. TButton *Button5;
  34. TCheckBox *CheckBox1;
  35. TGLScene *GLScene1;
  36. TGLCamera *GLCamera1;
  37. TGLLightSource *GLLightSource1;
  38. TGLDummyCube *GLDummyCube1;
  39. TGLFreeForm *GLFreeForm3;
  40. TGLFreeForm *GLFreeForm2;
  41. TGLFreeForm *GLFreeForm1;
  42. TGLMaterialLibrary *GLMaterialLibrary1;
  43. void __fastcall FormCreate(TObject *Sender);
  44. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  45. int X, int Y);
  46. void __fastcall GLSceneViewer1MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
  47. int X, int Y);
  48. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
  49. int Y);
  50. void __fastcall FormMouseWheelDown(TObject *Sender, TShiftState Shift, TPoint &MousePos,
  51. bool &Handled);
  52. void __fastcall FormMouseWheelUp(TObject *Sender, TShiftState Shift, TPoint &MousePos,
  53. bool &Handled);
  54. void __fastcall ButtonClearClick(TObject *Sender);
  55. void __fastcall Button2Click(TObject *Sender);
  56. void __fastcall Button3Click(TObject *Sender);
  57. void __fastcall Button4Click(TObject *Sender);
  58. void __fastcall Button5Click(TObject *Sender);
  59. void __fastcall CheckBox1Click(TObject *Sender);
  60. private: // User declarations
  61. int mx, my;
  62. bool Drag;
  63. public: // User declarations
  64. __fastcall TForm1(TComponent* Owner);
  65. };
  66. //---------------------------------------------------------------------------
  67. extern PACKAGE TForm1 *Form1;
  68. //---------------------------------------------------------------------------
  69. #endif