DGtal 1.3.0
|
#include <DGtal/geometry/curves/FrechetShortcut.h>
Data Structures | |
struct | occulter_attributes |
Public Types | |
typedef boost::icl::interval_set< double > | IntervalSet |
Public Member Functions | |
Backpath () | |
Backpath (const FrechetShortcut< ConstIterator, Integer > *s, int q) | |
Backpath (const Backpath &other) | |
Backpath & | operator= (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 |
IntervalSet | myForbiddenIntervals |
ConstIterator | myIt |
Protected Types | |
typedef struct DGtal::FrechetShortcut::Backpath::occulter_attributes | occulter_attributes |
typedef std::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.
typedef boost::icl::interval_set<double> DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::IntervalSet |
Definition at line 164 of file FrechetShortcut.h.
|
protected |
Attributes of occulter points: angles min and max for which 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.
DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::Backpath | ( | ) |
Default constructor
DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::Backpath | ( | const FrechetShortcut< ConstIterator, Integer > * | s, |
int | q | ||
) |
Constructor
s | to a shortcut s |
q | q |
DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::Backpath | ( | const Backpath & | other | ) |
Copy constructor
other | a backpath |
DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::~Backpath | ( | ) |
Destructor
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::addNegativePoint | ( | ) |
Updates the backpath when a negative poitn is added
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::addPositivePoint | ( | ) |
Updates the backpath when a positive point is added
Backpath & DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::operator= | ( | const Backpath & | other | ) |
Assignement
other | another backpath |
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::reset | ( | ) |
Resets the backpath (myFlag, myOcculters)
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::updateBackPathFirstQuad | ( | int | d, |
const ConstIterator & | |||
) |
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.
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::updateIntervals | ( | ) |
Updates the list of intervals
void DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::updateOcculters | ( | ) |
Updates the list of occulters
|
friend |
Definition at line 156 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 175 of file FrechetShortcut.h.
IntervalSet 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 183 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 188 of file FrechetShortcut.h.
occulter_list DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myOcculters |
Definition at line 177 of file FrechetShortcut.h.
int DGtal::FrechetShortcut< TIterator, TInteger >::Backpath::myQuad |
Octant of work
Definition at line 169 of file FrechetShortcut.h.
|
private |
Pointer to the FrechetShortcut
Definition at line 139 of file FrechetShortcut.h.