#include <ChunkIO.hpp>
Public Member Functions | |
ChunkIO () | |
ChunkIO (std::string filePath) | |
ChunkIO used for saving and loading chunks into/from a HDF5-file. More... | |
BaseVector< size_t > | loadAmount () |
BaseVector< size_t > | loadAmount () |
loads and returns a BaseVector with the amount of chunks in each dimension More... | |
BoundingBox< BaseVector< float > > | loadBoundingBox () |
BoundingBox< BaseVector< float > > | loadBoundingBox () |
loads and returns the bounding box for the complete original mesh (that got chunked) More... | |
lvr2::MeshBufferPtr | loadChunk (std::string chunkName) |
load a mesh from a group with the given cellIndex More... | |
template<typename T > | |
T | loadChunk (std::string layer, int x, int y, int z) |
float | loadChunkSize () |
float | loadChunkSize () |
loads and returns the chunksize More... | |
boost::shared_array< float > | lsrLoadCenters (string chunkName) |
loads and returns the centers for the cells/voxel in one chunk More... | |
boost::shared_array< bool > | lsrLoadExtruded (string chunkName) |
load the extruded value for the cells/voxel of one chunk More... | |
size_t | lsrLoadNumCells (string chunkName) |
loads and returns the number of cells/voxel in the chunk More... | |
boost::shared_array< float > | lsrLoadQueryPoints (string chunkName) |
loads and returns the Querypoint-distances for the cells/voxel of one chunk More... | |
float | readVoxelSize () |
returns the voxelsize More... | |
void | save (BaseVector< std::size_t > amount, float chunkSize, BoundingBox< BaseVector< float >> boundingBox) |
void | saveAmount (BaseVector< std::size_t > amount) |
void | saveBoundingBox (BoundingBox< BaseVector< float >> boundingBox) |
template<typename T > | |
void | saveChunk (T data, std::string layer, int x, int y, int z) |
void | saveChunkSize (float chunkSize) |
void | writeBasicStructure (BaseVector< std::size_t > amount, float chunksize, BoundingBox< BaseVector< float >> boundingBox) |
write amount, chunksize and the bounding box in the hdf5 file More... | |
void | writeChunk (lvr2::MeshBufferPtr mesh, size_t x, size_t y, size_t z) |
write a mesh in a group with the given cellIndex More... | |
void | writeTSDF (string cellName, size_t csize, boost::shared_array< float > centers, boost::shared_array< bool > extruded, boost::shared_array< float > queryPoints) |
Writes the parameters in the HDF5 file. More... | |
void | writeVoxelSize (float voxelSize) |
save reconstruction voxelsize in HDF5 More... | |
Protected Attributes | |
ArrayIO< FeatureBase > * | m_array_io = static_cast<ArrayIO<FeatureBase>*>(m_file_access) |
FeatureBase * | m_file_access = static_cast<FeatureBase*>(this) |
Private Attributes | |
const std::string | m_amountName = "amount" |
const std::string | m_boundingBoxName = "bounding_box" |
const std::string | m_chunkName = "chunks" |
const std::string | m_chunkSizeName = "size" |
std::string | m_filePath |
ChunkHDF5IO | m_hdf5IO |
Definition at line 54 of file ChunkIO.hpp.
|
default |
lvr2::ChunkIO< FeatureBase >::ChunkIO | ( | std::string | filePath | ) |
ChunkIO used for saving and loading chunks into/from a HDF5-file.
Definition at line 47 of file ChunkIO.cpp.
BaseVector<size_t> lvr2::ChunkIO< FeatureBase >::loadAmount | ( | ) |
BaseVector< size_t > lvr2::ChunkIO< FeatureBase >::loadAmount | ( | ) |
loads and returns a BaseVector with the amount of chunks in each dimension
Definition at line 83 of file ChunkIO.cpp.
BoundingBox<BaseVector<float> > lvr2::ChunkIO< FeatureBase >::loadBoundingBox | ( | ) |
BoundingBox< BaseVector< float > > lvr2::ChunkIO< FeatureBase >::loadBoundingBox | ( | ) |
loads and returns the bounding box for the complete original mesh (that got chunked)
Definition at line 120 of file ChunkIO.cpp.
lvr2::MeshBufferPtr lvr2::ChunkIO< FeatureBase >::loadChunk | ( | std::string | chunkName | ) |
load a mesh from a group with the given cellIndex
Definition at line 140 of file ChunkIO.cpp.
T lvr2::ChunkIO< FeatureBase >::loadChunk | ( | std::string | layer, |
int | x, | ||
int | y, | ||
int | z | ||
) |
float lvr2::ChunkIO< FeatureBase >::loadChunkSize | ( | ) |
float lvr2::ChunkIO< FeatureBase >::loadChunkSize | ( | ) |
loads and returns the chunksize
Definition at line 101 of file ChunkIO.cpp.
boost::shared_array< float > lvr2::ChunkIO< FeatureBase >::lsrLoadCenters | ( | string | chunkName | ) |
loads and returns the centers for the cells/voxel in one chunk
Definition at line 185 of file ChunkIO.cpp.
boost::shared_array< bool > lvr2::ChunkIO< FeatureBase >::lsrLoadExtruded | ( | string | chunkName | ) |
load the extruded value for the cells/voxel of one chunk
Definition at line 250 of file ChunkIO.cpp.
size_t lvr2::ChunkIO< FeatureBase >::lsrLoadNumCells | ( | string | chunkName | ) |
loads and returns the number of cells/voxel in the chunk
Definition at line 209 of file ChunkIO.cpp.
boost::shared_array< float > lvr2::ChunkIO< FeatureBase >::lsrLoadQueryPoints | ( | string | chunkName | ) |
loads and returns the Querypoint-distances for the cells/voxel of one chunk
Definition at line 226 of file ChunkIO.cpp.
float lvr2::ChunkIO< FeatureBase >::readVoxelSize | ( | ) |
returns the voxelsize
Definition at line 156 of file ChunkIO.cpp.
void lvr2::ChunkIO< FeatureBase >::save | ( | BaseVector< std::size_t > | amount, |
float | chunkSize, | ||
BoundingBox< BaseVector< float >> | boundingBox | ||
) |
void lvr2::ChunkIO< FeatureBase >::saveAmount | ( | BaseVector< std::size_t > | amount | ) |
void lvr2::ChunkIO< FeatureBase >::saveBoundingBox | ( | BoundingBox< BaseVector< float >> | boundingBox | ) |
void lvr2::ChunkIO< FeatureBase >::saveChunk | ( | T | data, |
std::string | layer, | ||
int | x, | ||
int | y, | ||
int | z | ||
) |
void lvr2::ChunkIO< FeatureBase >::saveChunkSize | ( | float | chunkSize | ) |
void lvr2::ChunkIO< FeatureBase >::writeBasicStructure | ( | BaseVector< std::size_t > | amount, |
float | chunksize, | ||
BoundingBox< BaseVector< float >> | boundingBox | ||
) |
write amount, chunksize and the bounding box in the hdf5 file
Definition at line 53 of file ChunkIO.cpp.
void lvr2::ChunkIO< FeatureBase >::writeChunk | ( | lvr2::MeshBufferPtr | mesh, |
size_t | x, | ||
size_t | y, | ||
size_t | z | ||
) |
write a mesh in a group with the given cellIndex
Definition at line 70 of file ChunkIO.cpp.
void lvr2::ChunkIO< FeatureBase >::writeTSDF | ( | string | cellName, |
size_t | csize, | ||
boost::shared_array< float > | centers, | ||
boost::shared_array< bool > | extruded, | ||
boost::shared_array< float > | queryPoints | ||
) |
Writes the parameters in the HDF5 file.
chunkName | name of the chunk (typically the grid coordinates) |
csize | number of cells/voxel in the chunk |
centers | center values for the voxel |
extruded | extruded values for the voxel |
queryPoints | Querypoint distances for the voxel |
Definition at line 163 of file ChunkIO.cpp.
void lvr2::ChunkIO< FeatureBase >::writeVoxelSize | ( | float | voxelSize | ) |
save reconstruction voxelsize in HDF5
Definition at line 145 of file ChunkIO.cpp.
|
private |
Definition at line 140 of file ChunkIO.hpp.
|
protected |
Definition at line 56 of file descriptions/ChunkIO.hpp.
|
private |
Definition at line 142 of file ChunkIO.hpp.
|
private |
Definition at line 139 of file ChunkIO.hpp.
|
private |
Definition at line 141 of file ChunkIO.hpp.
|
protected |
Definition at line 55 of file descriptions/ChunkIO.hpp.
|
private |
Definition at line 133 of file ChunkIO.hpp.
|
private |
Definition at line 135 of file ChunkIO.hpp.