CorePlotting::LineBatchData
CorePlotting::LineBatchData
Flat, API-agnostic representation of a batch of polylines as segments. More…
#include <LineBatchData.hpp>
Public Classes
| Name | |
|---|---|
| struct | LineInfo Metadata for one logical line in the batch. |
Public Functions
| Name | |
|---|---|
| std::uint32_t | numSegments() const |
| std::uint32_t | numLines() const |
| bool | empty() const |
| void | clear() |
Public Attributes
| Name | |
|---|---|
| std::vector< float > | segments |
| std::vector< std::uint32_t > | line_ids |
| std::vector< LineInfo > | lines Per-line metadata array. Size = numLines(). |
| std::vector< std::uint32_t > | visibility_mask 1 = visible, 0 = hidden. Size = numLines(). |
| std::vector< std::uint32_t > | selection_mask 1 = selected, 0 = not selected. Size = numLines(). |
| float | canvas_width |
| float | canvas_height |
Detailed Description
struct CorePlotting::LineBatchData;Flat, API-agnostic representation of a batch of polylines as segments.
Each polyline is decomposed into consecutive line segments stored in a flat array. Per-segment ownership and per-line metadata allow mapping selection results back to the original data source (EntityId or trial index).
Public Functions Documentation
function numSegments
std::uint32_t numSegments() constfunction numLines
std::uint32_t numLines() constfunction empty
bool empty() constfunction clear
void clear()Public Attributes Documentation
variable segments
std::vector< float > segments;Flat segment array: each segment is 4 consecutive floats {x1, y1, x2, y2}. Total size = numSegments() * 4.
variable line_ids
std::vector< std::uint32_t > line_ids;Per-segment line ownership (1-based line id; 0 = invalid). Size = numSegments().
variable lines
std::vector< LineInfo > lines;Per-line metadata array. Size = numLines().
variable visibility_mask
std::vector< std::uint32_t > visibility_mask;1 = visible, 0 = hidden. Size = numLines().
variable selection_mask
std::vector< std::uint32_t > selection_mask;1 = selected, 0 = not selected. Size = numLines().
variable canvas_width
float canvas_width {1.0f};variable canvas_height
float canvas_height {1.0f};Updated on 2026-11-13 at 20:25:42 +0000