DGtal
0.6.devel
|
#include <NGon2D.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 | |
~NGon2D () | |
NGon2D (const double x0, const double y0, const double r, const unsigned int k, const double phi) | |
NGon2D (const RealPoint2D &aPoint, const double r, const unsigned int k, const double phi) | |
NGon2D (const Point &aPoint, const double r, 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 | |
NGon2D () |
Private Member Functions | |
NGon2D & | operator= (const NGon2D &other) |
Private Attributes | |
RealPoint2D | myCenter |
double | myRadius |
unsigned int | myK |
double | myPhi |
Aim: Model of the concept StarShaped represents any regular k-gon in the plane.
Description of template class 'NGon2D'
NB: A backport from ImaGene.
typedef Space::Point DGtal::NGon2D< TSpace >::Point |
Reimplemented from DGtal::StarShaped2D< TSpace >.
typedef Space::RealPoint DGtal::NGon2D< TSpace >::RealPoint2D |
typedef Space::RealVector DGtal::NGon2D< TSpace >::RealVector2D |
typedef TSpace DGtal::NGon2D< TSpace >::Space |
Reimplemented from DGtal::StarShaped2D< TSpace >.
|
inline |
|
inline |
Constructor.
x0 | the x-coordinate of the circle center. |
y0 | the y-coordinate of the circle center. |
r | the radius of the circle. |
k | the number of faces of the k-gon. |
phi | the phase of the ngon (radian). |
|
inline |
|
inline |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 134 of file NGon2D.h.
References DGtal::NGon2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 117 of file NGon2D.h.
References DGtal::NGon2D< TSpace >::myCenter, and DGtal::NGon2D< TSpace >::myRadius.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 126 of file NGon2D.h.
References DGtal::NGon2D< TSpace >::myCenter, and DGtal::NGon2D< TSpace >::myRadius.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 229 of file NGon2D.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 91 of file NGon2D.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 >.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 127 of file NGon2D.ih.
References M_PI.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 166 of file NGon2D.ih.
References M_PI.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
|
private |
Center of the circle.
Definition at line 178 of file NGon2D.h.
Referenced by DGtal::NGon2D< TSpace >::center(), DGtal::NGon2D< TSpace >::getLowerBound(), DGtal::NGon2D< TSpace >::getUpperBound(), and DGtal::NGon2D< TSpace >::NGon2D().
|
private |
|
private |
|
private |
Radius of the circle.
Definition at line 183 of file NGon2D.h.
Referenced by DGtal::NGon2D< TSpace >::getLowerBound(), and DGtal::NGon2D< TSpace >::getUpperBound().