DGtal
1.4.2
|
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels. The shape is determined by the set of surfels that composed the surface. The set of surfels is stored in this container. More...
#include <DGtal/topology/SetOfSurfels.h>
Data Structures | |
class | Tracker |
Public Types | |
typedef SetOfSurfels< TKSpace, TSurfelSet > | Self |
typedef TKSpace | KSpace |
Model of cellular grid space. More... | |
typedef KSpace::SCell | Surfel |
Type for surfels. More... | |
typedef KSpace::Size | Size |
Type for sizes (unsigned integral type). More... | |
typedef TSurfelSet | SurfelSet |
typedef SurfelSet::const_iterator | SurfelConstIterator |
typedef KSpace::Space | Space |
typedef KSpace::Point | Point |
typedef Tracker | DigitalSurfaceTracker |
typedef SurfelAdjacency< KSpace::dimension > | Adjacency |
typedef KSpace::Cell | Cell |
typedef KSpace::SCell | SCell |
typedef KSpace::CellSet | CellSet |
typedef KSpace::SCellSet | SCellSet |
typedef functors::SurfelSetPredicate< SurfelSet, Surfel > | SurfelPredicate |
Public Member Functions | |
~SetOfSurfels () | |
SetOfSurfels (const SetOfSurfels &other) | |
SetOfSurfels (ConstAlias< KSpace > aKSpace, const Adjacency &adj, SurfelSet aSetOfSurfels=SurfelSet()) | |
SurfelSet & | surfelSet () |
const SurfelSet & | surfelSet () const |
const Adjacency & | surfelAdjacency () const |
accessor to surfel adjacency. More... | |
Adjacency & | surfelAdjacency () |
mutator to surfel adjacency. More... | |
const SurfelPredicate & | surfelPredicate () const |
accessor to surfel predicate. 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 |
Private Member Functions | |
SetOfSurfels & | operator= (const SetOfSurfels &other) |
Private Attributes | |
const KSpace & | myKSpace |
a reference to the cellular space. More... | |
SurfelSet | mySurfelSet |
the set of surfels More... | |
SurfelPredicate | mySurfelPredicate |
the surfel predicate defining the shape (related to mySurfelSet). More... | |
Adjacency | mySurfelAdjacency |
the surfel adjacency used to determine neighbors. More... | |
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels. The shape is determined by the set of surfels that composed the surface. The set of surfels is stored in this container.
Description of template class 'SetOfSurfels'
TKSpace | a model of CCellularGridSpaceND: the type chosen for the cellular grid space. |
TSurfelSet | a model of CSurfelSet: the type chosen for representing the set of surfels in the space. |
Definition at line 73 of file SetOfSurfels.h.
typedef SurfelAdjacency<KSpace::dimension> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Adjacency |
Definition at line 177 of file SetOfSurfels.h.
typedef KSpace::Cell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Cell |
Definition at line 178 of file SetOfSurfels.h.
typedef KSpace::CellSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::CellSet |
Definition at line 180 of file SetOfSurfels.h.
typedef Tracker DGtal::SetOfSurfels< TKSpace, TSurfelSet >::DigitalSurfaceTracker |
Definition at line 173 of file SetOfSurfels.h.
typedef TKSpace DGtal::SetOfSurfels< TKSpace, TSurfelSet >::KSpace |
Model of cellular grid space.
Definition at line 158 of file SetOfSurfels.h.
typedef KSpace::Point DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Point |
Definition at line 172 of file SetOfSurfels.h.
typedef KSpace::SCell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SCell |
Definition at line 179 of file SetOfSurfels.h.
typedef KSpace::SCellSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SCellSet |
Definition at line 181 of file SetOfSurfels.h.
typedef SetOfSurfels<TKSpace,TSurfelSet> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Self |
Definition at line 156 of file SetOfSurfels.h.
typedef KSpace::Size DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Size |
Type for sizes (unsigned integral type).
Definition at line 162 of file SetOfSurfels.h.
typedef KSpace::Space DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Space |
Definition at line 171 of file SetOfSurfels.h.
typedef KSpace::SCell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Surfel |
Type for surfels.
Definition at line 160 of file SetOfSurfels.h.
typedef SurfelSet::const_iterator DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelConstIterator |
Definition at line 170 of file SetOfSurfels.h.
typedef functors::SurfelSetPredicate<SurfelSet, Surfel> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelPredicate |
Definition at line 182 of file SetOfSurfels.h.
typedef TSurfelSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelSet |
Definition at line 164 of file SetOfSurfels.h.
DGtal::SetOfSurfels< TKSpace, TSurfelSet >::~SetOfSurfels | ( | ) |
Destructor.
DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SetOfSurfels | ( | const SetOfSurfels< TKSpace, TSurfelSet > & | other | ) |
Copy constructor.
other | the object to clone. |
NB: Complexity depends on the type chosen for SurfelSet.
DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SetOfSurfels | ( | ConstAlias< KSpace > | aKSpace, |
const Adjacency & | adj, | ||
SurfelSet | aSetOfSurfels = SurfelSet() |
||
) |
Constructor from digital set.
aKSpace | a cellular grid space (referenced). |
adj | the surfel adjacency (for instance Adjacency( true ) is interior to exterior adjacency ). |
aSetOfSurfels | any set of surfels that is cloned in this object (default is empty) |
NB: Complexity depends on the type chosen for SurfelSet.
SurfelConstIterator DGtal::SetOfSurfels< TKSpace, TSurfelSet >::begin | ( | ) | const |
Connectedness DGtal::SetOfSurfels< TKSpace, TSurfelSet >::connectedness | ( | ) | const |
bool DGtal::SetOfSurfels< TKSpace, TSurfelSet >::empty | ( | ) | const |
SurfelConstIterator DGtal::SetOfSurfels< TKSpace, TSurfelSet >::end | ( | ) | const |
bool DGtal::SetOfSurfels< TKSpace, TSurfelSet >::isInside | ( | const Surfel & | s | ) | const |
s | any surfel of the space. |
bool DGtal::SetOfSurfels< TKSpace, TSurfelSet >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Size DGtal::SetOfSurfels< TKSpace, TSurfelSet >::nbSurfels | ( | ) | const |
DigitalSurfaceTracker* DGtal::SetOfSurfels< TKSpace, TSurfelSet >::newTracker | ( | const Surfel & | s | ) | const |
s | any surfel of the space. |
|
private |
Assignment.
other | the object to copy. |
void DGtal::SetOfSurfels< TKSpace, TSurfelSet >::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::SetOfSurfels< TKSpace, TSurfelSet >::space | ( | ) | const |
Adjacency& DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelAdjacency | ( | ) |
mutator to surfel adjacency.
const Adjacency& DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelAdjacency | ( | ) | const |
accessor to surfel adjacency.
const SurfelPredicate& DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelPredicate | ( | ) | const |
accessor to surfel predicate.
SurfelSet& DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelSet | ( | ) |
const SurfelSet& DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelSet | ( | ) | const |
|
private |
a reference to the cellular space.
Definition at line 288 of file SetOfSurfels.h.
|
private |
the surfel adjacency used to determine neighbors.
Definition at line 294 of file SetOfSurfels.h.
|
private |
the surfel predicate defining the shape (related to mySurfelSet).
Definition at line 292 of file SetOfSurfels.h.
|
private |
the set of surfels
Definition at line 290 of file SetOfSurfels.h.