comparison Framework/Radiography/RadiographyMaskLayer.h @ 476:a95090305dd4 am-touch-events

Introduced ControlPoint instead of Corner in the trackers and layers + drawing mask from the ControlPoints
author am@osimis.io
date Wed, 13 Feb 2019 12:04:02 +0100
parents 3c28542229a3
children e3d316ba34ba
comparison
equal deleted inserted replaced
475:3c28542229a3 476:a95090305dd4
63 63
64 virtual void Render(Orthanc::ImageAccessor& buffer, 64 virtual void Render(Orthanc::ImageAccessor& buffer,
65 const AffineTransform2D& viewTransform, 65 const AffineTransform2D& viewTransform,
66 ImageInterpolation interpolation) const; 66 ImageInterpolation interpolation) const;
67 67
68 virtual size_t GetControlPointCount() const
69 {
70 return corners_.size();
71 }
72
73 virtual void GetControlPointInternal(ControlPoint& controlPoint,
74 size_t index) const
75 {
76 controlPoint = ControlPoint(corners_[index].x, corners_[index].y, index);
77 }
78
68 virtual bool GetDefaultWindowing(float& center, 79 virtual bool GetDefaultWindowing(float& center,
69 float& width) const 80 float& width) const
70 { 81 {
71 return false; 82 return false;
72 } 83 }
89 100
90 return true; 101 return true;
91 102
92 } 103 }
93 104
105 protected:
106 virtual const AffineTransform2D& GetTransform() const;
107
108 virtual const AffineTransform2D& GetTransformInverse() const;
109
110
94 private: 111 private:
95 void DrawMask() const; 112 void DrawMask() const;
113 void DrawLine(const MaskPoint& start, const MaskPoint& end) const;
114
96 }; 115 };
97 } 116 }