DGtal 1.4.0
|
#include <DGtal/topology/LightExplicitDigitalSurface.h>
Public Types | |
typedef Tracker | Self |
typedef LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > | DigitalSurfaceContainer |
typedef TKSpace::SCell | Surfel |
typedef TKSpace | KSpace |
typedef SurfelNeighborhood< KSpace > | Neighborhood |
Public Member Functions | |
Tracker (ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s) | |
Tracker (const Tracker &other) | |
~Tracker () | |
const DigitalSurfaceContainer & | surface () const |
const Surfel & | current () const |
Dimension | orthDir () const |
void | move (const Surfel &s) |
uint8_t | adjacent (Surfel &s, Dimension d, bool pos) const |
Private Attributes | |
const DigitalSurfaceContainer & | mySurface |
Neighborhood | myNeighborhood |
A model of CDigitalSurfaceTracker for LightExplicitDigitalSurface.
Definition at line 125 of file LightExplicitDigitalSurface.h.
typedef LightExplicitDigitalSurface<TKSpace,TSurfelPredicate> DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::DigitalSurfaceContainer |
Definition at line 131 of file LightExplicitDigitalSurface.h.
typedef TKSpace DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::KSpace |
Definition at line 135 of file LightExplicitDigitalSurface.h.
typedef SurfelNeighborhood<KSpace> DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::Neighborhood |
Definition at line 136 of file LightExplicitDigitalSurface.h.
typedef Tracker DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::Self |
Definition at line 129 of file LightExplicitDigitalSurface.h.
typedef TKSpace::SCell DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::Surfel |
Definition at line 132 of file LightExplicitDigitalSurface.h.
DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::Tracker | ( | ConstAlias< DigitalSurfaceContainer > | aSurface, |
const Surfel & | s ) |
Constructor from surface container and surfel.
aSurface | the container describing the surface. |
s | the surfel on which the tracker is initialized. |
DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::Tracker | ( | const Tracker & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::~Tracker | ( | ) |
Destructor.
uint8_t DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::adjacent | ( | Surfel & | s, |
Dimension | d, | ||
bool | pos ) const |
Computes the surfel adjacent to 'current()' in the direction [d] along orientation [pos].
s | (modified) set to the adjacent surfel in the specified direction d and orientation pos if it exists. Otherwise unchanged (method returns 0 in this case). |
d | any direction different from 'orthDir()'. |
pos | when 'true' look in positive direction along [track_dir] axis, 'false' look in negative direction. |
const Surfel & DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::current | ( | ) | const |
void DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::move | ( | const Surfel & | s | ) |
Moves the tracker to the given valid surfel.
s | the surfel on which the tracker is moved. |
Dimension DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::orthDir | ( | ) | const |
const DigitalSurfaceContainer & DGtal::LightExplicitDigitalSurface< TKSpace, TSurfelPredicate >::Tracker::surface | ( | ) | const |
|
private |
the current surfel neighborhood, the object that holds the necessary information for determining neighbors.
Definition at line 196 of file LightExplicitDigitalSurface.h.
|
private |
a reference to the digital surface container on which is the tracker.
Definition at line 193 of file LightExplicitDigitalSurface.h.