Mercurial > hg > orthanc-stone
diff Framework/Scene2D/LookupTableTextureSceneLayer.h @ 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/LookupTableTextureSceneLayer.h Wed Nov 20 14:12:11 2019 +0100 +++ b/Framework/Scene2D/LookupTableTextureSceneLayer.h Wed Nov 20 15:24:20 2019 +0100 @@ -32,6 +32,7 @@ float minValue_; float maxValue_; std::vector<uint8_t> lut_; + bool applyLog_; void SetLookupTableRgb(const std::vector<uint8_t>& lut); @@ -66,11 +67,22 @@ return lut_; } + void SetApplyLog(bool apply); + + bool IsApplyLog() const + { + return applyLog_; + } + virtual ISceneLayer* Clone() const; virtual Type GetType() const { return Type_LookupTableTexture; } + + // Render the texture to a color image of format BGRA32 (Cairo + // surfaces) or RGBA32 (OpenGL) + void Render(Orthanc::ImageAccessor& target) const; }; }