DGtal
1.5.beta
|
#include <DGtal/topology/LightImplicitDigitalSurface.h>
Public Types | |
typedef Tracker | Self |
typedef LightImplicitDigitalSurface< 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 LightImplicitDigitalSurface.
Definition at line 122 of file LightImplicitDigitalSurface.h.
typedef LightImplicitDigitalSurface<TKSpace,TPointPredicate> DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::DigitalSurfaceContainer |
Definition at line 128 of file LightImplicitDigitalSurface.h.
typedef TKSpace DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::KSpace |
Definition at line 132 of file LightImplicitDigitalSurface.h.
typedef SurfelNeighborhood<KSpace> DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Neighborhood |
Definition at line 133 of file LightImplicitDigitalSurface.h.
typedef Tracker DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Self |
Definition at line 126 of file LightImplicitDigitalSurface.h.
typedef TKSpace::SCell DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Surfel |
Definition at line 129 of file LightImplicitDigitalSurface.h.
DGtal::LightImplicitDigitalSurface< 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::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Tracker | ( | const Tracker & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::~Tracker | ( | ) |
Destructor.
uint8_t DGtal::LightImplicitDigitalSurface< 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::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::current | ( | ) | const |
void DGtal::LightImplicitDigitalSurface< 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::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::orthDir | ( | ) | const |
const DigitalSurfaceContainer& DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::surface | ( | ) | const |
|
private |
the current surfel neighborhood, the object that holds the necessary information for determining neighbors.
Definition at line 193 of file LightImplicitDigitalSurface.h.
|
private |
a reference to the digital surface container on which is the tracker.
Definition at line 190 of file LightImplicitDigitalSurface.h.