DGtal 1.4.0
|
#include <DGtal/topology/ImplicitDigitalSurface.h>
Public Types | |
typedef Tracker | Self |
typedef ImplicitDigitalSurface< TKSpace, TPointPredicate > | 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 ImplicitDigitalSurface.
Definition at line 78 of file ImplicitDigitalSurface.h.
typedef ImplicitDigitalSurface<TKSpace,TPointPredicate> DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::DigitalSurfaceContainer |
Definition at line 84 of file ImplicitDigitalSurface.h.
typedef TKSpace DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::KSpace |
Definition at line 88 of file ImplicitDigitalSurface.h.
typedef SurfelNeighborhood<KSpace> DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Neighborhood |
Definition at line 89 of file ImplicitDigitalSurface.h.
typedef Tracker DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Self |
Definition at line 82 of file ImplicitDigitalSurface.h.
typedef TKSpace::SCell DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Surfel |
Definition at line 85 of file ImplicitDigitalSurface.h.
DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::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::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Tracker | ( | const Tracker & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::~Tracker | ( | ) |
Destructor.
uint8_t DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::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::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::current | ( | ) | const |
void DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::move | ( | const Surfel & | s | ) |
Moves the tracker to the given valid surfel.
s | the surfel on which the tracker is moved. |
Dimension DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::orthDir | ( | ) | const |
const DigitalSurfaceContainer & DGtal::ImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::surface | ( | ) | const |
|
private |
the current surfel neighborhood, the object that holds the necessary information for determining neighbors.
Definition at line 149 of file ImplicitDigitalSurface.h.
|
private |
a reference to the digital surface container on which is the tracker.
Definition at line 146 of file ImplicitDigitalSurface.h.