![]() |
NDEVR
API Documentation
|
A templated container for 3D point cloud data with per-point positions, typed attributes, and integer weights. More...
Public Member Functions | |
| void | addAll (const PointContainer &other) |
| Append all points from another container. | |
| void | clear () |
| Clear all buffers, removing all points. | |
| void | filterByWeight (uint04 weight) |
| Remove all points with weights below the given threshold (back-swap removal). | |
| void | readFromFile (File &file) |
| Deserialize point data from a binary file. | |
| void | setSize (uint04 size) |
| Resize all internal buffers to hold the given number of points. | |
| uint04 | size () const |
| Get the number of points in the container. | |
| void | writeToFile (File &file) const |
| Serialize all point data to a binary file. | |
Public Attributes | |
| Buffer< t_point_type > | data |
| Per-point attribute data. | |
| Buffer< Vertex< 3, fltp04 > > | locations |
| 3D positions of each point | |
| Buffer< uint04 > | weights |
| Per-point confidence weights. | |
A templated container for 3D point cloud data with per-point positions, typed attributes, and integer weights.
Supports serialization and weight-based filtering.
| t_point_type | The per-point data type (e.g. ColorNormalNode, ColorNode). |
Definition at line 14 of file PointContainer.h.
|
inline |
Append all points from another container.
| [in] | other | The container to append. |
Definition at line 43 of file PointContainer.h.
|
inline |
Remove all points with weights below the given threshold (back-swap removal).
| [in] | weight | Minimum weight to keep. |
Definition at line 74 of file PointContainer.h.
|
inline |
|
inline |
Resize all internal buffers to hold the given number of points.
| [in] | size | The number of points. |
Definition at line 22 of file PointContainer.h.
References data, locations, size(), and weights.
Referenced by ColorPositionShaderLogic::getInput(), ViewPortSmoothShaderLogic::getInput(), and readFromFile().
|
inline |
Get the number of points in the container.
Definition at line 30 of file PointContainer.h.
References locations.
Referenced by ViewPortSmoothShaderLogic::getInput(), setSize(), ViewPortSmoothShaderLogic::uploadInputs(), and writeToFile().
|
inline |