25 #if !defined(LSST_AFW_IMAGE_DEFECT_H) 26 #define LSST_AFW_IMAGE_DEFECT_H
void shift(Extent2I const &offset)
Shift the position of the box by the given offset.
Encapsulate information about a bad portion of a detector.
DefectBase & operator=(DefectBase const &)=default
DefectBase(const geom::Box2I &bbox)
An integer coordinate rectangle.
geom::Box2I const & getBBox() const
Return the Defect's bounding box.
virtual ~DefectBase()=default
void shift(geom::Extent2I const &d)
A base class for image defects.
int getX0() const
Return the Defect's left column.
void clip(geom::Box2I const &bbox)
int getX1() const
Return the Defect's right column.
int getY0() const
Return the Defect's bottom row.
void clip(Box2I const &other)
Shrink this to ensure that other.contains(*this).
int getY1() const
Return the Defect's top row.
void shift(int dx, int dy)
Offset a Defect by (dx, dy)