DGtal 2.0.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 327 of file Display3D.h.
|
inline |
Definition at line 328 of file Display3D.h.
References DGtal::WithQuantity< T, Type >::values.
|
inline |
Definition at line 334 of file Display3D.h.
References DGtal::WithQuantity< T, Type >::values.
std::string DGtal::WithQuantity< T, Type >::name |
Definition at line 348 of file Display3D.h.
T DGtal::WithQuantity< T, Type >::object |
Definition at line 344 of file Display3D.h.
QuantityScale DGtal::WithQuantity< T, Type >::scale |
Definition at line 341 of file Display3D.h.
std::vector<Type> DGtal::WithQuantity< T, Type >::values |
Definition at line 346 of file Display3D.h.
Referenced by DGtal::WithQuantity< T, Type >::WithQuantity(), and DGtal::WithQuantity< T, Type >::WithQuantity().