Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomInstanceParameters.h @ 1637:d569effcd433
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:25:20 +0100 |
parents | d1e0b08b809d |
children | 5cc589bfb385 |
comparison
equal
deleted
inserted
replaced
1636:d1e0b08b809d | 1637:d569effcd433 |
---|---|
51 double sliceThickness_; | 51 double sliceThickness_; |
52 double pixelSpacingX_; | 52 double pixelSpacingX_; |
53 double pixelSpacingY_; | 53 double pixelSpacingY_; |
54 CoordinateSystem3D geometry_; | 54 CoordinateSystem3D geometry_; |
55 Vector frameOffsets_; | 55 Vector frameOffsets_; |
56 bool isColor_; // TODO REMOVE | |
57 bool hasRescale_; | 56 bool hasRescale_; |
58 double rescaleIntercept_; | 57 double rescaleIntercept_; |
59 double rescaleSlope_; | 58 double rescaleSlope_; |
60 bool hasDefaultWindowing_; | 59 bool hasDefaultWindowing_; |
61 float defaultWindowingCenter_; | 60 float defaultWindowingCenter_; |
62 float defaultWindowingWidth_; | 61 float defaultWindowingWidth_; |
63 Orthanc::PixelFormat expectedPixelFormat_; // TODO REMOVE | |
64 bool hasIndexInSeries_; | 62 bool hasIndexInSeries_; |
65 unsigned int indexInSeries_; | 63 unsigned int indexInSeries_; |
66 std::string doseUnits_; | 64 std::string doseUnits_; |
67 double doseGridScaling_; | 65 double doseGridScaling_; |
68 | 66 |
164 CoordinateSystem3D GetFrameGeometry(unsigned int frame) const; | 162 CoordinateSystem3D GetFrameGeometry(unsigned int frame) const; |
165 | 163 |
166 bool IsPlaneWithinSlice(unsigned int frame, | 164 bool IsPlaneWithinSlice(unsigned int frame, |
167 const CoordinateSystem3D& plane) const; | 165 const CoordinateSystem3D& plane) const; |
168 | 166 |
169 bool IsColor() const | 167 bool IsColor() const; |
170 { | |
171 return data_.isColor_; | |
172 } | |
173 | 168 |
174 bool HasRescale() const | 169 bool HasRescale() const |
175 { | 170 { |
176 return data_.hasRescale_; | 171 return data_.hasRescale_; |
177 } | 172 } |
187 | 182 |
188 float GetDefaultWindowingCenter() const; | 183 float GetDefaultWindowingCenter() const; |
189 | 184 |
190 float GetDefaultWindowingWidth() const; | 185 float GetDefaultWindowingWidth() const; |
191 | 186 |
192 Orthanc::PixelFormat GetExpectedPixelFormat() const | 187 Orthanc::PixelFormat GetExpectedPixelFormat() const; |
193 { | |
194 return data_.expectedPixelFormat_; | |
195 } | |
196 | 188 |
197 Orthanc::ImageAccessor* ConvertToFloat(const Orthanc::ImageAccessor& pixelData) const; | 189 Orthanc::ImageAccessor* ConvertToFloat(const Orthanc::ImageAccessor& pixelData) const; |
198 | 190 |
199 TextureBaseSceneLayer* CreateTexture(const Orthanc::ImageAccessor& pixelData) const; | 191 TextureBaseSceneLayer* CreateTexture(const Orthanc::ImageAccessor& pixelData) const; |
200 | 192 |