DGtal
1.5.beta
|
#include <DGtal/topology/IndexedDigitalSurface.h>
Public Types | |
typedef Index | Argument |
typedef TData | Data |
typedef std::vector< Data > | Storage |
Public Member Functions | |
IndexedPropertyMap () | |
Default constructor. The object is invalid. More... | |
IndexedPropertyMap (const Self &aSurface, Size s, Data def_data=Data()) | |
IndexedPropertyMap (const Self &aSurface, Storage &aStorage) | |
const Self & | surface () const |
const Data & | operator() (Argument v) const |
const Data & | operator[] (Argument v) const |
Data & | operator[] (Argument v) |
bool | isValid () const |
Size | size () const |
Storage & | storage () |
const Storage & | storage () const |
Private Attributes | |
const Self * | mySurface |
The associated indexed digital surface. More... | |
OwningOrAliasingPtr< Storage > | myData |
An owned or aliased pointer to the vector of data. More... | |
This structure is used to define efficient maps between vertices and any data specified by type TData. The indexed digital surface provides a default vertex map for vertex positions.
TData | the value type for the map. |
Definition at line 149 of file IndexedDigitalSurface.h.
typedef Index DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::Argument |
Definition at line 150 of file IndexedDigitalSurface.h.
typedef TData DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::Data |
Definition at line 151 of file IndexedDigitalSurface.h.
typedef std::vector<Data> DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::Storage |
Definition at line 152 of file IndexedDigitalSurface.h.
|
inline |
Default constructor. The object is invalid.
Definition at line 155 of file IndexedDigitalSurface.h.
|
inline |
Creates an empty vertex property map
aSurface | the corresponding indexed digital surface. |
s | one more than the maximal allowed index (i.e. nb of elements). |
def_data | the default value at initialization. |
Definition at line 161 of file IndexedDigitalSurface.h.
|
inline |
Creates the IndexedPropertyMap that points to one that exists already.
aSurface | the corresponding indexed digital surface. |
aStorage | the map to reference in this property map. |
Definition at line 173 of file IndexedDigitalSurface.h.
|
inline |
Definition at line 214 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::mySurface.
Referenced by DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator()(), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator[](), and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::surface().
|
inline |
This object is a function : Argument -> Data
v | any index |
Definition at line 189 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::isValid(), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData, and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::size().
|
inline |
mutable array access.
v | any index |
Definition at line 207 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::isValid(), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData, and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::size().
|
inline |
Non-mutable array access.
v | any index |
Definition at line 198 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::isValid(), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData, and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::size().
|
inline |
Definition at line 217 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData.
Referenced by DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator()(), and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator[]().
|
inline |
Definition at line 220 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 223 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 180 of file IndexedDigitalSurface.h.
References DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::isValid(), and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::mySurface.
|
private |
An owned or aliased pointer to the vector of data.
Definition at line 229 of file IndexedDigitalSurface.h.
Referenced by DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator()(), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::operator[](), DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::size(), and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::storage().
|
private |
The associated indexed digital surface.
Definition at line 227 of file IndexedDigitalSurface.h.
Referenced by DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::isValid(), and DGtal::IndexedDigitalSurface< TDigitalSurfaceContainer >::IndexedPropertyMap< TData >::surface().