comparison Framework/Radiography/RadiographyScene.h @ 1196:a5f2a6b04a31

RadiographyScene: windowing is now only applied to the Dicom layer
author Alain Mazy <alain@mazy.be>
date Wed, 27 Nov 2019 17:51:33 +0100
parents f417a0ae282b
children 922d2e61aa5d
comparison
equal deleted inserted replaced
1191:c6a36ecd641d 1196:a5f2a6b04a31
196 float width); 196 float width);
197 197
198 RadiographyPhotometricDisplayMode GetPreferredPhotomotricDisplayMode() const; 198 RadiographyPhotometricDisplayMode GetPreferredPhotomotricDisplayMode() const;
199 199
200 RadiographyLayer& LoadText(const std::string& utf8, 200 RadiographyLayer& LoadText(const std::string& utf8,
201 size_t fontSize, 201 unsigned int fontSize,
202 uint8_t foreground, 202 uint8_t foreground,
203 RadiographyLayer::Geometry* geometry); 203 RadiographyLayer::Geometry* geometry);
204 204
205 RadiographyLayer& LoadTestBlock(unsigned int width, 205 RadiographyLayer& LoadTestBlock(unsigned int width,
206 unsigned int height, 206 unsigned int height,
285 285
286 Extent2D GetSceneExtent() const; 286 Extent2D GetSceneExtent() const;
287 287
288 virtual void Render(Orthanc::ImageAccessor& buffer, 288 virtual void Render(Orthanc::ImageAccessor& buffer,
289 const AffineTransform2D& viewTransform, 289 const AffineTransform2D& viewTransform,
290 ImageInterpolation interpolation) const; 290 ImageInterpolation interpolation,
291 bool applyWindowing) const;
291 292
292 bool LookupLayer(size_t& index /* out */, 293 bool LookupLayer(size_t& index /* out */,
293 double x, 294 double x,
294 double y) const; 295 double y) const;
295 296
337 bool invert, 338 bool invert,
338 ImageInterpolation interpolation); 339 ImageInterpolation interpolation);
339 340
340 Orthanc::Image* ExportToImage(double pixelSpacingX, 341 Orthanc::Image* ExportToImage(double pixelSpacingX,
341 double pixelSpacingY, 342 double pixelSpacingY,
342 ImageInterpolation interpolation) 343 ImageInterpolation interpolation,
343 { 344 bool applyWindowing)
344 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0); 345 {
346 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, applyWindowing);
345 } 347 }
346 348
347 Orthanc::Image* ExportToImage(double pixelSpacingX, 349 Orthanc::Image* ExportToImage(double pixelSpacingX,
348 double pixelSpacingY, 350 double pixelSpacingY,
349 ImageInterpolation interpolation, 351 ImageInterpolation interpolation,
350 bool invert, 352 bool invert,
351 int64_t maxValue /* for inversion */); 353 int64_t maxValue /* for inversion */,
354 bool applyWindowing); // i.e.: when
352 }; 355 };
353 } 356 }