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