MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kinesis::SpatialSnapshot< PointT > Struct Template Reference

Immutable spatial snapshot published atomically for lock-free reads. More...

#include <SpatialIndex.hpp>

+ Collaboration diagram for MayaFlux::Kinesis::SpatialSnapshot< PointT >:

Public Attributes

float cell_size {}
 Cell size used when this snapshot was built.
 
std::unordered_map< uint64_t, std::vector< uint32_t > > cells
 Grid cell contents. Key is hashed cell coordinate.
 
uint32_t dimensions {}
 Dimensionality (3 for glm::vec3, runtime for Eigen).
 
std::unordered_map< uint32_t, uint32_t > id_to_slot
 Maps external entity id to internal slot index.
 
std::vector< PointT > positions
 Packed position storage indexed by internal slot.
 
std::vector< uint32_t > slot_to_id
 Maps internal slot index back to external entity id.
 

Detailed Description

template<typename PointT>
struct MayaFlux::Kinesis::SpatialSnapshot< PointT >

Immutable spatial snapshot published atomically for lock-free reads.

Template Parameters
PointTCoordinate type (glm::vec3 or Eigen::VectorXd).

Definition at line 18 of file SpatialIndex.hpp.


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