DGtal
0.6.devel
|
#include <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 (const 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 83 of file LightImplicitDigitalSurface.h.
typedef LightImplicitDigitalSurface<TKSpace,TPointPredicate> DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::DigitalSurfaceContainer |
Definition at line 89 of file LightImplicitDigitalSurface.h.
typedef TKSpace DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::KSpace |
Definition at line 93 of file LightImplicitDigitalSurface.h.
typedef SurfelNeighborhood<KSpace> DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Neighborhood |
Definition at line 94 of file LightImplicitDigitalSurface.h.
typedef Tracker DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Self |
Definition at line 87 of file LightImplicitDigitalSurface.h.
typedef TKSpace::SCell DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Surfel |
Definition at line 90 of file LightImplicitDigitalSurface.h.
|
inline |
Constructor from surface container and surfel.
aSurface | the container describing the surface. |
s | the surfel on which the tracker is initialized. |
Definition at line 52 of file LightImplicitDigitalSurface.ih.
References DGtal::SurfelNeighborhood< TKSpace >::init(), DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::myNeighborhood, DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::space(), DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::surface(), and DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::surfelAdjacency().
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 64 of file LightImplicitDigitalSurface.ih.
|
inline |
|
inline |
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. |
Definition at line 112 of file LightImplicitDigitalSurface.ih.
References DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::pointPredicate().
Referenced by DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::degree(), and DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::writeNeighbors().
|
inline |
Definition at line 84 of file LightImplicitDigitalSurface.ih.
|
inline |
Moves the tracker to the given valid surfel.
s | the surfel on which the tracker is moved. |
Definition at line 102 of file LightImplicitDigitalSurface.ih.
References DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::isInside().
Referenced by DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::degree(), and DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::writeNeighbors().
|
inline |
Definition at line 93 of file LightImplicitDigitalSurface.ih.
|
inline |
Definition at line 74 of file LightImplicitDigitalSurface.ih.
Referenced by DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Tracker().
|
private |
the current surfel neighborhood, the object that holds the necessary information for determining neighbors.
Definition at line 154 of file LightImplicitDigitalSurface.h.
Referenced by DGtal::LightImplicitDigitalSurface< TKSpace, TPointPredicate >::Tracker::Tracker().
|
private |
a reference to the digital surface container on which is the tracker.
Definition at line 151 of file LightImplicitDigitalSurface.h.