comparison Framework/Radiography/RadiographyScene.h @ 1200:54cbffabdc45 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 29 Nov 2019 11:03:41 +0100
parents bdc6837d5917 922d2e61aa5d
children b519c1c878f1
comparison
equal deleted inserted replaced
1198:4cc997207d8a 1200:54cbffabdc45
160 160
161 161
162 protected: 162 protected:
163 typedef std::map<size_t, RadiographyLayer*> Layers; 163 typedef std::map<size_t, RadiographyLayer*> Layers;
164 164
165 size_t countLayers_; 165 size_t nextLayerIndex_;
166 bool hasWindowing_; 166 bool hasWindowing_;
167 float windowingCenter_; 167 float windowingCenter_;
168 float windowingWidth_; 168 float windowingWidth_;
169 Layers layers_; 169 Layers layers_;
170 170
197 float width); 197 float width);
198 198
199 RadiographyPhotometricDisplayMode GetPreferredPhotomotricDisplayMode() const; 199 RadiographyPhotometricDisplayMode GetPreferredPhotomotricDisplayMode() const;
200 200
201 RadiographyLayer& LoadText(const std::string& utf8, 201 RadiographyLayer& LoadText(const std::string& utf8,
202 size_t fontSize, 202 unsigned int fontSize,
203 uint8_t foreground, 203 uint8_t foreground,
204 RadiographyLayer::Geometry* geometry); 204 RadiographyLayer::Geometry* geometry);
205 205
206 RadiographyLayer& LoadTestBlock(unsigned int width, 206 RadiographyLayer& LoadTestBlock(unsigned int width,
207 unsigned int height, 207 unsigned int height,
286 286
287 Extent2D GetSceneExtent() const; 287 Extent2D GetSceneExtent() const;
288 288
289 virtual void Render(Orthanc::ImageAccessor& buffer, 289 virtual void Render(Orthanc::ImageAccessor& buffer,
290 const AffineTransform2D& viewTransform, 290 const AffineTransform2D& viewTransform,
291 ImageInterpolation interpolation) const; 291 ImageInterpolation interpolation,
292 bool applyWindowing) const;
292 293
293 bool LookupLayer(size_t& index /* out */, 294 bool LookupLayer(size_t& index /* out */,
294 double x, 295 double x,
295 double y) const; 296 double y) const;
296 297
338 bool invert, 339 bool invert,
339 ImageInterpolation interpolation); 340 ImageInterpolation interpolation);
340 341
341 Orthanc::Image* ExportToImage(double pixelSpacingX, 342 Orthanc::Image* ExportToImage(double pixelSpacingX,
342 double pixelSpacingY, 343 double pixelSpacingY,
343 ImageInterpolation interpolation) 344 ImageInterpolation interpolation,
344 { 345 bool applyWindowing)
345 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0); 346 {
347 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, applyWindowing);
346 } 348 }
347 349
348 Orthanc::Image* ExportToImage(double pixelSpacingX, 350 Orthanc::Image* ExportToImage(double pixelSpacingX,
349 double pixelSpacingY, 351 double pixelSpacingY,
350 ImageInterpolation interpolation, 352 ImageInterpolation interpolation,
351 bool invert, 353 bool invert,
352 int64_t maxValue /* for inversion */); 354 int64_t maxValue /* for inversion */,
355 bool applyWindowing); // i.e.: when
353 }; 356 };
354 } 357 }