Unit1.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <ExtCtrls.hpp>
  9. #include <Forms.hpp>
  10. #include "GLS.BaseClasses.hpp"
  11. #include "GLS.Cadencer.hpp"
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLS.GeomObjects.hpp"
  14. #include "GLS.Material.hpp"
  15. #include "GLS.Objects.hpp"
  16. #include "GLS.Scene.hpp"
  17. #include "GLS.ShadowVolume.hpp"
  18. #include "GLS.VectorFileObjects.hpp"
  19. #include "GLS.SceneViewer.hpp"
  20. #pragma hdrstop
  21. //---------------------------------------------------------------------------
  22. class TForm1:public TForm
  23. {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer * GLSceneViewer;
  26. TGLScene *GLScene1;
  27. TGLCadencer *GLCadencer1;
  28. TGLCamera *GLCamera;
  29. TGLDummyCube *DCCamera;
  30. TGLLightSource *GLLightSource1;
  31. TGLShadowVolume *GLS.ShadowVolume;
  32. TGLSphere *GLSphere1;
  33. TGLDummyCube *DCLight1Turn;
  34. TGLDummyCube *DCLight1Pitch;
  35. TGLPlane *GLPlane1;
  36. TGLPlane *GLPlane2;
  37. TGLPlane *GLPlane3;
  38. TTimer *Timer1;
  39. TPanel *Panel1;
  40. TCheckBox *CBShowVolumes;
  41. TLabel *LabelFPS;
  42. TRadioButton *RBZFail;
  43. TRadioButton *RBZPass;
  44. TRadioButton *RBNoShadows;
  45. TRadioButton *RBDarkening;
  46. TGLDummyCube *DCLight2;
  47. TGLLightSource *GLLightSource2;
  48. TGLSphere *GLSphere2;
  49. TCheckBox *CBMainLight;
  50. TCheckBox *CBBlueLight;
  51. TGLDummyCube *DCLight3;
  52. TGLLightSource *GLLightSource3;
  53. TGLSphere *GLSphere3;
  54. TCheckBox *CBRedLight;
  55. TGLDummyCube *DCSpheres;
  56. TGLFreeForm *GLFreeForm;
  57. TGLCube *GLCube1;
  58. TGLMaterialLibrary *GLMaterialLibrary1;
  59. TGLCylinder *GLCylinder1;
  60. TGLSphere *GLSphere4;
  61. TGLSphere *GLSphere_Shadow;
  62. TLabel *Label2;
  63. TScrollBar *ScrollBar_ShadowResolution;
  64. TButton *Button_GenerateSilhouette;
  65. TGLLines *GLLines1;
  66. void __fastcall GLCadencer1Progress(TObject * Sender, const double deltaTime,
  67. const double newTime);
  68. void __fastcall CBShowVolumesClick(TObject * Sender);
  69. void __fastcall RBZFailClick(TObject * Sender);
  70. void __fastcall GLSceneViewerMouseDown(TObject * Sender, TMouseButton Button,
  71. TShiftState Shift, int X, int Y);
  72. void __fastcall GLSceneViewerMouseMove(TObject * Sender, TShiftState Shift,
  73. int X, int Y);
  74. void __fastcall Timer1Timer(TObject * Sender);
  75. void __fastcall FormResize(TObject * Sender);
  76. void __fastcall CBMainLightClick(TObject * Sender);
  77. void __fastcall CBBlueLightClick(TObject * Sender);
  78. void __fastcall CBRedLightClick(TObject * Sender);
  79. void __fastcall ScrollBar_ShadowResolutionChange(TObject * Sender);
  80. void __fastcall Button_GenerateSilhouetteClick(TObject * Sender);
  81. private: // User declarations
  82. public: // User declarations
  83. __fastcall TForm1(TComponent * Owner);
  84. int mx, my;
  85. };
  86. //---------------------------------------------------------------------------
  87. extern PACKAGE TForm1 *Form1;
  88. //---------------------------------------------------------------------------
  89. #endif