DGtal
0.6.devel
|
#include <CircleFrom2Points.h>
Public Types | |
typedef TPoint::Coordinate | Coordinate |
typedef Coordinate | Distance |
typedef TPoint | Point |
typedef TPoint | Vector |
Public Member Functions | |
CircleFrom2Points (const Point &aPole) | |
CircleFrom2Points (const Point &aPole, const Point &aFirstPoint, const Point &aSecondPoint) | |
void | init (const Point &aFirstPoint, const Point &aSecondPoint) |
CircleFrom2Points (const CircleFrom2Points &other) | |
CircleFrom2Points & | operator= (const CircleFrom2Points &other) |
~CircleFrom2Points () | |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Distance | signedDistance (const Point &aP) const |
void | getParameters (double &cx, double &cy, double &r) const |
const Point & | pole () const |
const Point & | p () const |
const Point & | q () const |
std::string | className () const |
Private Attributes | |
Point | myPole |
Point | myP |
Point | myQ |
Aim: Represents a circle that passes through a given point and that is thus uniquely defined by two other points. It is able to return for any given point its signed distance to itself.
TPoint | a type of points. |
Definition at line 67 of file CircleFrom2Points.h.
typedef TPoint::Coordinate DGtal::CircleFrom2Points< TPoint >::Coordinate |
Definition at line 73 of file CircleFrom2Points.h.
typedef Coordinate DGtal::CircleFrom2Points< TPoint >::Distance |
Definition at line 74 of file CircleFrom2Points.h.
typedef TPoint DGtal::CircleFrom2Points< TPoint >::Point |
Definition at line 75 of file CircleFrom2Points.h.
typedef TPoint DGtal::CircleFrom2Points< TPoint >::Vector |
Definition at line 76 of file CircleFrom2Points.h.
|
inline |
|
inline |
Constructor with initialization.
aPole | a point |
aFirstPoint | a point |
aSecondPoint | a second point |
Definition at line 67 of file CircleFrom2Points.ih.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 80 of file CircleFrom2Points.ih.
|
inline |
|
inline |
Default drawing style object.
Definition at line 127 of file CircleFrom2Points.ih.
|
inline |
Computes the parameters of the circle
cx | returned x-coordinate of the circle |
cy | returned y-coordinate of the circle |
r | returned radius of the circle |
Definition at line 115 of file CircleFrom2Points.ih.
References DGtal::CircleFrom3Points< TPoint >::getParameters().
|
inline |
Init.
aFirstPoint | a point |
aSecondPoint | a second point |
Definition at line 56 of file CircleFrom2Points.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 144 of file CircleFrom2Points.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 92 of file CircleFrom2Points.ih.
References DGtal::CircleFrom2Points< TPoint >::myP, DGtal::CircleFrom2Points< TPoint >::myPole, and DGtal::CircleFrom2Points< TPoint >::myQ.
|
inline |
Definition at line 163 of file CircleFrom2Points.h.
References DGtal::CircleFrom2Points< TPoint >::myP.
Referenced by DGtal::Display2DFactory::draw().
|
inline |
Definition at line 155 of file CircleFrom2Points.h.
References DGtal::CircleFrom2Points< TPoint >::myPole.
Referenced by DGtal::Display2DFactory::draw().
|
inline |
Definition at line 171 of file CircleFrom2Points.h.
References DGtal::CircleFrom2Points< TPoint >::myQ.
Referenced by DGtal::Display2DFactory::draw().
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 135 of file CircleFrom2Points.ih.
|
inline |
Computes the signed distance of to the circle
aP | the point to be tested. |
Definition at line 106 of file CircleFrom2Points.ih.
References DGtal::CircleFrom3Points< TPoint >::signedDistance().
|
private |
Second point through which the circle passes
Definition at line 200 of file CircleFrom2Points.h.
Referenced by DGtal::CircleFrom2Points< TPoint >::operator=(), and DGtal::CircleFrom2Points< TPoint >::p().
|
private |
First (and not mutable) point through which the circle passes
Definition at line 196 of file CircleFrom2Points.h.
Referenced by DGtal::CircleFrom2Points< TPoint >::operator=(), and DGtal::CircleFrom2Points< TPoint >::pole().
|
private |
Third point through which the circle passes
Definition at line 204 of file CircleFrom2Points.h.
Referenced by DGtal::CircleFrom2Points< TPoint >::operator=(), and DGtal::CircleFrom2Points< TPoint >::q().