2 #ifndef LVR2_IO_HDF5_CHUNKIO_HPP 3 #define LVR2_IO_HDF5_CHUNKIO_HPP 15 namespace hdf5features
18 template <
typename Derived,
typename T>
21 template <
typename Derived>
26 template <
typename Derived>
31 template <
typename Derived>
37 void saveChunkSize(
float chunkSize);
46 void saveChunk(T data, std::string layer,
int x,
int y,
int z);
50 float loadChunkSize();
55 T loadChunk(std::string layer,
int x,
int y,
int z);
58 Derived* m_file_access =
static_cast<Derived*
>(
this);
62 const std::string m_chunkName =
"chunks";
63 const std::string m_amountName =
"amount";
64 const std::string m_chunkSizeName =
"size";
65 const std::string m_boundingBoxName =
"bounding_box";
73 template <
typename Derived>
80 using deps =
typename dep1::template Merge<dep2>::template Merge<dep3>;
83 using type =
typename deps::template add_features<hdf5features::ChunkIO>::type;
88 #include "ChunkIO.tcc" std::shared_ptr< MeshBuffer > MeshBufferPtr
Hdf5IO Feature for handling PointBuffer related IO.
typename Hdf5Construct< hdf5features::MeshIO, Derived >::type dep2
std::shared_ptr< PointBuffer > PointBufferPtr
A dynamic bounding box class.
Helper class how to construct a IO feature with its dependencies.
typename deps::template add_features< hdf5features::ChunkIO >::type type
Hdf5IO Feature for handling MeshBuffer related IO.
typename Hdf5Construct< hdf5features::PointCloudIO, Derived >::type dep3
typename Derived::template add_features< Feature >::type type
typename dep1::template Merge< dep2 >::template Merge< dep3 > deps
typename Hdf5Construct< hdf5features::ArrayIO, Derived >::type dep1