DGtal 1.3.0
|
#include <DGtal/shapes/TriangulatedSurface.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 triangulated surface provides a default vertex map for vertex positions.
TData | the value type for the map. |
Definition at line 128 of file TriangulatedSurface.h.
typedef Index DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::Argument |
Definition at line 129 of file TriangulatedSurface.h.
typedef TData DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::Data |
Definition at line 130 of file TriangulatedSurface.h.
typedef std::vector<Data> DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::Storage |
Definition at line 131 of file TriangulatedSurface.h.
|
inline |
Default constructor. The object is invalid.
Definition at line 134 of file TriangulatedSurface.h.
|
inline |
Creates an empty vertex property map
aSurface | the corresponding triangulated surface. |
s | one more than the maximal allowed index (i.e. nb of elements). |
def_data | the default value at initialization. |
Definition at line 140 of file TriangulatedSurface.h.
|
inline |
Creates the IndexedPropertyMap that points to one that exists already.
aSurface | the corresponding triangulated surface. |
aStorage | the map to reference in this property map. |
Definition at line 152 of file TriangulatedSurface.h.
|
inline |
Definition at line 193 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::mySurface.
Referenced by DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator[](), and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::surface().
|
inline |
This object is a function : Argument -> Data
v | any index |
Definition at line 168 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
mutable array access.
v | any index |
Definition at line 186 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
Non-mutable array access.
v | any index |
Definition at line 177 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData, and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::size().
|
inline |
Definition at line 196 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData.
Referenced by DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator[]().
|
inline |
Definition at line 199 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 202 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::myData.
|
inline |
Definition at line 159 of file TriangulatedSurface.h.
References DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::mySurface.
|
private |
An owned or aliased pointer to the vector of data.
Definition at line 208 of file TriangulatedSurface.h.
Referenced by DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator()(), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::operator[](), DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::size(), and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::storage().
|
private |
The associated polygonal surface.
Definition at line 206 of file TriangulatedSurface.h.
Referenced by DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::isValid(), and DGtal::TriangulatedSurface< TPoint >::IndexedPropertyMap< TData >::surface().