StrengthLine.hpp 428 B

123456789101112131415161718192021
  1. #ifndef STRENGTHLINE_HPP
  2. #define STRENGTHLINE_HPP
  3. #include <QPoint>
  4. #include <QImage>
  5. class StrengthLine
  6. {
  7. private:
  8. QPoint * p1, *p2;
  9. std::pair < float, float >equation () const;
  10. public:
  11. StrengthLine (QPoint * p1 = new QPoint (0, 0), QPoint * p2 =
  12. new QPoint (1, 1));
  13. std::pair < QPoint *, QPoint * >toDraw (QImage * img) const;
  14. std::pair < QPoint *, QPoint * >interpolateToEdge (QImage * img) const;
  15. };
  16. #endif