Template Class PointCloudIO

Class Documentation

template<typename BaseIO>
class PointCloudIO

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:

  • VariantChannelIO

Public Functions

void save(const std::string &group, const std::string &name, PointBufferPtr pcl) const
void save(const std::string &groupandname, PointBufferPtr pcl) const
PointBufferPtr load(const std::string &group, const std::string &container) const
PointBufferPtr load(const std::string &group) const
PointBufferPtr load(const std::string &group, const std::string &container, ReductionAlgorithmPtr reduction) const
void savePointCloud(const std::string &group, const std::string &name, PointBufferPtr pcl) const

Save a point buffer at the position defined by group and container.

Parameters:
  • group – Group with the point cloud data

  • container – Container of the point cloud data

  • buffer – Point cloud data

void savePointCloud(const std::string &groupandname, PointBufferPtr pcl) const
PointBufferPtr loadPointCloud(const std::string &group, const std::string &container) const

Loads a point cloud.

Parameters:
  • group – Group with the point cloud data

  • container – Container of the point cloud data

Returns:

PointBufferPtr A point buffer containing the point cloud data stored at the position defined by group and container

PointBufferPtr loadPointCloud(const std::string &group) const
PointBufferPtr loadPointCloud(const std::string &group, const std::string &container, ReductionAlgorithmPtr reduction) const

Loads a reduced version of a point cloud.

Parameters:
  • group – Group with the point cloud data

  • container – Container of the point cloud data

  • reduction – A reduction object that is used to generate the reduced data

Returns:

PointBufferPtr A point buffer containing a reduced version of the point cloud data stored at the position defined by group and container

Protected Attributes

BaseIO *m_baseIO = static_cast<BaseIO*>(this)

Add access to feature base.

VariantChannelIO<BaseIO> *m_vchannel_io = static_cast<VariantChannelIO<BaseIO>*>(m_baseIO)

Dependencies.

Protected Static Attributes

static constexpr const char *ID = "PointCloudIO"

Class ID.

static constexpr const char *OBJID = "PointBuffer"

Object ID.