#include <VisionX/libraries/VoxelGridCore/io/BinaryIO.h>
|
| template<typename VoxelGridT> |
| static VoxelGridT | read (const std::string &filename) |
| | Read a voxel grid from the filename.
|
| |
| template<typename VoxelGridT> |
| static VoxelGridT | read (std::istream &is) |
| | Read a voxel grid from the in-stream.
|
| |
| template<typename VoxelT> |
| static void | read (VoxelGrid< VoxelT > &voxelGrid, const std::string &filename) |
| | Read a voxel grid from the file.
|
| |
| template<typename VoxelT> |
| static void | read (VoxelGrid< VoxelT > &voxelGrid, std::istream &is) |
| | Read a voxel grid from the in-stream.
|
| |
| template<typename VoxelT> |
| static void | readVoxel (std::istream &is, VoxelT &voxel) |
| | Read a voxel from the out stream.
|
| |
| template<typename VoxelT> |
| static void | write (const VoxelGrid< VoxelT > &voxelGrid, const std::string &filename) |
| | Write a voxel grid to a file.
|
| |
| template<typename VoxelT> |
| static void | write (const VoxelGrid< VoxelT > &voxelGrid, std::ostream &os) |
| | Write a voxel grid to an out-stream.
|
| |
| template<typename VoxelT> |
| static void | writeVoxel (std::ostream &os, const VoxelT &voxel) |
| | Write a voxel to the out stream.
|
| |
◆ read() [1/4]
template<typename VoxelGridT>
| VoxelGridT read |
( |
const std::string & | filename | ) |
|
|
static |
Read a voxel grid from the filename.
The specified voxel grid type VoxelGridT must provide a default constructor. Sets voxelGrid's layout and fills the voxel data. is must be open in binary mode with a valid voxel grid file.
◆ read() [2/4]
template<typename VoxelGridT>
| VoxelGridT read |
( |
std::istream & | is | ) |
|
|
static |
Read a voxel grid from the in-stream.
The specified voxel grid type VoxelGridT must provide a default constructor. Sets voxelGrid's layout and fills the voxel data. is must be open in binary mode with a valid voxel grid file.
◆ read() [3/4]
template<typename VoxelT>
| void read |
( |
VoxelGrid< VoxelT > & | voxelGrid, |
|
|
const std::string & | filename ) |
|
static |
Read a voxel grid from the file.
Sets voxelGrid's layout and fills the voxel data.
◆ read() [4/4]
template<typename VoxelT>
| void read |
( |
VoxelGrid< VoxelT > & | voxelGrid, |
|
|
std::istream & | is ) |
|
static |
Read a voxel grid from the in-stream.
Sets voxelGrid's layout and fills the voxel data. is must be open in binary mode with a valid voxel grid file.
◆ readVoxel()
template<typename VoxelT>
| void readVoxel |
( |
std::istream & | is, |
|
|
VoxelT & | voxel ) |
|
static |
Read a voxel from the out stream.
This is a free template method used by voxel_grid_io::read(), so you can specialize it if necessary.
◆ write() [1/2]
template<typename VoxelT>
| void write |
( |
const VoxelGrid< VoxelT > & | voxelGrid, |
|
|
const std::string & | filename ) |
|
static |
Write a voxel grid to a file.
◆ write() [2/2]
template<typename VoxelT>
| void write |
( |
const VoxelGrid< VoxelT > & | voxelGrid, |
|
|
std::ostream & | os ) |
|
static |
Write a voxel grid to an out-stream.
The out-stream os must be open in binary mode.
◆ writeVoxel()
template<typename VoxelT>
| void writeVoxel |
( |
std::ostream & | os, |
|
|
const VoxelT & | voxel ) |
|
static |
Write a voxel to the out stream.
This is a free template method used by voxel_grid_io::write(), so you can specialize it if necessary.
The documentation for this class was generated from the following files: