|
DGtal
0.6.devel
|
#include <Flower2D.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 | |
| ~Flower2D () | |
| Flower2D (const double x0, const double y0, const double r, const double smallr, const unsigned int k, const double phi) | |
| Flower2D (const RealPoint2D &aPoint, const double r, const double smallr, const unsigned int k, const double phi) | |
| Flower2D (const Point &aPoint, const double r, const double smallr, const unsigned int k, const double phi) | |
| 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 | |
| Flower2D () | |
Private Member Functions | |
| Flower2D & | operator= (const Flower2D &other) |
Private Attributes | |
| RealPoint2D | myCenter |
| double | myRadius |
| double | myVarRadius |
| unsigned int | myK |
| double | myPhi |
Aim: Model of the concept StarShaped represents any flower with k-petals in the plane.
Description of template class 'Flower2D'
NB: A backport from ImaGene.
Definition at line 64 of file Flower2D.h.
| typedef Space::Point DGtal::Flower2D< TSpace >::Point |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 70 of file Flower2D.h.
| typedef Space::RealPoint DGtal::Flower2D< TSpace >::RealPoint2D |
Definition at line 71 of file Flower2D.h.
| typedef Space::RealVector DGtal::Flower2D< TSpace >::RealVector2D |
Definition at line 72 of file Flower2D.h.
| typedef TSpace DGtal::Flower2D< TSpace >::Space |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 69 of file Flower2D.h.
|
inline |
|
inline |
Constructor.
| x0 | the x-coordinate of the flower center. |
| y0 | the y-coordinate of the flower center. |
| r | the radius of the flower. |
| varRadius | the variable small radius of the flower. |
| k | the number of flower extremeties. |
| phi | the phase of the flower (in radian). |
Definition at line 54 of file Flower2D.ih.
|
inline |
Constructor.
| aPoint | the flower center. |
| r | the radius of the flower. |
| smallr | the variable small radius of the flower. |
| k | the number of flower extremeties. |
| phi | the phase of the flower (in radian). |
Definition at line 63 of file Flower2D.ih.
|
inline |
Constructor.
| aPoint | the flower center. |
| r | the radius of the flower. |
| smallr | the variable small radius of the flower. |
| k | the number of flower extremeties. |
| phi | the phase of the flower (in radian). |
Definition at line 72 of file Flower2D.ih.
References DGtal::Flower2D< TSpace >::myCenter.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 146 of file Flower2D.h.
References DGtal::Flower2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 129 of file Flower2D.h.
References DGtal::Flower2D< TSpace >::myCenter, DGtal::Flower2D< TSpace >::myRadius, and DGtal::Flower2D< TSpace >::myVarRadius.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 138 of file Flower2D.h.
References DGtal::Flower2D< TSpace >::myCenter, DGtal::Flower2D< TSpace >::myRadius, and DGtal::Flower2D< TSpace >::myVarRadius.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 199 of file Flower2D.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 92 of file Flower2D.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 186 of file Flower2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 131 of file Flower2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 149 of file Flower2D.ih.
|
inlinevirtual |
| t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 165 of file Flower2D.ih.
|
private |
Center of the flower.
Definition at line 190 of file Flower2D.h.
Referenced by DGtal::Flower2D< TSpace >::center(), DGtal::Flower2D< TSpace >::Flower2D(), DGtal::Flower2D< TSpace >::getLowerBound(), and DGtal::Flower2D< TSpace >::getUpperBound().
|
private |
the number of flower extremeties.
Definition at line 205 of file Flower2D.h.
|
private |
the phase of the flower (in radian).
Definition at line 210 of file Flower2D.h.
|
private |
Radius of the flower.
Definition at line 195 of file Flower2D.h.
Referenced by DGtal::Flower2D< TSpace >::getLowerBound(), and DGtal::Flower2D< TSpace >::getUpperBound().
|
private |
the variable small radius of the flower.
Definition at line 200 of file Flower2D.h.
Referenced by DGtal::Flower2D< TSpace >::getLowerBound(), and DGtal::Flower2D< TSpace >::getUpperBound().
1.8.1.1