comparison OrthancStone/Sources/Scene2D/TextureBaseSceneLayer.h @ 1554:6d14ed6163b1

flip x/y in Stone Web viewer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Aug 2020 16:10:00 +0200
parents 244ad1e4e76a
children 85e117739eca
comparison
equal deleted inserted replaced
1553:bf02a90ca9ca 1554:6d14ed6163b1
37 double originY_; 37 double originY_;
38 double pixelSpacingX_; 38 double pixelSpacingX_;
39 double pixelSpacingY_; 39 double pixelSpacingY_;
40 double angle_; 40 double angle_;
41 bool isLinearInterpolation_; 41 bool isLinearInterpolation_;
42 bool flipX_;
43 bool flipY_;
42 uint64_t revision_; 44 uint64_t revision_;
43 45
44 protected: 46 protected:
45 void SetTexture(Orthanc::ImageAccessor* texture); 47 void SetTexture(Orthanc::ImageAccessor* texture);
46 48
63 65
64 // In radians 66 // In radians
65 void SetAngle(double angle); 67 void SetAngle(double angle);
66 68
67 void SetLinearInterpolation(bool isLinearInterpolation); 69 void SetLinearInterpolation(bool isLinearInterpolation);
70
71 void SetFlipX(bool flip);
72
73 void SetFlipY(bool flip);
68 74
69 double GetOriginX() const 75 double GetOriginX() const
70 { 76 {
71 return originX_; 77 return originX_;
72 } 78 }
99 bool HasTexture() const 105 bool HasTexture() const
100 { 106 {
101 return (texture_.get() != NULL); 107 return (texture_.get() != NULL);
102 } 108 }
103 109
110 bool IsFlipX() const
111 {
112 return flipX_;
113 }
114
115 bool IsFlipY() const
116 {
117 return flipY_;
118 }
119
104 const Orthanc::ImageAccessor& GetTexture() const; 120 const Orthanc::ImageAccessor& GetTexture() const;
105 121
106 AffineTransform2D GetTransform() const; 122 AffineTransform2D GetTransform() const;
107 123
108 virtual bool GetBoundingBox(Extent2D& target) const; 124 virtual bool GetBoundingBox(Extent2D& target) const;