DGtal
1.5.beta
|
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of a given digital set. More...
#include <DGtal/topology/DigitalSetBoundary.h>
Data Structures | |
class | Tracker |
Public Types | |
typedef DigitalSetBoundary< TKSpace, TDigitalSet > | Self |
typedef TKSpace | KSpace |
typedef KSpace::SCell | Surfel |
typedef KSpace::Size | Size |
typedef TDigitalSet | DigitalSet |
typedef std::vector< Surfel > | SurfelStorage |
typedef SurfelStorage::const_iterator | SurfelConstIterator |
typedef KSpace::Space | Space |
typedef DigitalSet::Domain | Domain |
typedef DigitalSet::Point | Point |
typedef Tracker | DigitalSurfaceTracker |
typedef SurfelAdjacency< KSpace::dimension > | Adjacency |
typedef KSpace::Cell | Cell |
typedef KSpace::SCell | SCell |
Public Member Functions | |
~DigitalSetBoundary () | |
DigitalSetBoundary (const DigitalSetBoundary &other) | |
DigitalSetBoundary (ConstAlias< KSpace > aKSpace, const DigitalSet &aSet, const Adjacency &adj=Adjacency(true)) | |
const Adjacency & | surfelAdjacency () const |
accessor to surfel adjacency. More... | |
Adjacency & | surfelAdjacency () |
mutator to surfel adjacency. More... | |
const DigitalSet & | digitalSet () const |
accessor to digital set More... | |
const KSpace & | space () const |
bool | isInside (const Surfel &s) const |
SurfelConstIterator | begin () const |
SurfelConstIterator | end () const |
Size | nbSurfels () const |
bool | empty () const |
DigitalSurfaceTracker * | newTracker (const Surfel &s) const |
Connectedness | connectedness () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
void | computeSurfels () |
Private Member Functions | |
DigitalSetBoundary & | operator= (const DigitalSetBoundary &other) |
Private Attributes | |
const KSpace & | myKSpace |
a reference to the cellular space. More... | |
DigitalSet | myDigitalSet |
a smart pointer to some digital set. More... | |
Adjacency | mySurfelAdjacency |
the surfel adjacency used to determine neighbors. More... | |
SurfelStorage | mySurfels |
a vector storing all the surfels of the boundary. More... | |
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of a given digital set.
Description of template class 'DigitalSetBoundary'
TKSpace | a model of CCellularGridSpaceND: the type chosen for the cellular grid space. |
TDigitalSet | a model of CDigitalSet: the type chosen for the set of digital points. |
Definition at line 69 of file DigitalSetBoundary.h.
typedef SurfelAdjacency<KSpace::dimension> DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Adjacency |
Definition at line 166 of file DigitalSetBoundary.h.
typedef KSpace::Cell DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Cell |
Definition at line 167 of file DigitalSetBoundary.h.
typedef TDigitalSet DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::DigitalSet |
Definition at line 156 of file DigitalSetBoundary.h.
typedef Tracker DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::DigitalSurfaceTracker |
Definition at line 162 of file DigitalSetBoundary.h.
typedef DigitalSet::Domain DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Domain |
Definition at line 160 of file DigitalSetBoundary.h.
typedef TKSpace DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::KSpace |
Definition at line 153 of file DigitalSetBoundary.h.
typedef DigitalSet::Point DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Point |
Definition at line 161 of file DigitalSetBoundary.h.
typedef KSpace::SCell DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::SCell |
Definition at line 168 of file DigitalSetBoundary.h.
typedef DigitalSetBoundary<TKSpace,TDigitalSet> DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Self |
Definition at line 152 of file DigitalSetBoundary.h.
typedef KSpace::Size DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Size |
Definition at line 155 of file DigitalSetBoundary.h.
typedef KSpace::Space DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Space |
Definition at line 159 of file DigitalSetBoundary.h.
typedef KSpace::SCell DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::Surfel |
Definition at line 154 of file DigitalSetBoundary.h.
typedef SurfelStorage::const_iterator DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::SurfelConstIterator |
Definition at line 158 of file DigitalSetBoundary.h.
typedef std::vector<Surfel> DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::SurfelStorage |
Definition at line 157 of file DigitalSetBoundary.h.
DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::~DigitalSetBoundary | ( | ) |
Destructor.
DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::DigitalSetBoundary | ( | const DigitalSetBoundary< TKSpace, TDigitalSet > & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::DigitalSetBoundary | ( | ConstAlias< KSpace > | aKSpace, |
const DigitalSet & | aSet, | ||
const Adjacency & | adj = Adjacency(true) |
||
) |
Constructor from digital set.
aKSpace | a cellular grid space (referenced). |
aSet | a set of points that is duplicated in 'this'. |
adj | the surfel adjacency (default is interior to exterior adjacency ). |
SurfelConstIterator DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::begin | ( | ) | const |
|
protected |
Recomputes the set of boundary surfels from the set of points.
Connectedness DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::connectedness | ( | ) | const |
const DigitalSet& DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::digitalSet | ( | ) | const |
accessor to digital set
bool DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::empty | ( | ) | const |
SurfelConstIterator DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::end | ( | ) | const |
bool DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::isInside | ( | const Surfel & | s | ) | const |
s | any surfel of the space. |
bool DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Size DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::nbSurfels | ( | ) | const |
DigitalSurfaceTracker* DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::newTracker | ( | const Surfel & | s | ) | const |
s | any surfel of the space. |
|
private |
Assignment.
other | the object to copy. |
void DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
const KSpace& DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::space | ( | ) | const |
Adjacency& DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::surfelAdjacency | ( | ) |
mutator to surfel adjacency.
const Adjacency& DGtal::DigitalSetBoundary< TKSpace, TDigitalSet >::surfelAdjacency | ( | ) | const |
accessor to surfel adjacency.
|
private |
a smart pointer to some digital set.
Definition at line 264 of file DigitalSetBoundary.h.
|
private |
a reference to the cellular space.
Definition at line 262 of file DigitalSetBoundary.h.
|
private |
the surfel adjacency used to determine neighbors.
Definition at line 266 of file DigitalSetBoundary.h.
|
private |
a vector storing all the surfels of the boundary.
Definition at line 268 of file DigitalSetBoundary.h.