|
DGtal
0.6.devel
|
#include <Ellipse2D.h>


Public Types | |
| typedef TSpace | Space |
| typedef Space::Point | Point |
| typedef Space::RealPoint | RealPoint2D |
| typedef Space::RealVector | RealVector2D |
Public Types inherited from DGtal::StarShaped2D< TSpace > | |
| typedef Space::RealPoint | RealPoint |
Public Member Functions | |
| ~Ellipse2D () | |
| Ellipse2D (const double x0, const double y0, const double a0, const double a1, const double theta) | |
| Ellipse2D (const RealPoint2D &aPoint, const double a0, const double a1, const double theta) | |
| Ellipse2D (const Point &aPoint, const double a0, const double a1, const double theta) | |
| RealPoint2D | getLowerBound () const |
| RealPoint2D | getUpperBound () const |
| RealPoint2D | center () const |
| double | parameter (const RealPoint2D &p) const |
| RealPoint2D | x (const double t) const |
| RealVector2D | xp (const double t) const |
| RealVector2D | xpp (const double t) const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Public Member Functions inherited from DGtal::StarShaped2D< TSpace > | |
| StarShaped2D () | |
| ~StarShaped2D () | |
| virtual RealPoint | interiorPoint () const |
| bool | isInside (const RealPoint &p) const |
| bool | isInside (const Point &p) const |
| Orientation | orientation (const RealPoint &p) const |
| RealPoint | tangent (double t) const |
| RealPoint | normal (double t) const |
| double | curvature (double t) const |
| double | arclength (double t1, double t2, unsigned int nb) const |
Protected Member Functions | |
| Ellipse2D () | |
Private Member Functions | |
| Ellipse2D & | operator= (const Ellipse2D &other) |
Private Attributes | |
| RealPoint2D | myCenter |
| double | myAxis1 |
| double | myAxis2 |
| double | myTheta |
Aim: Model of the concept StarShaped represents any ellipse in the plane.
Description of template class 'Ellipse2D'
NB: A backport from ImaGene.
Definition at line 64 of file Ellipse2D.h.
| typedef Space::Point DGtal::Ellipse2D< TSpace >::Point |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 70 of file Ellipse2D.h.
| typedef Space::RealPoint DGtal::Ellipse2D< TSpace >::RealPoint2D |
Definition at line 71 of file Ellipse2D.h.
| typedef Space::RealVector DGtal::Ellipse2D< TSpace >::RealVector2D |
Definition at line 72 of file Ellipse2D.h.
| typedef TSpace DGtal::Ellipse2D< TSpace >::Space |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 69 of file Ellipse2D.h.
|
inline |
|
inline |
Constructor.
| x0 | the x-coordinate of the circle center. |
| y0 | the y-coordinate of the circle center. |
| a1 | the half big axis of the ellipse. |
| a2 | the half small axis of the ellipse. |
| theta | the orientation of the ellipse. |
Definition at line 54 of file Ellipse2D.ih.
|
inline |
|
inline |
Constructor.
| aPoint | the circle center. |
| a1 | the half big axis of the ellipse. |
| a2 | the half small axis of the ellipse. |
| theta | the orientation of the ellipse. |
Definition at line 69 of file Ellipse2D.ih.
References DGtal::Ellipse2D< TSpace >::myCenter.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 135 of file Ellipse2D.h.
References DGtal::Ellipse2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 118 of file Ellipse2D.h.
References DGtal::Ellipse2D< TSpace >::myAxis1, and DGtal::Ellipse2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 127 of file Ellipse2D.h.
References DGtal::Ellipse2D< TSpace >::myAxis1, and DGtal::Ellipse2D< TSpace >::myCenter.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 223 of file Ellipse2D.ih.
|
private |
Copy constructor.
| other | the object to clone. Forbidden by default. Assignment. |
| other | the object to copy. |
|
inlinevirtual |
| p | any point in the plane. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 88 of file Ellipse2D.ih.
References M_PI.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 210 of file Ellipse2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 123 of file Ellipse2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 149 of file Ellipse2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 175 of file Ellipse2D.ih.
|
private |
First axis.
Definition at line 184 of file Ellipse2D.h.
Referenced by DGtal::Ellipse2D< TSpace >::getLowerBound(), and DGtal::Ellipse2D< TSpace >::getUpperBound().
|
private |
Second axis.
Definition at line 190 of file Ellipse2D.h.
|
private |
Center of the circle.
Definition at line 179 of file Ellipse2D.h.
Referenced by DGtal::Ellipse2D< TSpace >::center(), DGtal::Ellipse2D< TSpace >::Ellipse2D(), DGtal::Ellipse2D< TSpace >::getLowerBound(), and DGtal::Ellipse2D< TSpace >::getUpperBound().
|
private |
Orientation (radian).
Definition at line 195 of file Ellipse2D.h.
1.8.1.1