visionx::voxelgrid::io Namespace Reference

Namespaces

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

Typedef Documentation

◆ VoxelAttributeGetter

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

Function to get an attribute of a voxel.

Definition at line 21 of file JsonIO.h.

◆ VoxelAttributeGetterMap

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

Map of attribute name to attribute getter.

Definition at line 28 of file JsonIO.h.

◆ VoxelAttributeSetter

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

Function to set an attribute of a voxel.

Definition at line 24 of file JsonIO.h.

◆ VoxelAttributeSetterMap

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

Map of attribute name to attribute setter.

Definition at line 31 of file JsonIO.h.