DGtal
0.6.devel
|
#include <StraightLineFrom2Points.h>
Public Types | |
typedef TPoint::Coordinate | Coordinate |
typedef Coordinate | Distance |
typedef TPoint | Point |
typedef TPoint | Vector |
Public Member Functions | |
StraightLineFrom2Points () | |
StraightLineFrom2Points (const Point &aFirstPoint, const Point &aSecondPoint) | |
void | init (const Point &aFirstPoint, const Point &aSecondPoint) |
StraightLineFrom2Points (const StraightLineFrom2Points &other) | |
StraightLineFrom2Points & | operator= (const StraightLineFrom2Points &other) |
~StraightLineFrom2Points () | |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Distance | signedDistance (const Point &aP) const |
const Point & | p () const |
const Point & | q () const |
std::string | className () const |
Private Attributes | |
Point | myP |
Point | myQ |
Aim: Represents a straight line uniquely defined by two 2D points and that is able to return for any given 2D point its signed distance to itself.
TPoint | a type of points. |
Definition at line 68 of file StraightLineFrom2Points.h.
typedef TPoint::Coordinate DGtal::StraightLineFrom2Points< TPoint >::Coordinate |
Definition at line 74 of file StraightLineFrom2Points.h.
typedef Coordinate DGtal::StraightLineFrom2Points< TPoint >::Distance |
Definition at line 75 of file StraightLineFrom2Points.h.
typedef TPoint DGtal::StraightLineFrom2Points< TPoint >::Point |
Definition at line 76 of file StraightLineFrom2Points.h.
typedef TPoint DGtal::StraightLineFrom2Points< TPoint >::Vector |
Definition at line 77 of file StraightLineFrom2Points.h.
|
inline |
|
inline |
Constructor.
firstPoint | a point |
secondPoint | another point |
Definition at line 67 of file StraightLineFrom2Points.ih.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 78 of file StraightLineFrom2Points.ih.
|
inline |
|
inline |
Default drawing style object.
Definition at line 118 of file StraightLineFrom2Points.ih.
|
inline |
Init.
firstPoint | a point |
secondPoint | another point |
Definition at line 56 of file StraightLineFrom2Points.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 135 of file StraightLineFrom2Points.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 89 of file StraightLineFrom2Points.ih.
References DGtal::StraightLineFrom2Points< TPoint >::myP, and DGtal::StraightLineFrom2Points< TPoint >::myQ.
|
inline |
Definition at line 146 of file StraightLineFrom2Points.h.
References DGtal::StraightLineFrom2Points< TPoint >::myP.
Referenced by DGtal::Display2DFactory::draw().
|
inline |
Definition at line 154 of file StraightLineFrom2Points.h.
References DGtal::StraightLineFrom2Points< 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 126 of file StraightLineFrom2Points.ih.
|
inline |
Computes the signed distance of to the straight line
aP | the point to be tested. |
Definition at line 102 of file StraightLineFrom2Points.ih.
|
private |
First point through which the straight line passes
Definition at line 179 of file StraightLineFrom2Points.h.
Referenced by DGtal::StraightLineFrom2Points< TPoint >::operator=(), and DGtal::StraightLineFrom2Points< TPoint >::p().
|
private |
Second point through which the straight line passes
Definition at line 183 of file StraightLineFrom2Points.h.
Referenced by DGtal::StraightLineFrom2Points< TPoint >::operator=(), and DGtal::StraightLineFrom2Points< TPoint >::q().