DGtal
0.6.devel
|
#include <SetOfSurfels.h>
Data Structures | |
class | Tracker |
Public Types | |
typedef SetOfSurfels< TKSpace, TSurfelSet > | Self |
typedef TKSpace | KSpace |
typedef KSpace::SCell | Surfel |
typedef KSpace::Size | Size |
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 SurfelSetPredicate < SurfelSet, Surfel > | SurfelPredicate |
Public Member Functions | |
~SetOfSurfels () | |
SetOfSurfels (const SetOfSurfels &other) | |
SetOfSurfels (const KSpace &aKSpace, const Adjacency &adj, SurfelSet aSetOfSurfels=SurfelSet()) | |
SurfelSet & | surfelSet () |
const SurfelSet & | surfelSet () const |
const Adjacency & | surfelAdjacency () const |
Adjacency & | surfelAdjacency () |
const SurfelPredicate & | surfelPredicate () const |
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 |
SurfelSet | mySurfelSet |
SurfelPredicate | mySurfelPredicate |
Adjacency | mySurfelAdjacency |
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 72 of file SetOfSurfels.h.
typedef SurfelAdjacency<KSpace::dimension> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Adjacency |
Definition at line 176 of file SetOfSurfels.h.
typedef KSpace::Cell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Cell |
Definition at line 177 of file SetOfSurfels.h.
typedef KSpace::CellSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::CellSet |
Definition at line 179 of file SetOfSurfels.h.
typedef Tracker DGtal::SetOfSurfels< TKSpace, TSurfelSet >::DigitalSurfaceTracker |
Definition at line 172 of file SetOfSurfels.h.
typedef TKSpace DGtal::SetOfSurfels< TKSpace, TSurfelSet >::KSpace |
Model of cellular grid space.
Definition at line 157 of file SetOfSurfels.h.
typedef KSpace::Point DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Point |
Definition at line 171 of file SetOfSurfels.h.
typedef KSpace::SCell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SCell |
Definition at line 178 of file SetOfSurfels.h.
typedef KSpace::SCellSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SCellSet |
Definition at line 180 of file SetOfSurfels.h.
typedef SetOfSurfels<TKSpace,TSurfelSet> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Self |
Definition at line 155 of file SetOfSurfels.h.
typedef KSpace::Size DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Size |
Type for sizes (unsigned integral type).
Definition at line 161 of file SetOfSurfels.h.
typedef KSpace::Space DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Space |
Definition at line 170 of file SetOfSurfels.h.
typedef KSpace::SCell DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Surfel |
Type for surfels.
Definition at line 159 of file SetOfSurfels.h.
typedef SurfelSet::const_iterator DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelConstIterator |
Definition at line 169 of file SetOfSurfels.h.
typedef SurfelSetPredicate<SurfelSet, Surfel> DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelPredicate |
Definition at line 181 of file SetOfSurfels.h.
typedef TSurfelSet DGtal::SetOfSurfels< TKSpace, TSurfelSet >::SurfelSet |
Definition at line 163 of file SetOfSurfels.h.
|
inline |
|
inline |
Copy constructor.
other | the object to clone. |
NB: Complexity depends on the type chosen for SurfelSet.
Definition at line 127 of file SetOfSurfels.ih.
|
inline |
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.
Definition at line 138 of file SetOfSurfels.ih.
|
inline |
Definition at line 213 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
inline |
Definition at line 254 of file SetOfSurfels.ih.
References DGtal::UNKNOWN.
|
inline |
Definition at line 237 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
inline |
Definition at line 221 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
inline |
s | any surfel of the space. |
Definition at line 205 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelPredicate.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Tracker::move().
|
inline |
Checks the validity/consistency of the object.
Definition at line 283 of file SetOfSurfels.ih.
|
inline |
Definition at line 229 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
inline |
s | any surfel of the space. |
Definition at line 246 of file SetOfSurfels.ih.
|
private |
Assignment.
other | the object to copy. |
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 271 of file SetOfSurfels.ih.
|
inline |
Definition at line 196 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::myKSpace.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Tracker::Tracker().
|
inline |
accessor to surfel adjacency.
Definition at line 168 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelAdjacency.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Tracker::Tracker().
|
inline |
mutator to surfel adjacency.
Definition at line 176 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelAdjacency.
|
inline |
accessor to surfel predicate.
Definition at line 185 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelPredicate.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::Tracker::adjacent().
|
inline |
Definition at line 150 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
inline |
Definition at line 159 of file SetOfSurfels.ih.
References DGtal::SetOfSurfels< TKSpace, TSurfelSet >::mySurfelSet.
|
private |
a reference to the cellular space.
Definition at line 287 of file SetOfSurfels.h.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::space().
|
private |
the surfel adjacency used to determine neighbors.
Definition at line 293 of file SetOfSurfels.h.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelAdjacency().
|
private |
the surfel predicate defining the shape (related to mySurfelSet).
Definition at line 291 of file SetOfSurfels.h.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::isInside(), and DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelPredicate().
|
private |
the set of surfels
Definition at line 289 of file SetOfSurfels.h.
Referenced by DGtal::SetOfSurfels< TKSpace, TSurfelSet >::begin(), DGtal::SetOfSurfels< TKSpace, TSurfelSet >::empty(), DGtal::SetOfSurfels< TKSpace, TSurfelSet >::end(), DGtal::SetOfSurfels< TKSpace, TSurfelSet >::nbSurfels(), and DGtal::SetOfSurfels< TKSpace, TSurfelSet >::surfelSet().