25 #ifndef LSST_AFW_GEOM_ELLIPSES_Ellipse_h_INCLUDED 26 #define LSST_AFW_GEOM_ELLIPSES_Ellipse_h_INCLUDED 89 void grow(
double buffer) { _core->grow(buffer); }
92 void scale(
double factor) { _core->scale(factor); }
165 : _core(core.
clone()), _center(center) {}
169 : _core(core->
clone()), _center(center) {}
172 Ellipse(Convolution
const& other);
187 #endif // !LSST_AFW_GEOM_ELLIPSES_Ellipse_h_INCLUDED lsst::geom::Point2D const & getCenter() const
Return the center point.
A floating-point coordinate rectangle geometry.
bool operator!=(Ellipse const &other) const
Compare two ellipses for inequality.
void scale(double factor)
Scale the size of the ellipse by the given factor.
BaseCore & getCore()
Return the ellipse core.
BaseCore const & getCore() const
Return the ellipse core.
Eigen::Matrix< double, 5, 1 > ParameterVector
Proxy return type for Ellipse::convolve().
Ellipse & operator=(Ellipse const &other)
Set the parameters of this ellipse from another.
void setCenter(lsst::geom::Point2D const ¢er)
Set the center point.
std::shared_ptr< BaseCore > getCorePtr()
Return the ellipse core.
void normalize()
Put the parameters in a standard form.
void readParameters(double const *iter)
A base class for image defects.
void shift(lsst::geom::Extent2D const &offset)
Move the ellipse center by the given offset.
void setCore(BaseCore const &core)
Set the ellipse core; the type of the core is not changed.
An ellipse defined by an arbitrary BaseCore and a center point.
lsst::geom::Box2D computeBBox() const
Return the bounding box of the ellipse.
lsst::geom::Point2D & getCenter()
Return the center point.
Ellipse(std::shared_ptr< BaseCore const > const &core, lsst::geom::Point2D const ¢er=lsst::geom::Point2D())
void grow(double buffer)
Increase the major and minor radii of the ellipse by the given buffer.
Ellipse(Ellipse const &other)
GridTransform const getGridTransform() const
Return the transform that maps the ellipse to the unit circle.
Ellipse(BaseCore const &core, lsst::geom::Point2D const ¢er=lsst::geom::Point2D())
virtual ~Ellipse()=default
A base class for parametrizations of the "core" of an ellipse - the ellipticity and size...
void setParameterVector(ParameterVector const &vector)
Set the ellipse parameters from a vector.
std::shared_ptr< BaseCore const > getCorePtr() const
Return the ellipse core.
ItemVariant const * other
bool operator==(Ellipse const &other) const
Compare two ellipses for equality.
void writeParameters(double *iter) const
Transformer transform(lsst::geom::AffineTransform const &transform)
ParameterVector const getParameterVector() const
Return the ellipse parameters as a vector.
Convolution convolve(Ellipse const &other)