ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::visualize::LabelPalette Struct Reference

The categorical colour scale label layers are drawn with. More...

#include <scene.hpp>

Collaboration diagram for reusex::visualize::LabelPalette:

Public Attributes

std::vector< std::array< std::uint8_t, 3 > > colors
 labels 1..N, cyclic
std::array< std::uint8_t, 3 > unlabeled {0, 0, 0}
 label 0 (STANDARDS §3)
std::array< std::uint8_t, 3 > invalid {0, 0, 0}
 An out-of-contract label (core::is_out_of_contract_label: a wrapped -1).

Detailed Description

The categorical colour scale label layers are drawn with.

The default is the design tokens' --label-0 … --label-7 scale (Okabe-Ito, colourblind-safe) and --label-unlabeled, so a rux render, the web viewport and the Qt client colour a label the same way and their legends agree. tests/unit/visualize/test_scene.cpp pins these values to apps/rux/qt/theme/tokens.css (a vendored copy of rux-frontend's src/tokens.css); a design sync that changes the scale fails that test until this table follows.

Definition at line 57 of file scene.hpp.

Member Data Documentation

◆ colors

std::vector<std::array<std::uint8_t, 3> > reusex::visualize::LabelPalette::colors

labels 1..N, cyclic

Definition at line 58 of file scene.hpp.

◆ invalid

std::array<std::uint8_t, 3> reusex::visualize::LabelPalette::invalid {0, 0, 0}

An out-of-contract label (core::is_out_of_contract_label: a wrapped -1).

Not a class: never one of colors.

Definition at line 62 of file scene.hpp.

◆ unlabeled

std::array<std::uint8_t, 3> reusex::visualize::LabelPalette::unlabeled {0, 0, 0}

label 0 (STANDARDS §3)

Definition at line 59 of file scene.hpp.


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