DGtal
0.6.devel
|
#include <AccFlower2D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::Point | Point |
typedef Space::RealPoint | RealPoint2D |
typedef Space::RealVector | RealVector2D |
![]() | |
typedef Space::RealPoint | RealPoint |
Public Member Functions | |
~AccFlower2D () | |
AccFlower2D (const double x0, const double y0, const double r, const double smallr, const unsigned int k, const double phi) | |
AccFlower2D (const RealPoint2D &aPoint, const double r, const double smallr, const unsigned int k, const double phi) | |
AccFlower2D (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 |
![]() | |
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 | |
AccFlower2D () |
Private Member Functions | |
AccFlower2D & | operator= (const AccFlower2D &other) |
Private Attributes | |
RealPoint2D | myCenter |
double | myRadius |
double | myVarRadius |
unsigned int | myK |
double | myKp |
double | myPhi |
Aim: Model of the concept StarShaped represents any accelerated flower in the plane.
Description of template class 'AccFlower2D'
NB: A backport from ImaGene.
Definition at line 64 of file AccFlower2D.h.
typedef Space::Point DGtal::AccFlower2D< TSpace >::Point |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 70 of file AccFlower2D.h.
typedef Space::RealPoint DGtal::AccFlower2D< TSpace >::RealPoint2D |
Definition at line 71 of file AccFlower2D.h.
typedef Space::RealVector DGtal::AccFlower2D< TSpace >::RealVector2D |
Definition at line 72 of file AccFlower2D.h.
typedef TSpace DGtal::AccFlower2D< TSpace >::Space |
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 69 of file AccFlower2D.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. |
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 54 of file AccFlower2D.ih.
References M_PI, DGtal::AccFlower2D< TSpace >::myK, and DGtal::AccFlower2D< TSpace >::myKp.
|
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 66 of file AccFlower2D.ih.
References M_PI, DGtal::AccFlower2D< TSpace >::myK, and DGtal::AccFlower2D< TSpace >::myKp.
|
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 77 of file AccFlower2D.ih.
References M_PI, DGtal::AccFlower2D< TSpace >::myCenter, DGtal::AccFlower2D< TSpace >::myK, and DGtal::AccFlower2D< TSpace >::myKp.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 149 of file AccFlower2D.h.
References DGtal::AccFlower2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 130 of file AccFlower2D.h.
References DGtal::AccFlower2D< TSpace >::myCenter, DGtal::AccFlower2D< TSpace >::myRadius, and DGtal::AccFlower2D< TSpace >::myVarRadius.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 140 of file AccFlower2D.h.
References DGtal::AccFlower2D< TSpace >::myCenter, DGtal::AccFlower2D< TSpace >::myRadius, and DGtal::AccFlower2D< TSpace >::myVarRadius.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 225 of file AccFlower2D.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 98 of file AccFlower2D.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 212 of file AccFlower2D.ih.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 134 of file AccFlower2D.ih.
References M_PI.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 157 of file AccFlower2D.ih.
References M_PI.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 181 of file AccFlower2D.ih.
References M_PI.
|
private |
Center of the flower.
Definition at line 193 of file AccFlower2D.h.
Referenced by DGtal::AccFlower2D< TSpace >::AccFlower2D(), DGtal::AccFlower2D< TSpace >::center(), DGtal::AccFlower2D< TSpace >::getLowerBound(), and DGtal::AccFlower2D< TSpace >::getUpperBound().
|
private |
the number of flower extremeties.
Definition at line 208 of file AccFlower2D.h.
Referenced by DGtal::AccFlower2D< TSpace >::AccFlower2D().
|
private |
The value 2*myK*Pi/(Pi^3)
Definition at line 213 of file AccFlower2D.h.
Referenced by DGtal::AccFlower2D< TSpace >::AccFlower2D().
|
private |
the phase of the flower (in radian).
Definition at line 218 of file AccFlower2D.h.
|
private |
Radius of the flower.
Definition at line 198 of file AccFlower2D.h.
Referenced by DGtal::AccFlower2D< TSpace >::getLowerBound(), and DGtal::AccFlower2D< TSpace >::getUpperBound().
|
private |
the variable small radius of the flower.
Definition at line 203 of file AccFlower2D.h.
Referenced by DGtal::AccFlower2D< TSpace >::getLowerBound(), and DGtal::AccFlower2D< TSpace >::getUpperBound().