diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-11-07 22:09:29 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-11-07 22:09:29 (GMT) |
commit | 31e0d69941f31e61e5c242cef79e0bd916fe4ace (patch) | |
tree | 1321c597d5f796d02b6226207ecc2d72ac5b4610 /tksao/frame/fitsmask.h | |
parent | d81a364b0f8e7e847dae9274ee89fe6cdcffaa0e (diff) | |
download | blt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.zip blt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.tar.gz blt-31e0d69941f31e61e5c242cef79e0bd916fe4ace.tar.bz2 |
add mask range
Diffstat (limited to 'tksao/frame/fitsmask.h')
-rw-r--r-- | tksao/frame/fitsmask.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tksao/frame/fitsmask.h b/tksao/frame/fitsmask.h index 88a9b2a..596f1bb 100644 --- a/tksao/frame/fitsmask.h +++ b/tksao/frame/fitsmask.h @@ -11,6 +11,9 @@ class Base; class Context; class FitsMask { + public: + enum MaskType {ZERO, NONZERO, RANGE}; + private: Context* context_; Matrix mm_; @@ -19,21 +22,25 @@ class FitsMask { XColor* color_; char trueColor_[4]; - int mark_; + MaskType mark_; + double low_; + double high_; protected: FitsMask* previous_; FitsMask* next_; public: - FitsMask(Base*, char*, int); + FitsMask(Base*, char*, MaskType, double, double); virtual ~FitsMask(); Context* context() {return context_;} Matrix& mm() {return mm_;} XColor* color() {return color_;} char* trueColor() {return trueColor_;} - int mark() {return mark_;} + MaskType mark() {return mark_;} + double low() {return low_;} + double high() {return high_;} FitsMask* previous() {return previous_;} void setPrevious(FitsMask* m) {previous_ = m;} |