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

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

#include <PointCloudIO.hpp>

Public Member Functions

PointBufferPtr loadPointCloud (const std::string &group, const std::string &container)
 
void savePointCloud (const std::string &group, const std::string &name, const PointBufferPtr &buffer)
 

Protected Member Functions

bool isPointCloud (const std::string &group)
 

Protected Attributes

FeatureBasem_FeatureBase = static_cast<FeatureBase*>(this)
 
VariantChannelIO< FeatureBase > * m_vchannel_io = static_cast<VariantChannelIO<FeatureBase>*>(m_file_access)
 

Static Protected Attributes

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

Detailed Description

template<typename FeatureBase>
class lvr2::PointCloudIO< FeatureBase >

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:

Dependencies:

Definition at line 45 of file descriptions/PointCloudIO.hpp.

Member Function Documentation

◆ isPointCloud()

template<typename FeatureBase >
bool lvr2::PointCloudIO< FeatureBase >::isPointCloud ( const std::string &  group)
protected

◆ loadPointCloud()

template<typename FeatureBase >
PointBufferPtr lvr2::PointCloudIO< FeatureBase >::loadPointCloud ( const std::string &  group,
const std::string &  container 
)

◆ savePointCloud()

template<typename FeatureBase >
void lvr2::PointCloudIO< FeatureBase >::savePointCloud ( const std::string &  group,
const std::string &  name,
const PointBufferPtr buffer 
)

Member Data Documentation

◆ ID

template<typename FeatureBase >
constexpr const char* lvr2::PointCloudIO< FeatureBase >::ID = "PointCloudIO"
staticconstexprprotected

Definition at line 59 of file descriptions/PointCloudIO.hpp.

◆ m_FeatureBase

template<typename FeatureBase >
FeatureBase* lvr2::PointCloudIO< FeatureBase >::m_FeatureBase = static_cast<FeatureBase*>(this)
protected

Definition at line 55 of file descriptions/PointCloudIO.hpp.

◆ m_vchannel_io

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

Definition at line 57 of file descriptions/PointCloudIO.hpp.

◆ OBJID

template<typename FeatureBase >
constexpr const char* lvr2::PointCloudIO< FeatureBase >::OBJID = "PointBuffer"
staticconstexprprotected

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


The documentation for this class was generated from the following file:
lvr2::PointBufferPtr
std::shared_ptr< PointBuffer > PointBufferPtr
Definition: PointBuffer.hpp:130


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 Wed Mar 2 2022 00:37:27