Zivid C++ API 2.14.2+1a322f18-1
Zivid::Experimental::PointCloudExport::FileFormat::PCD Class Reference

Specification for saving frame in PCD (*.pcd) format. More...

#include <Zivid/Experimental/PointCloudExport.h>

Public Member Functions

ZIVID_CORE_EXPORT PCD (const std::string &fileName)
 Create PCD specification with file name.
 
ZIVID_CORE_EXPORT PCD (const std::string &fileName, ColorSpace colorSpace)
 Create PCD specification with file name and color space.
 
ZIVID_CORE_EXPORT const std::filesystem::path & fileName () const
 Get the file name.
 
ZIVID_CORE_EXPORT ColorSpace colorSpace () const
 Get the color space of PCD specification.
 
ZIVID_CORE_EXPORT std::string toString () const
 Get string representation of PCD specification.
 

Static Public Attributes

static constexpr const char * description { "Point Cloud Data File" }
 
static constexpr const char * defaultExtension { ".pcd" }
 
static constexpr bool canLoad { false }
 

Detailed Description

Specification for saving frame in PCD (*.pcd) format.

PCD is a file format native to the Point Cloud Library (PCL). To learn more about the PCD file format, see https://pcl.readthedocs.io/projects/tutorials/en/latest/pcd_file_format.html#pcd-file-format.

Constructor & Destructor Documentation

◆ PCD() [1/2]

ZIVID_CORE_EXPORT Zivid::Experimental::PointCloudExport::FileFormat::PCD::PCD ( const std::string & fileName)
explicit

Create PCD specification with file name.

Sets color space to sRGB.

Parameters
fileNameFile name

◆ PCD() [2/2]

ZIVID_CORE_EXPORT Zivid::Experimental::PointCloudExport::FileFormat::PCD::PCD ( const std::string & fileName,
ColorSpace colorSpace )

Create PCD specification with file name and color space.

Parameters
fileNameFile name
colorSpaceColor space

Member Function Documentation

◆ colorSpace()

ZIVID_CORE_EXPORT ColorSpace Zivid::Experimental::PointCloudExport::FileFormat::PCD::colorSpace ( ) const

Get the color space of PCD specification.

◆ fileName()

ZIVID_CORE_EXPORT const std::filesystem::path & Zivid::Experimental::PointCloudExport::FileFormat::PCD::fileName ( ) const

Get the file name.

◆ toString()

ZIVID_CORE_EXPORT std::string Zivid::Experimental::PointCloudExport::FileFormat::PCD::toString ( ) const

Get string representation of PCD specification.

Member Data Documentation

◆ canLoad

bool Zivid::Experimental::PointCloudExport::FileFormat::PCD::canLoad { false }
staticconstexpr

◆ defaultExtension

const char* Zivid::Experimental::PointCloudExport::FileFormat::PCD::defaultExtension { ".pcd" }
staticconstexpr

◆ description

const char* Zivid::Experimental::PointCloudExport::FileFormat::PCD::description { "Point Cloud Data File" }
staticconstexpr

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