Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
lvr2::hdf5features::PointCloudIO< Derived > Class Template Reference

Hdf5IO Feature for handling PointBuffer related IO. More...

#include <PointCloudIO.hpp>

Public Member Functions

PointBufferPtr load (std::string name)
 
PointBufferPtr load (HighFive::Group &group)
 
PointBufferPtr loadPointCloud (std::string name)
 
void save (std::string name, const PointBufferPtr &buffer)
 
void save (HighFive::Group &group, const PointBufferPtr &buffer)
 

Protected Member Functions

bool isPointCloud (HighFive::Group &group)
 

Protected Attributes

Derived * m_file_access = static_cast<Derived*>(this)
 
VariantChannelIO< Derived > * m_vchannel_io = static_cast<VariantChannelIO<Derived>*>(m_file_access)
 

Static Protected Attributes

static constexpr const char * ID = "PointCloudIO"
 
static constexpr const char * OBJID = "PointBuffer"
 

Detailed Description

template<typename Derived>
class lvr2::hdf5features::PointCloudIO< Derived >

Hdf5IO Feature for handling PointBuffer related IO.

This Feature of the Hdf5IO handles the IO of a PointBuffer object.

Example:

MyHdf5IO io;
PointBufferPtr pointcloud, pointcloud_in;
// writing
io.open("test.h5");
io.save("apointcloud", pointcloud);
// reading
pointcloud_in = io.loadPointCloud("apointcloud");

Generates attributes at hdf5 group:

Dependencies:

Definition at line 47 of file hdf5/PointCloudIO.hpp.

Member Function Documentation

◆ isPointCloud()

template<typename Derived >
bool lvr2::hdf5features::PointCloudIO< Derived >::isPointCloud ( HighFive::Group group)
protected

◆ load() [1/2]

template<typename Derived >
PointBufferPtr lvr2::hdf5features::PointCloudIO< Derived >::load ( std::string  name)

◆ load() [2/2]

template<typename Derived >
PointBufferPtr lvr2::hdf5features::PointCloudIO< Derived >::load ( HighFive::Group group)

◆ loadPointCloud()

template<typename Derived >
PointBufferPtr lvr2::hdf5features::PointCloudIO< Derived >::loadPointCloud ( std::string  name)

◆ save() [1/2]

template<typename Derived >
void lvr2::hdf5features::PointCloudIO< Derived >::save ( std::string  name,
const PointBufferPtr buffer 
)

◆ save() [2/2]

template<typename Derived >
void lvr2::hdf5features::PointCloudIO< Derived >::save ( HighFive::Group group,
const PointBufferPtr buffer 
)

Member Data Documentation

◆ ID

template<typename Derived >
constexpr const char* lvr2::hdf5features::PointCloudIO< Derived >::ID = "PointCloudIO"
staticprotected

Definition at line 64 of file hdf5/PointCloudIO.hpp.

◆ m_file_access

template<typename Derived >
Derived* lvr2::hdf5features::PointCloudIO< Derived >::m_file_access = static_cast<Derived*>(this)
protected

Definition at line 60 of file hdf5/PointCloudIO.hpp.

◆ m_vchannel_io

template<typename Derived >
VariantChannelIO<Derived>* lvr2::hdf5features::PointCloudIO< Derived >::m_vchannel_io = static_cast<VariantChannelIO<Derived>*>(m_file_access)
protected

Definition at line 62 of file hdf5/PointCloudIO.hpp.

◆ OBJID

template<typename Derived >
constexpr const char* lvr2::hdf5features::PointCloudIO< Derived >::OBJID = "PointBuffer"
staticprotected

Definition at line 65 of file hdf5/PointCloudIO.hpp.


The documentation for this class was generated from the following file:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:12