visionx::voxelgrid::io Namespace Reference

Namespaces

namespace  detail
 

Classes

class  BinaryIO
 
class  JsonIO
 Class to store voxel grids in a vectorized JSON format. More...
 

Typedefs

template<class VoxelT>
using VoxelAttributeGetter = std::function<nlohmann::json(const VoxelT& voxel)>
 Function to get an attribute of a voxel.
 
template<class VoxelT>
using VoxelAttributeGetterMap = std::map<std::string, VoxelAttributeGetter<VoxelT>>
 Map of attribute name to attribute getter.
 
template<class VoxelT>
using VoxelAttributeSetter = std::function<void(const nlohmann::json& j, VoxelT& voxel)>
 Function to set an attribute of a voxel.
 
template<class VoxelT>
using VoxelAttributeSetterMap = std::map<std::string, VoxelAttributeSetter<VoxelT>>
 Map of attribute name to attribute setter.
 

Typedef Documentation

◆ VoxelAttributeGetter

template<class VoxelT>
using VoxelAttributeGetter = std::function<nlohmann::json(const VoxelT& voxel)>

Function to get an attribute of a voxel.

Definition at line 20 of file JsonIO.h.

◆ VoxelAttributeGetterMap

template<class VoxelT>
using VoxelAttributeGetterMap = std::map<std::string, VoxelAttributeGetter<VoxelT>>

Map of attribute name to attribute getter.

Definition at line 27 of file JsonIO.h.

◆ VoxelAttributeSetter

template<class VoxelT>
using VoxelAttributeSetter = std::function<void(const nlohmann::json& j, VoxelT& voxel)>

Function to set an attribute of a voxel.

Definition at line 23 of file JsonIO.h.

◆ VoxelAttributeSetterMap

template<class VoxelT>
using VoxelAttributeSetterMap = std::map<std::string, VoxelAttributeSetter<VoxelT>>

Map of attribute name to attribute setter.

Definition at line 30 of file JsonIO.h.