Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayerCropTracker.cpp @ 436:04711a2e12cd am-vsol-upgrade
fix crop + export photometric interpretation correctly
author | am@osimis.io |
---|---|
date | Thu, 06 Dec 2018 11:53:37 +0100 |
parents | b85f635f1eb5 |
children | a750f11892ec |
comparison
equal
deleted
inserted
replaced
435:e641d3978856 | 436:04711a2e12cd |
---|---|
56 sourceCropX_(tracker.cropX_), | 56 sourceCropX_(tracker.cropX_), |
57 sourceCropY_(tracker.cropY_), | 57 sourceCropY_(tracker.cropY_), |
58 sourceCropWidth_(tracker.cropWidth_), | 58 sourceCropWidth_(tracker.cropWidth_), |
59 sourceCropHeight_(tracker.cropHeight_) | 59 sourceCropHeight_(tracker.cropHeight_) |
60 { | 60 { |
61 tracker.accessor_.GetLayer().GetGeometry().GetCrop(targetCropX_, targetCropY_, | 61 tracker.accessor_.GetLayer().GetCrop(targetCropX_, targetCropY_, |
62 targetCropWidth_, targetCropHeight_); | 62 targetCropWidth_, targetCropHeight_); |
63 } | 63 } |
64 }; | 64 }; |
65 | 65 |
66 | 66 |
75 accessor_(scene, layer), | 75 accessor_(scene, layer), |
76 corner_(corner) | 76 corner_(corner) |
77 { | 77 { |
78 if (accessor_.IsValid()) | 78 if (accessor_.IsValid()) |
79 { | 79 { |
80 accessor_.GetLayer().GetGeometry().GetCrop(cropX_, cropY_, cropWidth_, cropHeight_); | 80 accessor_.GetLayer().GetCrop(cropX_, cropY_, cropWidth_, cropHeight_); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 | 84 |
85 void RadiographyLayerCropTracker::Render(CairoContext& context, | 85 void RadiographyLayerCropTracker::Render(CairoContext& context, |