#include <DGtal/shapes/parametric/Flower2D.h>
|
| ~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 |
|
| StarShaped2D () |
|
| ~StarShaped2D () |
|
virtual RealPoint | interiorPoint () 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 |
|
void | selfDisplay (std::ostream &out) const |
|
bool | isValid () const |
|
template<typename TSpace>
class DGtal::Flower2D< TSpace >
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.
- Examples:
- geometry/curves/estimation/exampleCurvature.cpp, and topology/digitalSetToCubicalComplexes2D.cpp.
Definition at line 64 of file Flower2D.h.
◆ Point
template<typename TSpace>
◆ RealPoint2D
template<typename TSpace>
◆ RealVector2D
template<typename TSpace>
◆ Space
template<typename TSpace>
◆ ~Flower2D()
template<typename TSpace>
◆ Flower2D() [1/4]
template<typename TSpace>
DGtal::Flower2D< TSpace >::Flower2D |
( |
const double |
x0, |
|
|
const double |
y0, |
|
|
const double |
r, |
|
|
const double |
smallr, |
|
|
const unsigned int |
k, |
|
|
const double |
phi |
|
) |
| |
Constructor.
- Parameters
-
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). |
◆ Flower2D() [2/4]
template<typename TSpace>
Constructor.
- Parameters
-
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). |
◆ Flower2D() [3/4]
template<typename TSpace>
Constructor.
- Parameters
-
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). |
◆ Flower2D() [4/4]
template<typename TSpace>
Constructor. Forbidden by default (protected to avoid g++ warnings).
◆ center()
template<typename TSpace>
◆ getLowerBound()
template<typename TSpace>
◆ getUpperBound()
template<typename TSpace>
◆ isValid()
template<typename TSpace>
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ operator=()
template<typename TSpace>
Copy constructor.
- Parameters
-
other | the object to clone. Forbidden by default. Assignment. |
other | the object to copy. |
- Returns
- a reference on 'this'. Forbidden by default.
◆ parameter()
template<typename TSpace>
◆ selfDisplay()
template<typename TSpace>
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ x()
template<typename TSpace>
◆ xp()
template<typename TSpace>
◆ xpp()
template<typename TSpace>
◆ myCenter
template<typename TSpace>
◆ myK
template<typename TSpace>
the number of flower extremeties.
Definition at line 205 of file Flower2D.h.
◆ myPhi
template<typename TSpace>
the phase of the flower (in radian).
Definition at line 210 of file Flower2D.h.
◆ myRadius
template<typename TSpace>
◆ myVarRadius
template<typename TSpace>
The documentation for this class was generated from the following file: