Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/GrayscaleStyleConfigurator.cpp @ 1061:eb28dfe432f7
fixed typo in assert. msg. + getters for custom windowing in grayscale layer configurator.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 15 Oct 2019 10:53:28 +0200 |
parents | 4d1f57773b5b |
children | ba9db2ad317c b5dec783ba08 |
comparison
equal
deleted
inserted
replaced
1034:839d2bff92ab | 1061:eb28dfe432f7 |
---|---|
39 SetWindowing(ImageWindowing_Custom); | 39 SetWindowing(ImageWindowing_Custom); |
40 customWindowCenter_ = windowCenter; | 40 customWindowCenter_ = windowCenter; |
41 customWindowWidth_ = windowWidth; | 41 customWindowWidth_ = windowWidth; |
42 } | 42 } |
43 | 43 |
44 void GrayscaleStyleConfigurator::GetCustomWindowing(float& windowCenter, float& windowWidth) const | |
45 { | |
46 windowCenter = customWindowCenter_; | |
47 windowWidth = customWindowWidth_; | |
48 } | |
44 | 49 |
45 void GrayscaleStyleConfigurator::SetInverted(bool inverted) | 50 void GrayscaleStyleConfigurator::SetInverted(bool inverted) |
46 { | 51 { |
47 inverted_ = inverted; | 52 inverted_ = inverted; |
48 revision_++; | 53 revision_++; |