DGtal
0.6.devel
|
#include <Ball2D.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 | |
~Ball2D () | |
Ball2D (const double x0, const double y0, const double r) | |
Ball2D (const RealPoint2D &aPoint, const double r) | |
Ball2D (const Point &aPoint, const double r) | |
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 | |
Ball2D () |
Private Member Functions | |
Ball2D & | operator= (const Ball2D &other) |
Private Attributes | |
double | myRadius |
RealPoint2D | myCenter |
Aim: Model of the concept StarShaped represents any circle in the plane.
Description of template class 'Ball2D'
typedef Space::Point DGtal::Ball2D< TSpace >::Point |
Reimplemented from DGtal::StarShaped2D< TSpace >.
typedef Space::RealPoint DGtal::Ball2D< TSpace >::RealPoint2D |
typedef Space::RealVector DGtal::Ball2D< TSpace >::RealVector2D |
typedef TSpace DGtal::Ball2D< TSpace >::Space |
Reimplemented from DGtal::StarShaped2D< TSpace >.
|
inline |
|
inline |
|
inline |
|
inline |
Constructor.
aPoint | the circle center. |
r | the radius of the circle. |
Definition at line 65 of file Ball2D.ih.
References DGtal::Ball2D< TSpace >::myCenter.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 122 of file Ball2D.h.
References DGtal::Ball2D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 105 of file Ball2D.h.
References DGtal::Ball2D< TSpace >::myCenter, and DGtal::Ball2D< TSpace >::myRadius.
|
inlinevirtual |
Implements DGtal::StarShaped2D< TSpace >.
Definition at line 114 of file Ball2D.h.
References DGtal::Ball2D< TSpace >::myCenter, and DGtal::Ball2D< TSpace >::myRadius.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped2D< TSpace >.
Definition at line 178 of file Ball2D.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 83 of file Ball2D.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 >.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
|
inlinevirtual |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped2D< TSpace >.
|
private |
Center of the circle.
Definition at line 171 of file Ball2D.h.
Referenced by DGtal::Ball2D< TSpace >::Ball2D(), DGtal::Ball2D< TSpace >::center(), DGtal::Ball2D< TSpace >::getLowerBound(), and DGtal::Ball2D< TSpace >::getUpperBound().
|
private |
Radius of the circle.
Definition at line 166 of file Ball2D.h.
Referenced by DGtal::Ball2D< TSpace >::getLowerBound(), and DGtal::Ball2D< TSpace >::getUpperBound().