fcFxy.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //---------------------------------------------------------------------------
  2. #ifndef fcFxyH
  3. #define fcFxyH
  4. #include "GLS.BaseClasses.hpp"
  5. #include "GLS.Coordinates.hpp"
  6. #include "GLS.Graph.hpp"
  7. #include "GLS.Objects.hpp"
  8. #include "GLS.Scene.hpp"
  9. #include "GLS.SceneViewer.hpp"
  10. #include <System.Classes.hpp>
  11. #include <Vcl.ComCtrls.hpp>
  12. #include <Vcl.Controls.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include <Vcl.StdCtrls.hpp>
  15. #include <System.ImageList.hpp>
  16. #include <Vcl.ImgList.hpp>
  17. #include "GLS.AsyncTimer.hpp"
  18. //---------------------------------------------------------------------------
  19. class TFormFxy : public TForm
  20. {
  21. __published: // IDE-managed Components
  22. TGLScene* GLScene1;
  23. TGLSceneViewer* Viewer;
  24. TGLCamera* Camera;
  25. TGLLightSource *LightSource;
  26. TGLHeightField *HeightField;
  27. TGLXYZGrid* XYGrid;
  28. TGLXYZGrid* XZGrid;
  29. TGLXYZGrid* YZGrid;
  30. TPanel* Panel1;
  31. TTrackBar *TrackBarY;
  32. TTrackBar *TrackBarX;
  33. TTrackBar *TrackBarZ;
  34. TLabel *LabelX;
  35. TCheckBox *chbCenter;
  36. TRadioGroup *rgFormula;
  37. TRadioGroup *rgPolygonMode;
  38. TLabel *LabelY;
  39. TLabel *LabelZ;
  40. TGLAsyncTimer *GLAsyncTimer1;
  41. void __fastcall chbCenterClick(TObject* Sender);
  42. void __fastcall TrackBarYChange(TObject* Sender);
  43. void __fastcall ViewerMouseDown(
  44. TObject* Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  45. void __fastcall ViewerMouseMove(
  46. TObject* Sender, TShiftState Shift, int X, int Y);
  47. void __fastcall TrackBarXChange(TObject* Sender);
  48. void __fastcall TrackBarZChange(TObject* Sender);
  49. void __fastcall FormMouseWheel(TObject* Sender, TShiftState Shift,
  50. int WheelDelta, TPoint &MousePos, bool &Handled);
  51. void __fastcall rgFormulaClick(TObject* Sender);
  52. void __fastcall FormCreate(TObject* Sender);
  53. void __fastcall rgPolygonModeClick(TObject *Sender);
  54. private: // User declarations
  55. int mx, my;
  56. void __fastcall Formula0(const float x, const float y, float &z,
  57. TVector4f &color, TTexPoint &texPoint);
  58. void __fastcall Formula1(const float x, const float y, float &z,
  59. TVector4f &color, TTexPoint &texPoint);
  60. void __fastcall Formula2(const float x, const float y, float &z,
  61. TVector4f &color, TTexPoint &texPoint);
  62. void __fastcall Formula3(const float x, const float y, float &z,
  63. TVector4f &color, TTexPoint &texPoint);
  64. public: // User declarations
  65. __fastcall TFormFxy(TComponent* Owner);
  66. };
  67. //---------------------------------------------------------------------------
  68. extern PACKAGE TFormFxy* FormFxy;
  69. //---------------------------------------------------------------------------
  70. #endif