Aim: Model of the concept StarShaped represents any flower with k-petals in the plane.
More...
#include <DGtal/shapes/parametric/Flower2D.h>
|
| Flower2D ()=delete |
|
| Flower2D (const double x0, const double y0, const double r, const double smallr, const unsigned int k, const double phi) |
|
| Flower2D (const RealPoint &aPoint, const double r, const double smallr, const unsigned int k, const double phi) |
|
| Flower2D (const Flower2D &other) |
|
Flower2D & | operator= (const Flower2D &other)=delete |
|
| ~Flower2D ()=default |
|
RealPoint | getLowerBound () const |
|
RealPoint | getUpperBound () const |
|
RealPoint | center () const |
|
void | moveTo (const RealPoint &newCenter) |
|
double | parameter (const RealPoint &p) const |
|
RealPoint | x (const double t) const |
|
RealVector | xp (const double t) const |
|
RealVector | xpp (const double t) const |
|
void | selfDisplay (std::ostream &out) const |
|
bool | isValid () const |
|
| StarShaped2D ()=default |
|
| StarShaped2D (const StarShaped2D &other)=delete |
|
StarShaped2D & | operator= (const StarShaped2D &other)=delete |
|
virtual | ~StarShaped2D ()=default |
|
virtual RealPoint | interiorPoint () const |
|
virtual RealPoint | getLowerBound () const =0 |
|
virtual RealPoint | getUpperBound () const =0 |
|
virtual RealPoint | center () const =0 |
|
virtual void | moveTo (const RealPoint &newCenter)=0 |
|
virtual double | parameter (const RealPoint &p) const =0 |
|
virtual RealPoint | x (const double t) const =0 |
|
virtual RealPoint | xp (const double t) const =0 |
|
virtual RealPoint | xpp (const double t) const =0 |
|
Orientation | orientation (const RealPoint &p) const |
|
RealPoint | tangent (const double t) const |
|
RealPoint | normal (const double t) const |
|
double | curvature (const double t) const |
|
double | arclength (const double t1, double t2, const unsigned int nb) const |
|
RealPoint | findIntersection (const RealPoint &inner, const RealPoint &outer, const double epsilon) const |
|
RealPoint | closestPointWithWitnesses (const RealPoint &p, const RealPoint &left, const RealPoint &right, const int step) 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.
◆ RealPoint
template<typename TSpace >
◆ RealVector
template<typename TSpace >
◆ Space
template<typename TSpace >
◆ Flower2D() [1/4]
template<typename TSpace >
Constructor. Forbidden by default.
◆ Flower2D() [2/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() [3/4]
template<typename TSpace >
DGtal::Flower2D< TSpace >::Flower2D |
( |
const RealPoint & |
aPoint, |
|
|
const double |
r, |
|
|
const double |
smallr, |
|
|
const unsigned int |
k, |
|
|
const double |
phi |
|
) |
| |
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 >
Copy constructor.
- Parameters
-
other | the object to clone. |
◆ ~Flower2D()
template<typename TSpace >
◆ 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.
◆ moveTo()
template<typename TSpace >
◆ operator=()
template<typename TSpace >
Assignment.
- Parameters
-
- 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 >
- Parameters
-
t | any angle between 0 and 2*Pi. |
- Returns
- the vector (x(t),y(t)) which is the position on the shape boundary.
Implements DGtal::StarShaped2D< TSpace >.
◆ xp()
template<typename TSpace >
- Parameters
-
t | any angle between 0 and 2*Pi. |
- Returns
- the vector (x'(t),y'(t)) which is the tangent to the shape boundary.
Implements DGtal::StarShaped2D< TSpace >.
◆ xpp()
template<typename TSpace >
◆ myCenter
template<typename TSpace >
◆ myK
template<typename TSpace >
the number of flower extremeties.
Definition at line 221 of file Flower2D.h.
◆ myPhi
template<typename TSpace >
the phase of the flower (in radian).
Definition at line 226 of file Flower2D.h.
◆ myRadius
template<typename TSpace >
◆ myVarRadius
template<typename TSpace >
The documentation for this class was generated from the following file: