1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <System.Classes.hpp>
- #include <Vcl.Controls.hpp>
- #include <Vcl.StdCtrls.hpp>
- #include <Vcl.Forms.hpp>
- #include <Vcl.ExtCtrls.hpp>
- #include <Vcl.Grids.hpp>
- #include "GLS.BaseClasses.hpp"
- #include "GLS.Collision.hpp"
- #include "GLS.Coordinates.hpp"
- #include "GLS.Objects.hpp"
- #include "GLS.Scene.hpp"
- #include "GLS.SpaceText.hpp"
- #include "GLS.VectorFileObjects.hpp"
- #include "GLS.SceneViewer.hpp"
- #include "GLS.Utils.hpp"
- #include "GLS.File3DS.hpp"
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TSplitter *Splitter1;
- TGLSceneViewer *GLSceneViewer1;
- TPanel *Panel1;
- TShape *Shape1;
- TLabel *Label1;
- TLabel *LATime;
- TLabel *Label2;
- TRadioGroup *cbCollisionMode;
- TPanel *Panel2;
- TStringGrid *StringGrid1;
- TMemo *Memo1;
- TGLScene *GLScene1;
- TGLLightSource *GLLightSource1;
- TGLLightSource *GLLightSource2;
- TGLDummyCube *DummyCube1;
- TGLCamera *GLCamera2;
- TGLSpaceText *txtX;
- TGLSpaceText *txtY;
- TGLSpaceText *txtZ;
- TGLFreeForm *TeaPot1;
- TGLFreeForm *TeaPot2;
- TGLCube *CubePoint1;
- TGLCube *CubePoint2;
- TGLCube *Cube2;
- TGLCube *Bar;
- TGLSphere *GLSphere1;
- TGLSphere *GLSphere2;
- TGLSphere *GLSphereEllipsoid1;
- TGLSphere *GLSphereEllipsoid2;
- TGLCube *GLCube1;
- TGLCamera *GLCamera1;
- TGLCamera *GLCamera3;
- TTimer *Timer1;
- TGLCollisionManager *CollisionManager1;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall cbCollisionModeClick(TObject *Sender);
- void __fastcall Timer1Timer(TObject *Sender);
- void __fastcall CollisionManager1Collision(TObject *Sender, TGLBaseSceneObject *object1,
- TGLBaseSceneObject *object2);
- void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
- int X, int Y);
- void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift, int X,
- int Y);
- private: // User declarations
- int mdx, mdy;
- bool CollisionDetected;
- TGLCustomSceneObject *CurrSO;
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif
|