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