/
ArtemSls
/
O3DM
Обзор
Документация
Войти
/
ArtemSls
/
O3DM
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
patch
Lab4/FormUnit_L4.h
69 строк
3 KB
ArtemSls
upload files
24 янв 2025, 03:29
24 янв 2025, 03:29
57817f5
Код
Авторство
О чём код?
//--------------------------------------------------------------------------- #ifndef FormUnit_L4H #define FormUnit_L4H #include "GLS.BaseClasses.hpp" #include "GLS.Coordinates.hpp" #include "GLS.Graph.hpp" #include "GLS.Objects.hpp" #include "GLS.Scene.hpp" #include "GLS.SceneViewer.hpp" #include <System.Classes.hpp> #include <Vcl.ComCtrls.hpp> #include <Vcl.Controls.hpp> #include <Vcl.ExtCtrls.hpp> #include <Vcl.StdCtrls.hpp> #include <System.ImageList.hpp> #include <Vcl.ImgList.hpp> //--------------------------------------------------------------------------- class TForm_L4 : public TForm { __published: // IDE-managed Components TGLScene* GLScene1; TGLSceneViewer* Viewer; TGLCamera* Camera; TGLLightSource *LightSource; TGLHeightField *HeightField; TGLXYZGrid* XYGrid; TGLXYZGrid* XZGrid; TGLXYZGrid* YZGrid; TPanel* Panel1; TTrackBar *TrackBarY; TTrackBar *TrackBarX; TTrackBar *TrackBarZ; TLabel *LabelX; TRadioGroup *rgFormula; TRadioGroup *rgPolygonMode; TLabel *LabelY; TLabel *LabelZ; void __fastcall TrackBarYChange(TObject* Sender); void __fastcall ViewerMouseDown( TObject* Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall ViewerMouseMove( TObject* Sender, TShiftState Shift, int X, int Y); void __fastcall TrackBarXChange(TObject* Sender); void __fastcall TrackBarZChange(TObject* Sender); void __fastcall FormMouseWheel(TObject* Sender, TShiftState Shift, int WheelDelta, TPoint &MousePos, bool &Handled); void __fastcall rgFormulaClick(TObject* Sender); void __fastcall FormCreate(TObject* Sender); void __fastcall rgPolygonModeClick(TObject *Sender); private: // User declarations int mx, my; void __fastcall Formula0(const float x, const float y, float &z, TVector4f &color, TTexPoint &texPoint); void __fastcall Formula1(const float x, const float y, float &z, TVector4f &color, TTexPoint &texPoint); void __fastcall Formula2(const float x, const float y, float &z, TVector4f &color, TTexPoint &texPoint); void __fastcall Formula3(const float x, const float y, float &z, TVector4f &color, TTexPoint &texPoint); public: // User declarations __fastcall TForm_L4(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm_L4* Form_L4; //--------------------------------------------------------------------------- #endif