Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayerCropTracker.cpp @ 430:b85f635f1eb5 am-vsol-upgrade
added serialization for RadiographyScene
author | am@osimis.io |
---|---|
date | Thu, 29 Nov 2018 15:11:19 +0100 |
parents | c0589c3173fd |
children | 04711a2e12cd |
comparison
equal
deleted
inserted
replaced
429:c7fb700a7d12 | 430:b85f635f1eb5 |
---|---|
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().GetCrop(targetCropX_, targetCropY_, | 61 tracker.accessor_.GetLayer().GetGeometry().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().GetCrop(cropX_, cropY_, cropWidth_, cropHeight_); | 80 accessor_.GetLayer().GetGeometry().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, |