Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.cpp @ 1112:d33ae2b0db9d
less logs + allow changing the size of the RadiographyLayer (to replace a low res image by a high res image)
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 04 Nov 2019 12:46:53 +0100 |
parents | be9c1530d40a |
children | 383aa2a7d426 35e798b16b65 |
comparison
equal
deleted
inserted
replaced
1094:dead648f8ff1 | 1112:d33ae2b0db9d |
---|---|
223 } | 223 } |
224 | 224 |
225 void RadiographyLayer::SetSize(unsigned int width, | 225 void RadiographyLayer::SetSize(unsigned int width, |
226 unsigned int height) | 226 unsigned int height) |
227 { | 227 { |
228 if (hasSize_ && | |
229 (width != width_ || | |
230 height != height_)) | |
231 { | |
232 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageSize); | |
233 } | |
234 | |
235 hasSize_ = true; | 228 hasSize_ = true; |
236 width_ = width; | 229 width_ = width; |
237 height_ = height; | 230 height_ = height; |
238 | 231 |
239 UpdateTransform(); | 232 UpdateTransform(); |