25 #ifndef LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED 26 #define LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED 52 typedef Eigen::Matrix<double, 2, 2, Eigen::DontAlign>
Matrix;
54 double const getIxx()
const {
return _matrix(0, 0); }
55 void setIxx(
double ixx) { _matrix(0, 0) = ixx; }
57 double const getIyy()
const {
return _matrix(1, 1); }
58 void setIyy(
double iyy) { _matrix(1, 1) = iyy; }
60 double const getIxy()
const {
return _matrix(1, 0); }
61 void setIxy(
double ixy) { _matrix(0, 1) = _matrix(1, 0) = ixy; }
87 _matrix = other._matrix;
98 explicit Quadrupole(
double ixx = 1.0,
double iyy = 1.0,
double ixy = 0.0,
bool normalize =
false);
104 explicit Quadrupole(Matrix
const& matrix,
bool normalize =
true);
124 virtual void _assignToAxes(
double& a,
double& b,
double& theta)
const;
134 static Registrar<Quadrupole> registrar;
143 #endif // !LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED virtual std::string getName() const
Return a string that identifies this parametrization.
An ellipse core with quadrupole moments as parameters.
Matrix const & getMatrix() const
Return a 2x2 symmetric matrix of the parameters.
Quadrupole(double ixx=1.0, double iyy=1.0, double ixy=0.0, bool normalize=false)
Construct from parameter values.
virtual void readParameters(double const *iter)
Quadrupole & operator=(Quadrupole const &other)
Standard assignment.
BaseCore & operator=(BaseCore const &other)
Set the parameters of this ellipse core from another.
virtual void writeParameters(double *iter) const
Quadrupole(Quadrupole const &other)
Copy constructor.
virtual std::shared_ptr< BaseCore > _clone() const
Quadrupole & operator=(BaseCore const &other)
Converting assignment.
virtual void normalize()
Put the parameters into a "standard form", and throw InvalidParameterError if they cannot be normaliz...
Quadrupole(BaseCore::Convolution const &convolution)
Converting copy constructor.
double const getIxy() const
double const getIyy() const
A base class for image defects.
Eigen::Vector3d ParameterVector
Parameter vector type.
Eigen::Matrix< double, 2, 2, Eigen::DontAlign > Matrix
Matrix type for the matrix representation of Quadrupole parameters.
T static_pointer_cast(T... args)
virtual Jacobian _dAssignFromQuadrupole(double ixx, double iyy, double ixy)
virtual void _assignFromAxes(double a, double b, double theta)
Eigen::Matrix3d Jacobian
Parameter Jacobian matrix type.
Quadrupole(BaseCore::Transformer const &transformer)
Converting copy constructor.
virtual Jacobian _dAssignFromAxes(double a, double b, double theta)
A base class for parametrizations of the "core" of an ellipse - the ellipticity and size...
virtual void _assignFromQuadrupole(double ixx, double iyy, double ixy)
virtual Jacobian _dAssignToQuadrupole(double &ixx, double &iyy, double &ixy) const
Quadrupole(BaseCore const &other)
Converting copy constructor.
void apply(BaseCore &result) const
double getDeterminant() const
Return the determinant of the matrix representation.
std::shared_ptr< Quadrupole > clone() const
Deep copy the ellipse core.
virtual void _assignToAxes(double &a, double &b, double &theta) const
A temporary-only expression object for ellipse core convolution.
virtual Jacobian _dAssignToAxes(double &a, double &b, double &theta) const
double const getIxx() const
virtual void _assignToQuadrupole(double &ixx, double &iyy, double &ixy) const