Mercurial > hg > orthanc-stone
diff Framework/Scene2D/LookupTableStyleConfigurator.cpp @ 1179:177e7d431cd1 broker
log scale in textures, remove redundant code for LUTs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Nov 2019 15:24:20 +0100 |
parents | 287ec78f63b4 |
children | 0ca50d275b9a |
line wrap: on
line diff
--- a/Framework/Scene2D/LookupTableStyleConfigurator.cpp Wed Nov 20 14:12:11 2019 +0100 +++ b/Framework/Scene2D/LookupTableStyleConfigurator.cpp Wed Nov 20 15:24:20 2019 +0100 @@ -39,7 +39,8 @@ LookupTableStyleConfigurator::LookupTableStyleConfigurator() : revision_(0), hasLut_(false), - hasRange_(false) + hasRange_(false), + applyLog_(false) { } @@ -82,6 +83,12 @@ } } + void LookupTableStyleConfigurator::SetApplyLog(bool apply) + { + applyLog_ = apply; + revision_++; + } + TextureBaseSceneLayer* LookupTableStyleConfigurator::CreateTextureFromImage(const Orthanc::ImageAccessor& image) const { throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); @@ -104,5 +111,7 @@ { l.FitRange(); } + + l.SetApplyLog(applyLog_); } }