DGtal
1.5.beta
|
#include <DGtal/shapes/PolygonalSurface.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 polygonal 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 polygonal surface provides a default vertex map for vertex positions.
TData | the value type for the map. |
Definition at line 130 of file PolygonalSurface.h.
typedef Index DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::Argument |
Definition at line 131 of file PolygonalSurface.h.
typedef TData DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::Data |
Definition at line 132 of file PolygonalSurface.h.
typedef std::vector<Data> DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::Storage |
Definition at line 133 of file PolygonalSurface.h.
|
inline |
Default constructor. The object is invalid.
Definition at line 136 of file PolygonalSurface.h.
|
inline |
Creates an empty vertex property map
aSurface | the corresponding polygonal surface. |
s | one more than the maximal allowed index (i.e. nb of elements). |
def_data | the default value at initialization. |
Definition at line 142 of file PolygonalSurface.h.
|
inline |
Creates the IndexedPropertyMap that points to one that exists already.
aSurface | the corresponding polygonal surface. |
aStorage | the map to reference in this property map. |
Definition at line 154 of file PolygonalSurface.h.
|
inline |
Definition at line 195 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::mySurface.
Referenced by DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator[](), and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::surface().
|
inline |
This object is a function : Argument -> Data
v | any index |
Definition at line 170 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
mutable array access.
v | any index |
Definition at line 188 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
Non-mutable array access.
v | any index |
Definition at line 179 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
Definition at line 198 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData.
Referenced by DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator[]().
|
inline |
Definition at line 201 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 204 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 161 of file PolygonalSurface.h.
References DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::mySurface.
|
private |
An owned or aliased pointer to the vector of data.
Definition at line 210 of file PolygonalSurface.h.
Referenced by DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::operator[](), DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::size(), and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::storage().
|
private |
The associated polygonal surface.
Definition at line 208 of file PolygonalSurface.h.
Referenced by DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), and DGtal::PolygonalSurface< TPoint >::IndexedPropertyMap< TData >::surface().