DGtal 2.1.0
|
Attach a property to an element. More...
#include <DGtal/io/Display3D.h>
Public Member Functions | |
WithQuantity (const T &_object, const std::string &_name, const Type &value, QuantityScale s=QuantityScale::UNKNOWN) | |
WithQuantity (const T &_object, const std::string &_name, const std::vector< Type > &_values, QuantityScale s=QuantityScale::UNKNOWN) | |
Data Fields | |
QuantityScale | scale |
T | object |
std::vector< Type > | values |
std::string | name |
Attach a property to an element.
This class can be used with singletons and composite elements; as long as the correct number of values are provided.
This class can be nested to add multiple properties:
T | The type of element |
Type | the type of property |
Definition at line 331 of file Display3D.h.
|
inline |
Definition at line 332 of file Display3D.h.
References DGtal::WithQuantity< T, Type >::values.
|
inline |
Definition at line 338 of file Display3D.h.
References DGtal::WithQuantity< T, Type >::values.
std::string DGtal::WithQuantity< T, Type >::name |
Definition at line 352 of file Display3D.h.
T DGtal::WithQuantity< T, Type >::object |
Definition at line 348 of file Display3D.h.
QuantityScale DGtal::WithQuantity< T, Type >::scale |
Definition at line 345 of file Display3D.h.
std::vector<Type> DGtal::WithQuantity< T, Type >::values |
Definition at line 350 of file Display3D.h.
Referenced by DGtal::WithQuantity< T, Type >::WithQuantity(), and DGtal::WithQuantity< T, Type >::WithQuantity().