lsst.afw  13.0-92-g8ecf155+1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
lsst::afw::geom::ellipses::Axes Class Reference

An ellipse core for the semimajor/semiminor axis and position angle parametrization (a,b,theta). More...

#include <Axes.h>

Inheritance diagram for lsst::afw::geom::ellipses::Axes:
lsst::afw::geom::ellipses::BaseCore

Public Types

enum  ParameterEnum { A = 0, B = 1, THETA = 2 }
 
- Public Types inherited from lsst::afw::geom::ellipses::BaseCore
typedef Eigen::Vector3d ParameterVector
 Parameter vector type. More...
 
typedef Eigen::Matrix3d Jacobian
 Parameter Jacobian matrix type. More...
 

Public Member Functions

double const getA () const
 
void setA (double a)
 
double const getB () const
 
void setB (double b)
 
double const getTheta () const
 
void setTheta (double theta)
 
std::shared_ptr< Axes > clone () const
 Deep copy the ellipse core. More...
 
virtual std::string getName () const
 Return a string that identifies this parametrization. More...
 
virtual void normalize ()
 Put the parameters into a "standard form", if possible, and throw InvalidParameterError if they cannot be normalized. More...
 
virtual void readParameters (double const *iter)
 
virtual void writeParameters (double *iter) const
 
Axes & operator= (Axes const &other)
 Standard assignment. More...
 
Axes & operator= (BaseCore const &other)
 Converting assignment. More...
 
 Axes (double a=1.0, double b=1.0, double theta=0.0, bool normalize=false)
 Construct from parameter values. More...
 
 Axes (BaseCore::ParameterVector const &vector, bool normalize=false)
 Construct from a parameter vector. More...
 
 Axes (Axes const &other)
 Copy constructor. More...
 
 Axes (BaseCore const &other)
 Converting copy constructor. More...
 
 Axes (BaseCore::Transformer const &transformer)
 Converting copy constructor. More...
 
 Axes (BaseCore::Convolution const &convolution)
 Converting copy constructor. More...
 
- Public Member Functions inherited from lsst::afw::geom::ellipses::BaseCore
std::shared_ptr< BaseCore > clone () const
 Deep-copy the Core. More...
 
void grow (double buffer)
 Increase the major and minor radii of the ellipse core by the given buffer. More...
 
void scale (double factor)
 Scale the size of the ellipse core by the given factor. More...
 
double getArea () const
 Return the area of the ellipse core. More...
 
double getDeterminantRadius () const
 Return the radius defined as the 4th root of the determinant of the quadrupole matrix. More...
 
double getTraceRadius () const
 Return the radius defined as the square root of one half the trace of the quadrupole matrix. More...
 
GridTransform const getGridTransform () const
 Return the transform that maps the ellipse to the unit circle. More...
 
Extent2D computeDimensions () const
 Return the size of the bounding box for the ellipse core. More...
 
ParameterVector const getParameterVector () const
 Return the core parameters as a vector. More...
 
void setParameterVector (ParameterVector const &vector)
 Set the core parameters from a vector. More...
 
bool operator== (BaseCore const &other) const
 Compare two ellipse cores for equality. More...
 
bool operator!= (BaseCore const &other) const
 Compare two ellipse cores for inequality. More...
 
BaseCore & operator= (BaseCore const &other)
 Set the parameters of this ellipse core from another. More...
 
Jacobian dAssign (BaseCore const &other)
 Assign other to this and return the derivative of the conversion, d(this)/d(other). More...
 
template<typename Output >
Converter< Output > as () const
 Convert this to the core type specified as a template parameter. More...
 
virtual ~BaseCore ()
 
Transformer transform (LinearTransform const &transform)
 
Transformer const transform (LinearTransform const &transform) const
 
Convolution convolve (BaseCore const &other)
 
Convolution const convolve (BaseCore const &other) const
 

Protected Member Functions

virtual std::shared_ptr< BaseCore > _clone () const
 
virtual void _assignToQuadrupole (double &ixx, double &iyy, double &ixy) const
 
virtual void _assignFromQuadrupole (double ixx, double iyy, double ixy)
 
virtual void _assignToAxes (double &a, double &b, double &theta) const
 
virtual void _assignFromAxes (double a, double b, double theta)
 
virtual Jacobian _dAssignToQuadrupole (double &ixx, double &iyy, double &ixy) const
 
virtual Jacobian _dAssignFromQuadrupole (double ixx, double iyy, double ixy)
 
virtual Jacobian _dAssignToAxes (double &a, double &b, double &theta) const
 
virtual Jacobian _dAssignFromAxes (double a, double b, double theta)
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst::afw::geom::ellipses::BaseCore
static std::shared_ptr< BaseCore > make (std::string const &name)
 
static std::shared_ptr< BaseCore > make (std::string const &name, ParameterVector const &parameters)
 
static std::shared_ptr< BaseCore > make (std::string const &name, double v1, double v2, double v3)
 
static std::shared_ptr< BaseCore > make (std::string const &name, BaseCore const &other)
 
static std::shared_ptr< BaseCore > make (std::string const &name, Transformer const &other)
 
static std::shared_ptr< BaseCore > make (std::string const &name, Convolution const &other)
 
- Static Protected Member Functions inherited from lsst::afw::geom::ellipses::BaseCore
static void registerSubclass (std::shared_ptr< BaseCore > const &example)
 
static void _assignQuadrupoleToAxes (double ixx, double iyy, double ixy, double &a, double &b, double &theta)
 
