comparison Framework/Scene2D/FloatTextureSceneLayer.h @ 860:238693c3bc51 am-dev

merge default -> am-dev
author Alain Mazy <alain@mazy.be>
date Mon, 24 Jun 2019 14:35:00 +0200
parents b8dfd966b5f4
children ba9db2ad317c 2d8ab34c8c91
comparison
equal deleted inserted replaced
856:a6e17a5a39e7 860:238693c3bc51
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 "Float32" 37 // The pixel format must be convertible to "Float32"
37 FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture); 38 FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture);
38 39
39 void SetWindowing(ImageWindowing windowing); 40 void SetWindowing(ImageWindowing windowing);
40 41
41 void SetCustomWindowing(float customCenter, 42 void SetCustomWindowing(float customCenter,
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