2#include <NDEVR/Vertex.h>
3#include <NDEVR/Buffer.h>
13 template<
class t_po
int_type>
53 FILE* f =
file.filePtr();
55 fwrite(&s,
sizeof(
uint04), 1, f);
57 fwrite(
data.begin(),
sizeof(t_point_type), s, f);
64 FILE* f =
file.filePtr();
66 fread(&s,
sizeof(
uint04), 1, f);
69 fread(
data.begin(),
sizeof(t_point_type), s, f);
82 data.removeIndexBackSwap(i);
The equivelent of std::vector but with a bit more control.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
A templated container for 3D point cloud data with per-point positions, typed attributes,...
void filterByWeight(uint04 weight)
Remove all points with weights below the given threshold (back-swap removal).
Buffer< Vertex< 3, fltp04 > > locations
3D positions of each point
Buffer< uint04 > weights
Per-point confidence weights.
void clear()
Clear all buffers, removing all points.
void setSize(uint04 size)
Resize all internal buffers to hold the given number of points.
void addAll(const PointContainer &other)
Append all points from another container.
Buffer< t_point_type > data
Per-point attribute data.
void readFromFile(File &file)
Deserialize point data from a binary file.
uint04 size() const
Get the number of points in the container.
void writeToFile(File &file) const
Serialize all point data to a binary file.
A point in N-dimensional space, used primarily for spatial location information.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
@ file
The source file path associated with this object.