22 #if !defined(LSST_DETECTION_FOOTPRINTCTRL_H) 23 #define LSST_DETECTION_FOOTPRINTCTRL_H 35 enum TBool { FALSE_ =
false, TRUE_ =
true, NONE_ };
43 : _circular(NONE_), _isotropic(NONE_), _left(NONE_), _right(NONE_), _up(NONE_), _down(NONE_) {}
45 : _circular(circular ? TRUE_ : FALSE_),
46 _isotropic(isotropic ? TRUE_ : FALSE_),
54 _left(left ? TRUE_ : FALSE_),
55 _right(right ? TRUE_ : FALSE_),
56 _up(up ? TRUE_ : FALSE_),
57 _down(down ? TRUE_ : FALSE_) {}
64 #define DEFINE_ACCESSORS(NAME, UNAME) \ 66 void grow##UNAME(bool val \ 68 _##NAME = val ? TRUE_ : FALSE_; \ 71 std::pair<bool, bool> is##UNAME() const { return makePairFromTBool(_##NAME); } 84 _isotropic = val ? TRUE_ : FALSE_;
89 #undef DEFINE_ACCESSORS 93 TBool _left, _right, _up, _down;
107 : _modifySource(modifySource), _imageVal(0.0), _maskVal(0), _varianceVal(0.0) {}
A base class for image defects.