DGtal
0.6.devel
|
#include <FrechetShortcut.h>
Data Structures | |
struct | occulter_attributes |
Public Member Functions | |
Backpath () | |
Backpath (const FrechetShortcut< ConstIterator, Integer > *s, int q) | |
Backpath (const Backpath &other) | |
~Backpath () | |
void | reset () |
void | addPositivePoint () |
void | addNegativePoint () |
void | updateBackPathFirstQuad (int d, const ConstIterator &) |
void | updateOcculters () |
void | updateIntervals () |
Data Fields | |
int | myQuad |
bool | myFlag |
occulter_list | myOcculters |
boost::icl::interval_set< double > | myForbiddenIntervals |
ConstIterator | myIt |
Protected Types | |
typedef struct DGtal::FrechetShortcut::Backpath::occulter_attributes | occulter_attributes |
typedef map< ConstIterator, occulter_attributes > | occulter_list |
Private Attributes | |
const FrechetShortcut < ConstIterator, Integer > * | myS |
Friends | |
class | FrechetShortcut< ConstIterator, Integer > |
Class backpath: data structures and methods to handle the backpath update
Definition at line 133 of file FrechetShortcut.h.
|
protected |
Attributes of occulter points: angles min and max for chich the point is an occulter
|
protected |
Map between the point and their attributes if they are occulters
Definition at line 156 of file FrechetShortcut.h.
|
inline |
Default constructor
Definition at line 47 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myFlag, and DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myQuad.
|
inline |
Constructor
pointer | to a shortcut s |
quadrant | q |
Definition at line 57 of file FrechetShortcut.ih.
|
inline |
Copy constructor
other | a backpath |
Definition at line 63 of file FrechetShortcut.ih.
|
inline |
|
inline |
Updates the backpath when a negative poitn is added
Definition at line 315 of file FrechetShortcut.ih.
|
inline |
Updates the backpath when a positive point is added
Definition at line 298 of file FrechetShortcut.ih.
|
inline |
Resets the backpath (myFlag, myOcculters)
Definition at line 71 of file FrechetShortcut.ih.
|
inline |
General update procedure: call to addNegativePoint or addPositivePoint according to the point *myIt. Each octant is treated as if it was the first one, the chain code between *myIt-1 and *myIt is rotated accordingly.
Definition at line 87 of file FrechetShortcut.ih.
|
inline |
Updates the list of intervals
Definition at line 246 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Tools::angleVectVect(), DGtal::FrechetShortcut< TIterator, TInteger >::Tools::chainCode2Vect(), DGtal::IntegerComputer< TInteger >::crossProduct(), and DGtal::IntegerComputer< TInteger >::dotProduct().
|
inline |
Updates the list of occulters
Definition at line 116 of file FrechetShortcut.ih.
References DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::occulter_attributes::angle_max, DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::occulter_attributes::angle_min, DGtal::FrechetShortcut< TIterator, TInteger >::Tools::angleVectVect(), DGtal::FrechetShortcut< TIterator, TInteger >::Tools::chainCode2Vect(), DGtal::IntegerComputer< TInteger >::dotProduct(), and M_PI.
|
friend |
Definition at line 159 of file FrechetShortcut.h.
bool DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myFlag |
Current state myFlag=true if we are on a backpath, false otherwise
Definition at line 173 of file FrechetShortcut.h.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::Backpath().
boost::icl::interval_set<double> DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myForbiddenIntervals |
List of forbidden intervals: intervals of angle for which there exist a backpath of length greater than the error
Definition at line 181 of file FrechetShortcut.h.
ConstIterator DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myIt |
pointer to the next point to be scanned: set to myEnd + 1
Definition at line 186 of file FrechetShortcut.h.
occulter_list DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myOcculters |
Definition at line 175 of file FrechetShortcut.h.
int DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myQuad |
Octant of work
Definition at line 167 of file FrechetShortcut.h.
Referenced by DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::Backpath().
|
private |
Pointer to the FrechetShortcut
Definition at line 139 of file FrechetShortcut.h.