fcProjection.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //---------------------------------------------------------------------------
  2. #ifndef fcProjectionH
  3. #define fcProjectionH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "GLS.BaseClasses.hpp"
  10. #include "GLS.Coordinates.hpp"
  11. #include "GLS.GeomObjects.hpp"
  12. #include "GLS.Graph.hpp"
  13. #include "GLS.Objects.hpp"
  14. #include "GLS.Scene.hpp"
  15. #include "GLS.SceneViewer.hpp"
  16. #include "GLS.RenderContextInfo.hpp"
  17. //---------------------------------------------------------------------------
  18. class TFormProjection : public TForm
  19. {
  20. __published: // IDE-managed Components
  21. TGLSceneViewer *SceneViewer;
  22. TGLScene *GLScene1;
  23. TGLCamera *GLCamera;
  24. TGLDummyCube *GLDummyCube;
  25. TGLArrowLine *GLArrowLine1;
  26. TGLLightSource *GLLightSource1;
  27. TGLDirectOpenGL *DirectOpenGL;
  28. TGLPoints *GLPoints;
  29. TGLPlane *GLPlane;
  30. TGLXYZGrid *GLXYZGrid1;
  31. void __fastcall FormCreate(TObject *Sender);
  32. void __fastcall DirectOpenGLRender(TObject *Sender, TGLRenderContextInfo &rci);
  33. void __fastcall SceneViewerMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  34. int X, int Y);
  35. void __fastcall SceneViewerMouseMove(TObject *Sender, TShiftState Shift, int X,
  36. int Y);
  37. void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift, int WheelDelta,
  38. TPoint &MousePos, bool &Handled);
  39. private: // User declarations
  40. int mx, my;
  41. public: // User declarations
  42. __fastcall TFormProjection(TComponent* Owner);
  43. };
  44. //---------------------------------------------------------------------------
  45. extern PACKAGE TFormProjection *FormProjection;
  46. //---------------------------------------------------------------------------
  47. #endif