|
Rumba C++ SDK
|
This class is a helper to iterate over a geometry component, with an weight per component element. More...
#include <WeightedComponent.h>
Classes | |
| class | Iterator |
| The component iterator. More... | |
Public Member Functions | |
| WeightedComponent (const Points &inputGeometry, const char *weights_name, float weight, Shape::Topology topology) | |
| Build a WeightedComponent object using a points geometry with an optional weight mask. More... | |
| WeightedComponent (const Points &inputGeometry, float weight) | |
| Build a WeightedComponent object from a geometry. More... | |
| WeightedComponent (const SparseBufferConstFloat &weights, float weight) | |
| Build a WeightedComponent object from a weight mask. More... | |
| bool | has_weights () const |
| Iterator | begin () const |
| The begin iterator. More... | |
| Iterator | end () const |
| The end iterator. More... | |
| uint32_t | size () const |
| Return the number of component element to iterate. More... | |
This class is a helper to iterate over a geometry component, with an weight per component element.
Using the same WeightedComponent interface, it is possible to iterate over the whole component or a subset of component elements, using an index and a weight.
|
inline |
Build a WeightedComponent object using a points geometry with an optional weight mask.
| inputGeometry | The input geometry with the component to iterator. |
| weights_name | The optional weight attribute name to use for the iteration. Set an empty string to iterate the whole component. |
| weight | The global weight, which will multiply the optional per element weight. |
| topology | The components type to iterate. |
|
inline |
Build a WeightedComponent object from a geometry.
| inputGeometry | The input geometry with the component to iterator. |
| weight | The global weight, which will multiply the optional per element weight. |
|
inline |
Build a WeightedComponent object from a weight mask.
| weights | The weight mask to use for the iteration. |
| weight | The global weight, which will multiply the per element weight. |
|
inline |
The begin iterator.
|
inline |
The end iterator.
|
inline |
|
inline |
Return the number of component element to iterate.