|
DGtal
0.6.devel
|
#include <FrechetShortcut.h>
Public Member Functions | |
| Cone () | |
| Cone (double a0, double a1) | |
| Cone (double x, double y, double x0, double y0, double x1, double y1) | |
| bool | isEmpty () |
| Cone & | operator= (const Cone &c) |
| void | intersectCones (Cone c) |
| Cone | intersectConesSimple (Cone c) |
| Cone | symmetricalCone () |
| void | selfDisplay (std::ostream &out) |
Data Fields | |
| double | myMin |
| double | myMax |
| bool | myInf |
Class Cone: data structures and methods to handle the cone update used to test if the width of the shortcut is lower than the error.
Definition at line 253 of file FrechetShortcut.h.
|
inline |
Definition at line 351 of file FrechetShortcut.ih.
|
inline |
Constructor from two angles
| two | angles a0 and a1 |
Definition at line 362 of file FrechetShortcut.ih.
References M_PI.
|
inline |
Constructor from three points x, x0, x1. The cone is defined by the two lines (xx0) and (xx1)
| six | doubles |
Definition at line 408 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Tools::computeAngle().
|
inline |
Intersect two cones: modifies 'this'
| c | a cone to intersect with 'this' |
Definition at line 454 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Cone::isEmpty(), and DGtal::FrechetShortcut< TIterator, TInteger >::Cone::symmetricalCone().
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::computeNewCone().
|
inline |
Intersect two half cones
| c | a cone to intersection with 'this' |
Definition at line 475 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Tools::isBetween(), M_PI, DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myInf, DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMax, and DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMin.
|
inline |
Test if the cone is empty
Definition at line 421 of file FrechetShortcut.ih.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectCones(), DGtal::FrechetShortcut< TIterator, TInteger >::testUpdateWidth(), and DGtal::FrechetShortcut< TIterator, TInteger >::updateWidth().
|
inline |
Assignement
| c | another cone |
Definition at line 434 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myInf, DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMax, and DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMin.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 514 of file FrechetShortcut.ih.
|
inline |
Computes the symmetrical half cone
| c | a cone |
Definition at line 445 of file FrechetShortcut.ih.
References M_PI.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectCones().
| bool DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myInf |
Boolean: true if the cone is infinite
Definition at line 269 of file FrechetShortcut.h.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectConesSimple(), DGtal::FrechetShortcut< TIterator, TInteger >::Cone::operator=(), DGtal::FrechetShortcut< TIterator, TInteger >::testUpdateWidth(), and DGtal::FrechetShortcut< TIterator, TInteger >::updateWidth().
| double DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMax |
Angle max of the cone
Definition at line 264 of file FrechetShortcut.h.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectConesSimple(), DGtal::FrechetShortcut< TIterator, TInteger >::Cone::operator=(), DGtal::FrechetShortcut< TIterator, TInteger >::testUpdateWidth(), and DGtal::FrechetShortcut< TIterator, TInteger >::updateWidth().
| double DGtal::FrechetShortcut< TIterator, TInteger >::Cone::myMin |
Angle min of the cone
Definition at line 259 of file FrechetShortcut.h.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Cone::intersectConesSimple(), DGtal::FrechetShortcut< TIterator, TInteger >::Cone::operator=(), DGtal::FrechetShortcut< TIterator, TInteger >::testUpdateWidth(), and DGtal::FrechetShortcut< TIterator, TInteger >::updateWidth().
1.8.1.1