Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
36 | 36 |
37 void SetLookupTableRgb(const std::vector<uint8_t>& lut); | 37 void SetLookupTableRgb(const std::vector<uint8_t>& lut); |
38 | 38 |
39 public: | 39 public: |
40 // The pixel format must be convertible to Float32 | 40 // The pixel format must be convertible to Float32 |
41 LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture); | 41 explicit LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture); |
42 | 42 |
43 void SetLookupTableGrayscale(); | 43 void SetLookupTableGrayscale(); |
44 | 44 |
45 // The vector must contain either 3 * 256 values (RGB), or 4 * 256 | 45 // The vector must contain either 3 * 256 values (RGB), or 4 * 256 |
46 // (RGBA). In the RGB case, an alpha channel will be automatically added. | 46 // (RGBA). In the RGB case, an alpha channel will be automatically added. |
72 bool IsApplyLog() const | 72 bool IsApplyLog() const |
73 { | 73 { |
74 return applyLog_; | 74 return applyLog_; |
75 } | 75 } |
76 | 76 |
77 virtual ISceneLayer* Clone() const; | 77 virtual ISceneLayer* Clone() const ORTHANC_OVERRIDE; |
78 | 78 |
79 virtual Type GetType() const | 79 virtual Type GetType() const ORTHANC_OVERRIDE |
80 { | 80 { |
81 return Type_LookupTableTexture; | 81 return Type_LookupTableTexture; |
82 } | 82 } |
83 | 83 |
84 // Render the texture to a color image of format BGRA32 (Cairo | 84 // Render the texture to a color image of format BGRA32 (Cairo |