You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICPOSITION_H_INCL__
  2. #define __BASICPOSITION_H_INCL__
  3. #include "../object/objectSystemAnchor.h"
  4. /**
  5. * TODO: Add class description
  6. *
  7. * @author gagua
  8. */
  9. class basicPosition: public position3D{
  10. private:
  11. coordConverter converter;
  12. S_TRANS_MATRIX m_sMatrix;
  13. transform_3 *m_pTransform;
  14. int m_nZoneID;
  15. void updateMatrix( void );
  16. public:
  17. // Constructor
  18. basicPosition();
  19. // Destructor
  20. virtual ~basicPosition();
  21. // Copy constructor
  22. basicPosition( const basicPosition& src );
  23. // Assignment operator
  24. basicPosition& operator=(const basicPosition& src);
  25. basicPosition( float lat, float lon, float alt = 0.0f, float h_x = 0.0f, float h_y = 0.0f, float h_z = 0.0f, float speed = 0.0f);
  26. void setPositionRad(float lat, float lon, float alt = 0.0f, float h_x = 0.0f, float h_y = 0.0f, float h_z = 0.0f, float speed = 0.0f);
  27. void setPositionDeg(float lat, float lon, float alt = 0.0f, float h_x = 0.0f, float h_y = 0.0f, float h_z = 0.0f, float speed = 0.0f);
  28. S_TRANS_MATRIX *getTransMatrix(void){ return &m_sMatrix; };
  29. transform_3 *getTransform(void){ return m_pTransform; };
  30. };
  31. #endif // __BASICPOSITION_H_INCL__