struct mp2p_icp::render_params_point_layer_t

Overview

Rendering options for each point layer, see metric_map_t::get_visualization()

#include <render_params.h>

struct render_params_point_layer_t
{
    // fields

    float pointSize = 1.0f;
    mrpt::img::TColor color {0x00, 0x00, 0xff, 0xff};
    std::optional<color_mode_t> colorMode;
    bool render_voxelmaps_as_points = false;
    bool render_voxelmaps_free_space = false;

    // methods

    bool operator == (const render_params_point_layer_t& o) const;
    bool operator != (const render_params_point_layer_t& o) const;
};

Fields

float pointSize = 1.0f

Point size, in pixels (can be fractional). Zooming in (very close) into points show them as square patches.

mrpt::img::TColor color {0x00, 0x00, 0xff, 0xff}

Fixed color for all points in the layer. Ignored if colorMode is set.

std::optional<color_mode_t> colorMode

If set, it overrides color and defines a “recolorize by coordinate” mode.