comparison Framework/Scene2D/GrayscaleStyleConfigurator.h @ 1209:b5dec783ba08

Fixed the style configurator to only set inversion on the image if it has been explicitely asked by the user + Fixed AddCircle in the measuring toolbox + dummy change (reindent)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 04 Dec 2019 15:46:14 +0100
parents eb28dfe432f7
children ab06dfdf3b75 2d8ab34c8c91
comparison
equal deleted inserted replaced
1206:c93a6218f0cd 1209:b5dec783ba08
32 class GrayscaleStyleConfigurator : public ILayerStyleConfigurator 32 class GrayscaleStyleConfigurator : public ILayerStyleConfigurator
33 { 33 {
34 private: 34 private:
35 uint64_t revision_; 35 uint64_t revision_;
36 bool linearInterpolation_; 36 bool linearInterpolation_;
37 bool hasWindowing_; 37 bool hasWindowingOverride_;
38 ImageWindowing windowing_; 38 ImageWindowing windowing_;
39 float customWindowWidth_; 39 float customWindowWidth_;
40 float customWindowCenter_; 40 float customWindowCenter_;
41 bool hasInversionOverride_;
41 bool inverted_; 42 bool inverted_;
42 43
43 public: 44 public:
44 GrayscaleStyleConfigurator() : 45 GrayscaleStyleConfigurator() :
45 revision_(0), 46 revision_(0),
46 linearInterpolation_(false), 47 linearInterpolation_(false),
47 hasWindowing_(false), 48 hasWindowingOverride_(false),
48 customWindowWidth_(0), 49 customWindowWidth_(0),
49 customWindowCenter_(0), 50 customWindowCenter_(0),
51 hasInversionOverride_(false),
50 inverted_(false) 52 inverted_(false)
51 { 53 {
52 } 54 }
53 55
54 void SetWindowing(ImageWindowing windowing); 56 void SetWindowing(ImageWindowing windowing);