Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyAlphaLayer.cpp @ 1238:e257b91fae2c
RadiographyWidget: clear selection when changing scene
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 12 Dec 2019 14:30:33 +0100 |
parents | 355dba5352d7 |
children | 1c7ae79c426d |
comparison
equal
deleted
inserted
replaced
1237:c14fde4a595c | 1238:e257b91fae2c |
---|---|
89 buffer.GetHeight())) | 89 buffer.GetHeight())) |
90 { | 90 { |
91 return; // layer is outside the buffer | 91 return; // layer is outside the buffer |
92 } | 92 } |
93 | 93 |
94 printf("rendering alpha: %d \n", y1); | |
95 t.Apply(tmp, cropped, interpolation, true /* clear */); | 94 t.Apply(tmp, cropped, interpolation, true /* clear */); |
96 | 95 |
97 float value = foreground_; | 96 float value = foreground_; |
98 | 97 |
99 if (!applyWindowing) // if applying the windowing, it means we are ie rendering the image for a realtime visualization -> the foreground_ value is the value we want to see on the screen -> don't change it | 98 if (!applyWindowing) // if applying the windowing, it means we are ie rendering the image for a realtime visualization -> the foreground_ value is the value we want to see on the screen -> don't change it |