Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/ImageProcessing.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/ImageProcessing.h Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/Images/ImageProcessing.h Thu Nov 05 19:33:18 2020 +0100 @@ -37,38 +37,30 @@ public: class ORTHANC_PUBLIC ImagePoint { + private: int32_t x_; int32_t y_; public: - ImagePoint(int32_t x, - int32_t y) : - x_(x), - y_(y) - { - } + ImagePoint(int32_t x, + int32_t y); - int32_t GetX() const - { - return x_; - } + int32_t GetX() const; + + int32_t GetY() const; - int32_t GetY() const - { - return y_; - } + void Set(int32_t x, int32_t y); - void Set(int32_t x, int32_t y) - { - x_ = x; - y_ = y; - } - - void ClipTo(int32_t minX, int32_t maxX, int32_t minY, int32_t maxY); + void ClipTo(int32_t minX, + int32_t maxX, + int32_t minY, + int32_t maxY); double GetDistanceTo(const ImagePoint& other) const; - double GetDistanceToLine(double a, double b, double c) const; // where ax + by + c = 0 is the equation of the line + double GetDistanceToLine(double a, + double b, + double c) const; // where ax + by + c = 0 is the equation of the line }; static void Copy(ImageAccessor& target,