DGtal
0.6.devel
|
#include <StarShaped2D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::Point | Point |
typedef Space::RealPoint | RealPoint |
Public Member Functions | |
StarShaped2D () | |
~StarShaped2D () | |
virtual RealPoint | interiorPoint () const |
virtual RealPoint | getLowerBound () const =0 |
virtual RealPoint | getUpperBound () const =0 |
virtual RealPoint | center () const =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 |
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 |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
StarShaped2D & | operator= (const StarShaped2D &other) |
Description of template class 'StarShaped2D'
Aim: Abstract class that represents any star-shaped object in dimension 2. Such a shape as a center and any segment from this center to the shape boundary is included in the shape. These shapes can thus be parameterized by an angle 't' turning around the center.
StarShaped2D and its derived classes are models of CEuclideanBoundedShape and CEuclideanOrientedShape.
NB: A backport from ImaGene.
TSpace | space in which the shape is defined. |
Definition at line 73 of file StarShaped2D.h.
typedef Space::Point DGtal::StarShaped2D< TSpace >::Point |
Reimplemented in DGtal::AccFlower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
Definition at line 78 of file StarShaped2D.h.
typedef Space::RealPoint DGtal::StarShaped2D< TSpace >::RealPoint |
Definition at line 79 of file StarShaped2D.h.
typedef TSpace DGtal::StarShaped2D< TSpace >::Space |
Reimplemented in DGtal::AccFlower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
Definition at line 77 of file StarShaped2D.h.
|
inline |
|
inline |
|
inline |
t1 | any angle between 0 and 2*Pi. |
t2 | any angle between 0 and 2*Pi, further from [t1]. |
nb | the number of points used to estimate the arclength between x(t1) and x(t2). |
Definition at line 179 of file StarShaped2D.ih.
References M_PI.
|
pure virtual |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
Referenced by DGtal::StarShaped2D< TSpace >::interiorPoint().
|
inline |
t | any angle between 0 and 2*Pi. |
Definition at line 160 of file StarShaped2D.ih.
|
pure virtual |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
|
pure virtual |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
|
inlinevirtual |
Definition at line 97 of file StarShaped2D.h.
References DGtal::StarShaped2D< TSpace >::center().
|
inline |
p | any point in the plane. |
p | any point in the plane. |
Definition at line 74 of file StarShaped2D.ih.
|
inline |
p | any point in the digital plane. |
p | any point in the plane. |
Definition at line 55 of file StarShaped2D.ih.
|
inline |
Checks the validity/consistency of the object.
Reimplemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
Definition at line 230 of file StarShaped2D.ih.
|
inline |
t | any angle between 0 and 2*Pi. |
t | any angle between 0 and 2*Pi. |
Definition at line 143 of file StarShaped2D.ih.
|
private |
Constructor. Forbidden by default (protected to avoid g++ warnings). Copy constructor.
other | the object to clone. Forbidden by default. Assignment. |
other | the object to copy. |
|
inline |
Return the orienatation of a point with respect to a shape.
p | input point |
p | any point in the plane. |
Definition at line 96 of file StarShaped2D.ih.
References DGtal::INSIDE, DGtal::ON, and DGtal::OUTSIDE.
|
pure virtual |
p | any point in the plane. |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Reimplemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
Definition at line 218 of file StarShaped2D.ih.
|
inline |
t | any angle between 0 and 2*Pi. |
Definition at line 125 of file StarShaped2D.ih.
|
pure virtual |
t | any angle between 0 and 2*Pi. |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
|
pure virtual |
t | any angle between 0 and 2*Pi. |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.
|
pure virtual |
t | any angle between 0 and 2*Pi. |
Implemented in DGtal::AccFlower2D< TSpace >, DGtal::Flower2D< TSpace >, DGtal::Ellipse2D< TSpace >, DGtal::NGon2D< TSpace >, and DGtal::Ball2D< TSpace >.