fNewtonDensityC.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //---------------------------------------------------------------------------
  2. #ifndef fNewtonDensityCH
  3. #define fNewtonDensityCH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.Samples.Spin.hpp>
  10. #include "GLS.BaseClasses.hpp"
  11. #include "GLS.Cadencer.hpp"
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLS.GeomObjects.hpp"
  14. #include "GLS.HUDObjects.hpp"
  15. #include "NGD.Import.hpp"
  16. #include "GLS.NGDManager.hpp"
  17. #include "GLS.Objects.hpp"
  18. #include "GLS.Scene.hpp"
  19. #include "GLS.SimpleNavigation.hpp"
  20. #include "GLS.SceneViewer.hpp"
  21. #include "GLS.BitmapFont.hpp"
  22. #include "GLS.NGDManager.hpp";
  23. //---------------------------------------------------------------------------
  24. class TForm1 : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TGLSceneViewer *GLSceneViewer1;
  28. TSpinEdit *SpinEdit1;
  29. TSpinEdit *SpinEdit2;
  30. TSpinEdit *SpinEdit3;
  31. TGLScene *GLScene1;
  32. TGLCamera *GLCamera1;
  33. TGLLightSource *GLLightSource1;
  34. TGLPlane *GLPlane1;
  35. TGLDummyCube *Mag;
  36. TGLDummyCube *obj;
  37. TGLCylinder *GLCylinder1;
  38. TGLCone *GLCone1;
  39. TGLCube *GLCube2;
  40. TGLCube *SubMarine;
  41. TGLSphere *GLLeadSphere;
  42. TGLSphere *GLPaperSphere;
  43. TGLCapsule *GLCapsule1;
  44. TGLCube *GLCube1;
  45. TGLHUDText *GLHUDText1;
  46. TGLHUDText *GLHUDText2;
  47. TGLHUDText *GLHUDText3;
  48. TGLCadencer *GLCadencer1;
  49. TGLSimpleNavigation *GLSimpleNavigation1;
  50. TGLNGDManager *GLNGDManager1;
  51. TGLBitmapFont *GLBitmapFont1;
  52. TGLSimpleNavigation *GLSimpleNavigation2;
  53. void __fastcall FormCreate(TObject *Sender);
  54. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime, const double newTime);
  55. void __fastcall GLSceneViewer1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  56. int X, int Y);
  57. private: // User declarations
  58. int mx,my;
  59. public: // User declarations
  60. __fastcall TForm1(TComponent* Owner);
  61. void MyForceAndTorqueDensity(const PNewtonBody cbody,
  62. dFloat timestep, int threadIndex);
  63. void Shoot(void);
  64. };
  65. //---------------------------------------------------------------------------
  66. extern PACKAGE TForm1 *Form1;
  67. //---------------------------------------------------------------------------
  68. #endif