comparison Framework/Scene2D/GrayscaleStyleConfigurator.h @ 914:4d1f57773b5b

Added image inversion support in GrayscaleStyleConfigurator + OpenGLFloatTextureProgram
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 19 Jul 2019 10:54:03 +0200
parents 2b4b6b86520a
children eb28dfe432f7
comparison
equal deleted inserted replaced
913:2b4b6b86520a 914:4d1f57773b5b
36 bool linearInterpolation_; 36 bool linearInterpolation_;
37 bool hasWindowing_; 37 bool hasWindowing_;
38 ImageWindowing windowing_; 38 ImageWindowing windowing_;
39 float customWindowWidth_; 39 float customWindowWidth_;
40 float customWindowCenter_; 40 float customWindowCenter_;
41 // TODO - Add custom windowing 41 bool inverted_;
42 42
43 public: 43 public:
44 GrayscaleStyleConfigurator() : 44 GrayscaleStyleConfigurator() :
45 revision_(0), 45 revision_(0),
46 linearInterpolation_(false), 46 linearInterpolation_(false),
47 hasWindowing_(false), 47 hasWindowing_(false),
48 customWindowWidth_(0), 48 customWindowWidth_(0),
49 customWindowCenter_(0) 49 customWindowCenter_(0),
50 inverted_(false)
50 { 51 {
51 } 52 }
52 53
53 void SetWindowing(ImageWindowing windowing); 54 void SetWindowing(ImageWindowing windowing);
54 55
55 void SetCustomWindowing(float windowWidth, float windowCenter); 56 void SetCustomWindowing(float windowWidth, float windowCenter);
57
58 void SetInverted(bool inverted);
56 59
57 void SetLinearInterpolation(bool enabled); 60 void SetLinearInterpolation(bool enabled);
58 61
59 bool IsLinearInterpolation() const 62 bool IsLinearInterpolation() const
60 { 63 {