DGtal 1.4.0
|
Aim: The digital surface container concept describes a minimal set of inner types and methods so as to describe the data of digital surfaces. More...
#include <DGtal/topology/CDigitalSurfaceContainer.h>
Public Types | |
typedef T::KSpace | KSpace |
typedef T::Surfel | Surfel |
typedef T::SurfelConstIterator | SurfelConstIterator |
typedef T::DigitalSurfaceTracker | DigitalSurfaceTracker |
typedef T::Size | Size |
Private Attributes | |
T | myX |
KSpace | myKSpace |
Surfel | mySurfel |
bool | myBool |
SurfelConstIterator | mySurfelCIt |
DigitalSurfaceTracker * | myPtrTracker |
Connectedness | myConnectedness |
Size | mySize |
Aim: The digital surface container concept describes a minimal set of inner types and methods so as to describe the data of digital surfaces.
Description of concept 'CDigitalSurfaceContainer'
Digital surfaces arise in many different contexts:
Since there are so many digital surfaces, it is necessary to provide a mechanism to handle them generically. The class DigitalSurface will be the common proxy to hide models of CDigitalSurfaceContainer.
Hence CDigitalSurfaceContainer describes how to access the data representing the digital surface in common way.
See Models of digital surface containers
X
: A type that is a model of CDigitalSurfaceContainerx
: object of type Xs
: object of type SurfelName | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
space accessor | x.space() | const KSpace & | returns a reference to the cellular grid space in which lies the digital surface. | ||||
inside test | x.isInside( s ) | bool | returns true iff the surfel s belongs to this digital surface. | ||||
begin of range | x.begin() | SurfelConstIterator | returns a const iterator pointing to the first element in the digital surface, seen as a collection of surfels. | ||||
end of range | x.end() | SurfelConstIterator | returns an iterator pointing past the last element in the digital surface, seen as a collection of surfels. | ||||
tracker instanciation | x.newTracker( s ) | DigitalSurfaceTracker* | returns a dynamically allocated instance of tracker initialized at the surfel s. | ||||
connectedness test | x.connectedness() | enum Connectedness | returns either DISCONNECTED, CONNECTED, UNKNOWN depending on the surface. | ||||
number of surfels | x.nbSurfels() | Size | returns the number of surfels of this surface. | ||||
empty container test | x.empty() | bool | returns true iff the digital surface contains no surfel. |
T | the type that should be a model of CDigitalSurfaceContainer. |
Definition at line 127 of file CDigitalSurfaceContainer.h.
typedef T::DigitalSurfaceTracker DGtal::concepts::CDigitalSurfaceContainer< T >::DigitalSurfaceTracker |
Definition at line 134 of file CDigitalSurfaceContainer.h.
typedef T::KSpace DGtal::concepts::CDigitalSurfaceContainer< T >::KSpace |
Definition at line 131 of file CDigitalSurfaceContainer.h.
typedef T::Size DGtal::concepts::CDigitalSurfaceContainer< T >::Size |
Definition at line 135 of file CDigitalSurfaceContainer.h.
typedef T::Surfel DGtal::concepts::CDigitalSurfaceContainer< T >::Surfel |
Definition at line 132 of file CDigitalSurfaceContainer.h.
typedef T::SurfelConstIterator DGtal::concepts::CDigitalSurfaceContainer< T >::SurfelConstIterator |
Definition at line 133 of file CDigitalSurfaceContainer.h.
DGtal::concepts::CDigitalSurfaceContainer< T >::BOOST_CONCEPT_ASSERT | ( | (boost_concepts::ReadableIteratorConcept< SurfelConstIterator >) | ) |
DGtal::concepts::CDigitalSurfaceContainer< T >::BOOST_CONCEPT_ASSERT | ( | (boost_concepts::SinglePassIteratorConcept< SurfelConstIterator >) | ) |
DGtal::concepts::CDigitalSurfaceContainer< T >::BOOST_CONCEPT_ASSERT | ( | (CDigitalSurfaceTracker< DigitalSurfaceTracker >) | ) |
DGtal::concepts::CDigitalSurfaceContainer< T >::BOOST_CONCEPT_ASSERT | ( | (concepts::CCellularGridSpaceND< KSpace >) | ) |
|
inline |
Definition at line 143 of file CDigitalSurfaceContainer.h.
References DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
inline |
Definition at line 148 of file CDigitalSurfaceContainer.h.
References DGtal::concepts::CDigitalSurfaceContainer< T >::myBool, DGtal::concepts::CDigitalSurfaceContainer< T >::myConnectedness, DGtal::concepts::CDigitalSurfaceContainer< T >::myKSpace, DGtal::concepts::CDigitalSurfaceContainer< T >::myPtrTracker, DGtal::concepts::CDigitalSurfaceContainer< T >::mySize, DGtal::concepts::CDigitalSurfaceContainer< T >::mySurfel, DGtal::concepts::CDigitalSurfaceContainer< T >::mySurfelCIt, DGtal::concepts::CDigitalSurfaceContainer< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 172 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 175 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 170 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 174 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 176 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 171 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 173 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().
|
private |
Definition at line 169 of file CDigitalSurfaceContainer.h.
Referenced by DGtal::concepts::CDigitalSurfaceContainer< T >::checkConstConstraints().