template class mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap>

Specialization mrpt::opengl::PointCloudAdapter<mrpt::maps::CWeightedPointsMap> mrpt_adapters_grp.

#include <mrpt/maps/CWeightedPointsMap.h>

template <>
class PointCloudAdapter<mrpt::maps::CWeightedPointsMap>
{
public:
    // typedefs

    typedef float coords_t;

    //
fields

    static constexpr bool HAS_RGB = false;
    static constexpr bool HAS_RGBf = false;
    static constexpr bool HAS_RGBu8 = false;

    // construction

    PointCloudAdapter(const mrpt::maps::CWeightedPointsMap& obj);

    //
methods

    size_t size() const;
    void resize(const size_t N);
    void setDimensions(size_t height, size_t width);

    template <typename T>
    void getPointXYZ(const size_t idx, T& x, T& y, T& z) const;

    void setPointXYZ(const size_t idx, const coords_t x, const coords_t y, const coords_t z);
};

Typedefs

typedef float coords_t

The type of each point XYZ coordinates.

Fields

static constexpr bool HAS_RGB = false

Has any color RGB info?

static constexpr bool HAS_RGBf = false

Has native RGB info (as floats)?

static constexpr bool HAS_RGBu8 = false

Has native RGB info (as uint8_t)?

Construction

PointCloudAdapter(const mrpt::maps::CWeightedPointsMap& obj)

Constructor (accept a const ref for convenience)

Methods

size_t size() const

Get number of points.

void resize(const size_t N)

Set number of points (to uninitialized values)

void setDimensions(size_t height, size_t width)

Does nothing as of now.

template <typename T>
void getPointXYZ(const size_t idx, T& x, T& y, T& z) const

Get XYZ coordinates of i’th point.

void setPointXYZ(const size_t idx, const coords_t x, const coords_t y, const coords_t z)

Set XYZ coordinates of i’th point.