Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.h @ 1336:379c00958553 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 31 Mar 2020 15:51:02 +0200 |
parents | 7ec8fea061b9 a72c2c9af49a |
children | 6ea4062c1a0d |
comparison
equal
deleted
inserted
replaced
1334:04055b6b9e2c | 1336:379c00958553 |
---|---|
279 return NULL; | 279 return NULL; |
280 } | 280 } |
281 | 281 |
282 void GetLayersIndexes(std::vector<size_t>& output) const; | 282 void GetLayersIndexes(std::vector<size_t>& output) const; |
283 | 283 |
284 Extent2D GetSceneExtent() const; | 284 virtual Extent2D GetSceneExtent(bool minimal) const; |
285 | 285 |
286 virtual void Render(Orthanc::ImageAccessor& buffer, | 286 virtual void Render(Orthanc::ImageAccessor& buffer, |
287 const AffineTransform2D& viewTransform, | 287 const AffineTransform2D& viewTransform, |
288 ImageInterpolation interpolation, | 288 ImageInterpolation interpolation, |
289 bool applyWindowing) const; | 289 bool applyWindowing) const; |
305 const Orthanc::DicomMap& dicom, | 305 const Orthanc::DicomMap& dicom, |
306 const std::string& parentOrthancId, | 306 const std::string& parentOrthancId, |
307 double pixelSpacingX, | 307 double pixelSpacingX, |
308 double pixelSpacingY, | 308 double pixelSpacingY, |
309 bool invert, | 309 bool invert, |
310 bool autoCrop, | |
310 ImageInterpolation interpolation, | 311 ImageInterpolation interpolation, |
311 bool usePam); | 312 bool usePam); |
312 | 313 |
313 void ExportDicom(Deprecated::OrthancApiClient& orthanc, | 314 void ExportDicom(Deprecated::OrthancApiClient& orthanc, |
314 const Json::Value& dicomTags, | 315 const Json::Value& dicomTags, |
315 const std::string& parentOrthancId, | 316 const std::string& parentOrthancId, |
316 double pixelSpacingX, | 317 double pixelSpacingX, |
317 double pixelSpacingY, | 318 double pixelSpacingY, |
318 bool invert, | 319 bool invert, |
320 bool autoCrop, | |
319 ImageInterpolation interpolation, | 321 ImageInterpolation interpolation, |
320 bool usePam); | 322 bool usePam); |
321 | 323 |
322 void ExportToCreateDicomRequest(Json::Value& createDicomRequestContent, | 324 void ExportToCreateDicomRequest(Json::Value& createDicomRequestContent, |
323 const Json::Value& dicomTags, | 325 const Json::Value& dicomTags, |
324 const std::string& parentOrthancId, | 326 const std::string& parentOrthancId, |
325 double pixelSpacingX, | 327 double pixelSpacingX, |
326 double pixelSpacingY, | 328 double pixelSpacingY, |
327 bool invert, | 329 bool invert, |
330 bool autoCrop, | |
328 ImageInterpolation interpolation, | 331 ImageInterpolation interpolation, |
329 bool usePam); | 332 bool usePam); |
330 | 333 |
331 Orthanc::Image* ExportToCreateDicomRequestAndImage(Json::Value& createDicomRequestContent, | 334 Orthanc::Image* ExportToCreateDicomRequestAndImage(Json::Value& createDicomRequestContent, |
332 const Json::Value& dicomTags, | 335 const Json::Value& dicomTags, |
333 const std::string& parentOrthancId, | 336 const std::string& parentOrthancId, |
334 double pixelSpacingX, | 337 double pixelSpacingX, |
335 double pixelSpacingY, | 338 double pixelSpacingY, |
336 bool invert, | 339 bool invert, |
340 bool autoCrop, | |
337 ImageInterpolation interpolation); | 341 ImageInterpolation interpolation); |
338 | 342 |
339 Orthanc::Image* ExportToImage(double pixelSpacingX, | 343 Orthanc::Image* ExportToImage(double pixelSpacingX, |
340 double pixelSpacingY, | 344 double pixelSpacingY, |
341 ImageInterpolation interpolation, | 345 ImageInterpolation interpolation, |
346 bool autoCrop, | |
342 bool applyWindowing) | 347 bool applyWindowing) |
343 { | 348 { |
344 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, applyWindowing); | 349 return ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0, autoCrop, applyWindowing); |
345 } | 350 } |
346 | 351 |
347 Orthanc::Image* ExportToImage(double pixelSpacingX, | 352 Orthanc::Image* ExportToImage(double pixelSpacingX, |
348 double pixelSpacingY, | 353 double pixelSpacingY, |
349 ImageInterpolation interpolation, | 354 ImageInterpolation interpolation, |
350 bool invert, | 355 bool invert, |
351 int64_t maxValue /* for inversion */, | 356 int64_t maxValue /* for inversion */, |
357 bool autoCrop, | |
352 bool applyWindowing); | 358 bool applyWindowing); |
353 | 359 |
354 void ExtractLayerFromRenderedScene(Orthanc::ImageAccessor& layer, | 360 void ExtractLayerFromRenderedScene(Orthanc::ImageAccessor& layer, |
355 const Orthanc::ImageAccessor& renderedScene, | 361 const Orthanc::ImageAccessor& renderedScene, |
356 size_t layerIndex, | 362 size_t layerIndex, |
363 bool isCropped, | |
357 ImageInterpolation interpolation); | 364 ImageInterpolation interpolation); |
358 }; | 365 }; |
359 } | 366 } |