gtbaseparamanalysize.h 934 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // Created by lloyd on 2020/9/28.
  3. //
  4. #ifndef GTCVR_GTBASEPARAMANALYSIZE_H
  5. #define GTCVR_GTBASEPARAMANALYSIZE_H
  6. #include <vector>
  7. #include "DataMapping/dgns_gtbaseparam.h"
  8. class gtbaseparamanalysize {
  9. public:
  10. /*double s_max;
  11. double s_min;
  12. double l_max;
  13. double l_min;
  14. int pointNum;
  15. double S;
  16. double L;
  17. double N;
  18. double gt_area;
  19. double l_mid;
  20. //功图第一拐点载荷
  21. double l_fistdownturnpoint;
  22. double gt_s_effect;
  23. //0: not legal ;1: in legal ;default:-1
  24. int isLegal;
  25. std::vector<std::vector<double>> gtdataContent;*/
  26. /**
  27. * cal base param max min L S Area and etc.
  28. * @param _baseparam
  29. */
  30. void analysisParam(dgns_gtbaseparam *_baseparam);
  31. private:
  32. double getFirstTurningPoint2(std::vector<std::vector<double>>gt, int gt_pointNum);
  33. void checkGTLegality(dgns_gtbaseparam *_baseparam);
  34. };
  35. #endif //GTCVR_GTBASEPARAMANALYSIZE_H