NDEVR
API Documentation
PointContainer< t_point_type >

A templated container for 3D point cloud data with per-point positions, typed attributes, and integer weights. More...

Inheritance diagram for PointContainer< t_point_type >:
[legend]
Collaboration diagram for PointContainer< t_point_type >:
[legend]

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< uint04weights
 Per-point confidence weights.

Detailed Description

template<class t_point_type>
class PointContainer< t_point_type >

A templated container for 3D point cloud data with per-point positions, typed attributes, and integer weights.


Supports serialization and weight-based filtering.

Template Parameters
t_point_typeThe per-point data type (e.g. ColorNormalNode, ColorNode).

Definition at line 14 of file PointContainer.h.

Member Function Documentation

◆ addAll()

template<class t_point_type>
void PointContainer< t_point_type >::addAll ( const PointContainer< t_point_type > & other)
inline

Append all points from another container.

Parameters
[in]otherThe container to append.

Definition at line 43 of file PointContainer.h.

References data, locations, and weights.

◆ filterByWeight()

template<class t_point_type>
void PointContainer< t_point_type >::filterByWeight ( uint04 weight)
inline

Remove all points with weights below the given threshold (back-swap removal).

Parameters
[in]weightMinimum weight to keep.

Definition at line 74 of file PointContainer.h.

References data, locations, and weights.

◆ readFromFile()

template<class t_point_type>
void PointContainer< t_point_type >::readFromFile ( File & file)
inline

Deserialize point data from a binary file.

Parameters
[in]fileThe file to read from (must be open for reading).

Definition at line 62 of file PointContainer.h.

References data, file, locations, setSize(), and weights.

◆ setSize()

template<class t_point_type>
void PointContainer< t_point_type >::setSize ( uint04 size)
inline

Resize all internal buffers to hold the given number of points.

Parameters
[in]sizeThe 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().

◆ size()

template<class t_point_type>
uint04 PointContainer< t_point_type >::size ( ) const
inline

Get the number of points in the container.

Returns
The point count.

Definition at line 30 of file PointContainer.h.

References locations.

Referenced by ViewPortSmoothShaderLogic::getInput(), setSize(), ViewPortSmoothShaderLogic::uploadInputs(), and writeToFile().

◆ writeToFile()

template<class t_point_type>
void PointContainer< t_point_type >::writeToFile ( File & file) const
inline

Serialize all point data to a binary file.

Parameters
[in]fileThe file to write to (must be open for writing).

Definition at line 51 of file PointContainer.h.

References data, file, locations, size(), and weights.


The documentation for this class was generated from the following file: