struct cogs::PointCloudProperty — HIRO 0.7.0 documentation

# struct cogs::PointCloudProperty

## Overview

Type used to store information about property. More…

    #include <PointCloudProperty.h>

    struct PointCloudProperty {
        // typedefs

        typedef std::string Key;

        // fields

        Key key;
        size_t bytes_per_point { 0 };
        DataType type { DataType::UNKNOWN };
        void* data { nullptr };

        // methods

        bool HasEquivalentType(const PointCloudProperty& other) const;
    };

## Detailed Documentation

Type used to store information about property.

### Typedefs

    typedef std::string Key

Type used to identify cloud property record.

### Fields

    Key key

Unique property identifier.

    size_t bytes_per_point { 0 }

Number of bytes for each point.

    DataType type { DataType::UNKNOWN }

Data type of property. Optional.

    void* data { nullptr }

Pointer to property data buffer.

### Methods

    bool HasEquivalentType(const PointCloudProperty& other) const

Compares if this data type is equivalent to other. Data and key are not tested.