Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/FloatTextureSceneLayer.h @ 773:b8dfd966b5f4
FloatTextureSceneLayer::SetInverted()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 May 2019 13:44:34 +0200 |
parents | 4ba8892870a2 |
children | ba9db2ad317c 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
771:ed783cbc92d7 | 773:b8dfd966b5f4 |
---|---|
29 { | 29 { |
30 private: | 30 private: |
31 ImageWindowing windowing_; | 31 ImageWindowing windowing_; |
32 float customCenter_; | 32 float customCenter_; |
33 float customWidth_; | 33 float customWidth_; |
34 bool inverted_; | |
34 | 35 |
35 public: | 36 public: |
36 // The pixel format must be convertible to "Float32" | 37 // The pixel format must be convertible to "Float32" |
37 FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture); | 38 FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture); |
38 | 39 |
47 ImageWindowing GetWindowingType() const | 48 ImageWindowing GetWindowingType() const |
48 { | 49 { |
49 return windowing_; | 50 return windowing_; |
50 } | 51 } |
51 | 52 |
53 // To achieve MONOCHROME1 photometric interpretation | |
54 void SetInverted(bool inverted); | |
55 | |
56 bool IsInverted() const | |
57 { | |
58 return inverted_; | |
59 } | |
60 | |
52 void FitRange(); | 61 void FitRange(); |
53 | 62 |
54 virtual ISceneLayer* Clone() const; | 63 virtual ISceneLayer* Clone() const; |
55 | 64 |
56 virtual Type GetType() const | 65 virtual Type GetType() const |