static Jacobian _dAssignQuadrupoleToAxes (double ixx, double iyy, double ixy, double &a, double &b, double &theta)
 
static void _assignAxesToQuadrupole (double a, double b, double theta, double &ixx, double &iyy, double &ixy)
 
static Jacobian _dAssignAxesToQuadrupole (double a, double b, double theta, double &ixx, double &iyy, double &ixy)
 

Detailed Description

An ellipse core for the semimajor/semiminor axis and position angle parametrization (a,b,theta).

Definition at line 47 of file Axes.h.

Member Enumeration Documentation

Enumerator
A 
B 
THETA 

Definition at line 49 of file Axes.h.

Constructor & Destructor Documentation

lsst::afw::geom::ellipses::Axes::Axes ( double  a = 1.0,
double  b = 1.0,
double  theta = 0.0,
bool  normalize = false 
)
inlineexplicit

Construct from parameter values.

Definition at line 89 of file Axes.h.

lsst::afw::geom::ellipses::Axes::Axes ( BaseCore::ParameterVector const &  vector,
bool  normalize = false 
)
inlineexplicit

Construct from a parameter vector.

Definition at line 95 of file Axes.h.

lsst::afw::geom::ellipses::Axes::Axes ( Axes const &  other)
inline

Copy constructor.

Definition at line 100 of file Axes.h.

lsst::afw::geom::ellipses::Axes::Axes ( BaseCore const &  other)
inline

Converting copy constructor.

Definition at line 103 of file Axes.h.

lsst::afw::geom::ellipses::Axes::Axes ( BaseCore::Transformer const &  transformer)
inline

Converting copy constructor.

Definition at line 106 of file Axes.h.

lsst::afw::geom::ellipses::Axes::Axes ( BaseCore::Convolution const &  convolution)
inline

Converting copy constructor.

Definition at line 109 of file Axes.h.

Member Function Documentation

virtual void lsst::afw::geom::ellipses::Axes::_assignFromAxes ( double  a,
double  b,
double  theta 
)
protectedvirtual
virtual void lsst::afw::geom::ellipses::Axes::_assignFromQuadrupole ( double  ixx,
double  iyy,
double  ixy 
)
protectedvirtual
virtual void lsst::afw::geom::ellipses::Axes::_assignToAxes ( double &  a,
double &  b,
double &  theta 
) const
protectedvirtual
virtual void lsst::afw::geom::ellipses::Axes::_assignToQuadrupole ( double &  ixx,
double &  iyy,
double &  ixy 
) const
protectedvirtual
virtual std::shared_ptr<BaseCore> lsst::afw::geom::ellipses::Axes::_clone ( ) const
inlineprotectedvirtual

Implements lsst::afw::geom::ellipses::BaseCore.

Definition at line 112 of file Axes.h.

virtual Jacobian lsst::afw::geom::ellipses::Axes::_dAssignFromAxes ( double  a,
double  b,
double  theta 
)
protectedvirtual
virtual Jacobian lsst::afw::geom::ellipses::Axes::_dAssignFromQuadrupole ( double  ixx,
double  iyy,
double  ixy 
)
protectedvirtual
virtual Jacobian lsst::afw::geom::ellipses::Axes::_dAssignToAxes ( double &  a,
double &  b,
double &  theta 
) const
protectedvirtual
virtual Jacobian lsst::afw::geom::ellipses::Axes::_dAssignToQuadrupole ( double &  ixx,
double &  iyy,
double &  ixy 
) const
protectedvirtual
std::shared_ptr<Axes> lsst::afw::geom::ellipses::Axes::clone ( ) const
inline

Deep copy the ellipse core.

Definition at line 61 of file Axes.h.

double const lsst::afw::geom::ellipses::Axes::getA ( ) const
inline

Definition at line 51 of file Axes.h.

double const lsst::afw::geom::ellipses::Axes::getB ( ) const
inline

Definition at line 54 of file Axes.h.

virtual std::string lsst::afw::geom::ellipses::Axes::getName ( ) const
virtual

Return a string that identifies this parametrization.

Implements lsst::afw::geom::ellipses::BaseCore.

double const lsst::afw::geom::ellipses::Axes::getTheta ( ) const
inline

Definition at line 57 of file Axes.h.

virtual void lsst::afw::geom::ellipses::Axes::normalize ( )
virtual

Put the parameters into a "standard form", if possible, and throw InvalidParameterError if they cannot be normalized.

Implements lsst::afw::geom::ellipses::BaseCore.

Axes& lsst::afw::geom::ellipses::Axes::operator= ( Axes const &  other)
inline

Standard assignment.

Definition at line 77 of file Axes.h.

Axes& lsst::afw::geom::ellipses::Axes::operator= ( BaseCore const &  other)
inline

Converting assignment.

Definition at line 83 of file Axes.h.

virtual void lsst::afw::geom::ellipses::Axes::readParameters ( double const *  iter)
virtual
void lsst::afw::geom::ellipses::Axes::setA ( double  a)
inline

Definition at line 52 of file Axes.h.

void lsst::afw::geom::ellipses::Axes::setB ( double  b)
inline

Definition at line 55 of file Axes.h.

void lsst::afw::geom::ellipses::Axes::setTheta ( double  theta)
inline

Definition at line 58 of file Axes.h.

virtual void lsst::afw::geom::ellipses::Axes::writeParameters ( double *  iter) const
virtual

The documentation for this class was generated from the following file: