comparison OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 2076:990f396484b1

fix rendering of RT-DOSE with negative GridFrameOffsetVector
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Jul 2023 15:58:16 +0200
parents f4050908c6bc
children 07964689cb0b
comparison
equal deleted inserted replaced
2075:d84bdcbd8bf1 2076:990f396484b1
46 std::string sopInstanceUid_; 46 std::string sopInstanceUid_;
47 SopClassUid sopClassUid_; 47 SopClassUid sopClassUid_;
48 unsigned int numberOfFrames_; 48 unsigned int numberOfFrames_;
49 unsigned int width_; 49 unsigned int width_;
50 unsigned int height_; 50 unsigned int height_;
51 bool hasSliceThickness_;
51 double sliceThickness_; 52 double sliceThickness_;
52 double pixelSpacingX_; 53 double pixelSpacingX_;
53 double pixelSpacingY_; 54 double pixelSpacingY_;
54 CoordinateSystem3D geometry_; 55 CoordinateSystem3D geometry_;
55 Vector frameOffsets_; 56 Vector frameOffsets_;
141 unsigned int GetHeight() const 142 unsigned int GetHeight() const
142 { 143 {
143 return data_.height_; 144 return data_.height_;
144 } 145 }
145 146
146 double GetSliceThickness() const 147 bool HasSliceThickness() const
147 { 148 {
148 return data_.sliceThickness_; 149 return data_.hasSliceThickness_;
149 } 150 }
151
152 double GetSliceThickness() const;
150 153
151 double GetPixelSpacingX() const 154 double GetPixelSpacingX() const
152 { 155 {
153 return data_.pixelSpacingX_; 156 return data_.pixelSpacingX_;
154 } 157 }
232 bool useDouble) const; 235 bool useDouble) const;
233 236
234 double ApplyRescale(double value) const; 237 double ApplyRescale(double value) const;
235 238
236 // Required for RT-DOSE 239 // Required for RT-DOSE
237 bool ComputeRegularSpacing(double& target) const; 240 bool ComputeFrameOffsetsSpacing(double& target) const;
238 241
239 const std::string& GetFrameOfReferenceUid() const 242 const std::string& GetFrameOfReferenceUid() const
240 { 243 {
241 return data_.frameOfReferenceUid_; 244 return data_.frameOfReferenceUid_;
242 } 245 }
258 261
259 int32_t GetInstanceNumber() const 262 int32_t GetInstanceNumber() const
260 { 263 {
261 return data_.instanceNumber_; 264 return data_.instanceNumber_;
262 } 265 }
266
267 CoordinateSystem3D GetMultiFrameGeometry() const;
268
269 bool IsReversedFrameOffsets() const;
263 }; 270 };
264 } 271 }