CorePlotting
CorePlotting
Namespaces
| Name |
|---|
| CorePlotting::Colormaps |
| CorePlotting::FeatureColor |
| CorePlotting::Interaction |
| CorePlotting::NormalizationHelpers |
| CorePlotting::MaskContourMapper |
| CorePlotting::RasterMapper Mapper for raster plots (PSTH/spike raster style visualization). |
| CorePlotting::SpatialMapper Mapper for spatial data (SpatialOverlay-style visualization). |
| CorePlotting::TimeSeriesMapper Mapper for time-series data (DataViewer-style visualization). |
| CorePlotting::Selection |
Classes
| Name | |
|---|---|
| struct | CorePlotting::AxisMapping Describes how one axis maps between world (rendering) coordinates and domain (semantically meaningful) values, plus how to format labels. |
| struct | CorePlotting::CanvasToDataResult Result of canvas to data coordinate conversion. |
| struct | CorePlotting::SeriesQueryResult Result of querying which series contains a given world Y coordinate. |
| struct | CorePlotting::ViewProjectionParams Helper struct for shared view/projection parameters. |
| struct | CorePlotting::TimeAxisParams Parameters for time axis coordinate conversions. |
| struct | CorePlotting::YAxisParams Parameters for Y-axis coordinate conversions. |
| struct | CorePlotting::ViewState Full runtime 2D camera / viewport state. |
| struct | CorePlotting::ViewStateData Serializable 2D camera state. |
| struct | CorePlotting::EffectiveYViewport Effective Y viewport bounds after applying zoom and pan. |
| struct | CorePlotting::GlyphStyleData Serializable glyph style configuration. |
| struct | CorePlotting::HistogramData Uniform-bin histogram ready for visualization. |
| struct | CorePlotting::LineStyleData Serializable line style configuration. |
| struct | CorePlotting::SeriesDataCache Cached statistical data for a series. |
| struct | CorePlotting::SeriesStyle Pure configuration for series rendering style. |
| struct | CorePlotting::HitTestResult Result of a hit test query. |
| struct | CorePlotting::HitTestConfig Configuration for hit testing behavior. |
| class | CorePlotting::SceneHitTester Multi-strategy hit tester for RenderableScene. |
| struct | CorePlotting::SeriesInfo Metadata for a series to be laid out. |
| struct | CorePlotting::LayoutRequest Request for layout computation. |
| struct | CorePlotting::LayoutResponse Response from layout computation. |
| class | CorePlotting::ILayoutStrategy Strategy interface for layout algorithms. |
| class | CorePlotting::LayoutEngine Main layout engine coordinator. |
| struct | CorePlotting::LayoutTransform Pure geometric transform that is output = input * gain + offset. |
| class | CorePlotting::RowLayoutStrategy Horizontal row layout strategy (Raster plot style). |
| struct | CorePlotting::SeriesLayout Complete layout specification for a single series. |
| struct | CorePlotting::SpatialTransform Layout result for spatial data with coordinate transforms. |
| struct | CorePlotting::SpatialSeriesLayout Extended layout for spatial data. |
| struct | CorePlotting::SpatialLayoutResponse Response from spatial layout computation. |
| class | CorePlotting::SpatialLayoutStrategy Spatial layout strategy (SpatialOverlay style). |
| class | CorePlotting::StackedLayoutStrategy Vertical stacking layout strategy (DataViewer style). |
| class | CorePlotting::CpuLineBatchIntersector |
| struct | CorePlotting::LineIntersectionQuery Parameters for a line-vs-batch intersection query. |
| struct | CorePlotting::LineIntersectionResult Result of a line-vs-batch intersection query. |
| class | CorePlotting::ILineBatchIntersector Abstract intersection query interface. |
| struct | CorePlotting::LineBatchData Flat, API-agnostic representation of a batch of polylines as segments. |
| struct | CorePlotting::MinMaxDecimationParams Parameters for min–max polyline decimation. |
| struct | CorePlotting::HeatmapRowData One row of scalar values for the heatmap grid. |
| struct | CorePlotting::HeatmapColorRange Configuration for how the heatmap color range is determined. |
| class | CorePlotting::HeatmapMapper Converts a grid of scalar rows into colored rectangle batches. |
| struct | CorePlotting::HistogramStyle Style options for histogram rendering. |
| class | CorePlotting::HistogramMapper Converts HistogramData into renderable primitives. |
| struct | CorePlotting::MappedElement Common element type for discrete entities (events, points). |
| struct | CorePlotting::MappedRectElement Element type for rectangles (intervals). |
| struct | CorePlotting::MappedVertex Single vertex in a polyline (analog series, line data). |
| struct | CorePlotting::MappedAnalogVertex Analog vertex with time frame index for gap detection. |
| class | CorePlotting::MappedLineView Lazy view over a mapped polyline. |
| class | CorePlotting::SpanLineView Non-owning view over a contiguous array of MappedVertex. |
| class | CorePlotting::OwningLineView Line view that owns its vertex data. |
| class | CorePlotting::TransformingLineView Line view that applies a transformation function lazily. |
| struct | CorePlotting::TimedMappedElement MappedElement with temporal distance from the center of a window. |
| class | CorePlotting::TimedOwningLineView OwningLineView with temporal distance from the center of a window. |
| struct | CorePlotting::RenderablePolyLineBatch A batch of lines (e.g., LineData, Epochs, or segmented AnalogSeries). |
| struct | CorePlotting::RenderableGlyphBatch A batch of glyphs (e.g., Events in a Raster Plot, Points). |
| struct | CorePlotting::RenderableRectangleBatch A batch of rectangles (e.g., DigitalIntervalSeries). |
| struct | CorePlotting::RenderableScene The complete description of a scene to be rendered. |
| struct | CorePlotting::GlyphStyle Glyph styling options for discrete elements. |
| struct | CorePlotting::RectangleStyle Rectangle styling options for interval elements. |
| struct | CorePlotting::PolyLineStyle PolyLine styling options. |
| class | CorePlotting::SceneBuilder Helper class for constructing RenderableScene objects. |
| class | CorePlotting::GapDetector Detects gaps in analog time series and produces segmented poly-line batches. |
Types
| Name | |
|---|---|
| enum class | AlphaCurve { Linear, Exponential, Gaussian} Alpha curve types for temporal distance → opacity mapping. |
| enum class | GlyphType { Circle, Square, Tick, Cross, Diamond, Triangle} Marker shape for discrete point/event rendering. |
| enum class | HistogramDisplayMode { Bar, Line} Rendering mode for histogram visualization. |
| enum class | HitType { None, DigitalEvent, IntervalBody, IntervalEdgeLeft, IntervalEdgeRight, AnalogSeries, Point, PolyLine, SeriesRegion} Types of hit targets that can be detected. |
| enum class | SeriesType { Analog, DigitalEvent, DigitalInterval} Type of data series for layout purposes. |
| using std::uint32_t | LineBatchIndex 0-based index into LineBatchData::lines |
Functions
| Name | |
|---|---|
| AxisMapping | identityAxis(std::string title ={}, int decimals =1) Identity mapping where world == domain. Labels formatted as decimals. |
| AxisMapping | linearAxis(double scale, double offset, std::string title ={}, int decimals =1) Linear mapping where domain = world * scale + offset. |
| AxisMapping | trialIndexAxis(std::size_t trial_count) Trial index axis for raster / event plots. |
| AxisMapping | relativeTimeAxis() Relative time axis (world == domain, in milliseconds). |
| AxisMapping | analogAxis(double gain, double offset, std::string unit, int decimals =2) Analog signal axis with gain/offset and a unit string. |
| glm::vec2 | canvasToNDC(float canvas_x, float canvas_y, int viewport_width, int viewport_height) Convert canvas pixel coordinates to Normalized Device Coordinates. |
| glm::vec2 | ndcToCanvas(float ndc_x, float ndc_y, int viewport_width, int viewport_height) Convert NDC to canvas pixel coordinates. |
| glm::vec2 | ndcToWorld(glm::vec2 ndc_pos, glm::mat4 const & inverse_vp) Convert NDC coordinates to world space using inverse VP matrices. |
| glm::vec2 | worldToNDC(glm::vec2 world_pos, glm::mat4 const & vp) Convert world coordinates to NDC using VP matrices. |
| glm::vec2 | canvasToWorld(float canvas_x, float canvas_y, int viewport_width, int viewport_height, glm::mat4 const & view_matrix, glm::mat4 const & projection_matrix) Convert canvas pixel coordinates directly to world space. |
| glm::vec2 | worldToCanvas(float world_x, float world_y, int viewport_width, int viewport_height, glm::mat4 const & view_matrix, glm::mat4 const & projection_matrix) Convert world coordinates to canvas pixels. |
| float | worldYToDataY(float world_y, LayoutTransform const & y_transform) Convert world Y coordinate to data Y using inverse LayoutTransform. |
| float | dataYToWorldY(float data_y, LayoutTransform const & y_transform) Convert data Y coordinate to world Y using LayoutTransform. |
| CanvasToDataResult | canvasToData(float canvas_x, float canvas_y, int viewport_width, int viewport_height, glm::mat4 const & view_matrix, glm::mat4 const & projection_matrix, LayoutTransform const & y_transform) Convert canvas coordinates to data coordinates. |
| ClockTicks | worldXToClockTicks(float world_x) Convert world X coordinate to clock ticks. |
| float | clockTicksToWorldX(ClockTicks ticks) Convert clock ticks to world X coordinate. |
| double | safe_range(double min_val, double max_val) Compute (max_val - min_val) without producing infinity. |
| double | clamp_finite(double v) Clamp a value to the finite double range. |
| std::optional< SeriesQueryResult > | findSeriesAtWorldY(float world_y, LayoutResponse const & layout_response, float tolerance =0.0f) Find which series (if any) contains the given world Y coordinate. |
| std::optional< SeriesQueryResult > | findClosestSeriesAtWorldY(float world_y, LayoutResponse const & layout_response) Find the closest series to a given world Y coordinate. |
| float | worldYToSeriesLocalY(float world_y, SeriesLayout const & series_layout) Convert world Y coordinate to series-local Y coordinate. |
| float | seriesLocalYToWorldY(float local_y, SeriesLayout const & series_layout) Convert series-local Y coordinate back to world Y coordinate. |
| std::pair< float, float > | getSeriesWorldBounds(SeriesLayout const & series_layout) Get the bounds of a series in world coordinates. |
| bool | isWithinSeriesBounds(float world_y, SeriesLayout const & series_layout, float tolerance =0.0f) Check if a world Y coordinate is within a series’ bounds. |
| float | normalizedSeriesYToWorldY(float normalized_y, SeriesLayout const & series_layout) Convert normalized series Y [-1, +1] to world Y. |
| float | worldYToNormalizedSeriesY(float world_y, SeriesLayout const & series_layout) Convert world Y to normalized series Y [-1, +1]. |
| bool | validateOrthoParams(float & left, float & right, float & bottom, float & top, char const * context_name =“Matrix”) Validate and sanitize orthographic projection parameters. |
| glm::mat4 | validateMatrix(glm::mat4 const & matrix, char const * context_name =“Matrix”) Validate that a matrix contains only finite values. |
| glm::mat4 | getAnalogViewMatrix(ViewProjectionParams const & params) Create View matrix for global transformations. |
| glm::mat4 | getAnalogProjectionMatrix(float x_min, float x_max, float y_min, float y_max) Create Projection matrix for time series coordinate mapping. |
| glm::mat4 | createProjectionMatrix(float x_min, float x_max, float y_min, float y_max) Create standard time-series Projection matrix. |
| glm::mat4 | createModelMatrix(LayoutTransform const & y_transform) Create Model matrix from a LayoutTransform. |
| glm::mat4 | createModelMatrix(LayoutTransform const & x_transform, LayoutTransform const & y_transform) Create Model matrix from separate X and Y transforms. |
| glm::mat4 | createViewMatrix(float vertical_pan =0.0f) Create View matrix for vertical panning. |
| float | canvasXToTime(float canvas_x, TimeAxisParams const & params) Convert canvas X pixel coordinate to time coordinate. |
| float | timeToCanvasX(float time, TimeAxisParams const & params) Convert time coordinate to canvas X pixel coordinate. |
| float | timeToNDC(float time, TimeAxisParams const & params) Convert time coordinate to Normalized Device Coordinate (NDC). |
| float | ndcToTime(float ndc_x, TimeAxisParams const & params) Convert NDC X coordinate to time coordinate. |
| float | pixelsPerTimeUnit(TimeAxisParams const & params) Calculate pixels per time unit. |
| float | timeUnitsPerPixel(TimeAxisParams const & params) Calculate time units per pixel. |
| float | canvasYToWorldY(float canvas_y, YAxisParams const & params) Convert canvas Y pixel coordinate to world Y coordinate. |
| float | worldYToCanvasY(float world_y, YAxisParams const & params) Convert world Y coordinate to canvas Y pixel coordinate. |
| float | worldYToNDC(float world_y, YAxisParams const & params) Convert world Y to Normalized Device Coordinate (NDC). |
| float | ndcToWorldY(float ndc_y, YAxisParams const & params) Convert NDC Y coordinate to world Y coordinate. |
| TimeAxisParams | makeTimeAxisParams(TimeFrameIndex start, TimeFrameIndex end, TimeFrame const & master_tf, int viewport_width) Build [TimeAxisParams]() from a master-frame index window. |
| BoundingBox | calculateVisibleWorldBounds(ViewState const & state) Calculates the visible world rectangle based on the ViewState. |
| void | computeMatricesFromViewState(ViewState const & state, glm::mat4 & view_matrix, glm::mat4 & proj_matrix) Computes the View and Projection matrices from the ViewState. |
| glm::vec2 | screenToWorld(ViewState const & state, int screen_x, int screen_y) Converts screen coordinates to world coordinates using ViewState logic. |
| glm::vec2 | worldToScreen(ViewState const & state, float world_x, float world_y) Converts world coordinates to screen coordinates using ViewState logic. |
| void | applyBoxZoom(ViewState & state, BoundingBox const & bounds) Applies a box zoom to the ViewState. |
| void | resetView(ViewState & state) Resets the view to fit the data bounds. |
| ViewState | toRuntimeViewState(ViewStateData const & data, int viewport_width, int viewport_height, float padding_factor =1.0f) Promote a serializable ViewStateData to a full runtime ViewState. |
| EffectiveYViewport | computeEffectiveYViewport(ViewStateData const & vs) Compute the effective Y viewport range after applying zoom and pan. |
| std::string | alphaCurveToString(AlphaCurve curve) Convert AlphaCurve enum to string for serialization. |
| AlphaCurve | alphaCurveFromString(std::string const & str) Parse AlphaCurve from string for deserialization. |
| float | computeTemporalAlpha(int distance, int half_width, AlphaCurve curve =AlphaCurve::Linear, float min_alpha =0.1f, float max_alpha =1.0f) Compute alpha (opacity) value based on temporal distance. |
| float | computeTemporalAlpha(float distance, float half_width, AlphaCurve curve =AlphaCurve::Linear, float min_alpha =0.1f, float max_alpha =1.0f) Convenience overload using float distance (for non-integer time bases). |
| RenderableGlyphBatch::GlyphType | toRenderableGlyphType(GlyphType type) Convert a user-facing GlyphType to the rendering-level GlyphType. |
| glm::vec4 | hexColorToVec4(std::string_view hex, float alpha =1.0f) Parse a hex color string to RGBA glm::vec4. |
| bool | operator==(LayoutTransform const & a, LayoutTransform const & b) Equality comparison. |
| bool | operator!=(LayoutTransform const & a, LayoutTransform const & b) |
| LineBatchData | buildLineBatchFromLineData(LineData const & line_data, float canvas_width, float canvas_height) Build a LineBatchData from LineData (TemporalProjectionViewWidget use case). |
| LineBatchData | buildLineBatchFromGatherResult(GatherResult< AnalogTimeSeries > const & gathered) Build a LineBatchData from GatherResult |
| LineBatchData | buildLineBatchFromGatherResult(GatherResult< AnalogTimeSeries > const & gathered, std::vector< ClockTicks > const & alignment_times) Build a LineBatchData from GatherResult |
| RenderablePolyLineBatch | decimatePolyLineBatchMinMax(RenderablePolyLineBatch const & in, MinMaxDecimationParams params) Apply min–max decimation to each line strip in in. |
| template <std::ranges::input_range R> auto |
makeLineView(EntityId id, R const & points, float x_scale =1.0f, float y_scale =1.0f, float x_offset =0.0f, float y_offset =0.0f) Create a line view from a contiguous range of Point2D. |
| template <std::ranges::input_range R> auto |
makeTimeSeriesLineView(EntityId id, R const & time_value_pairs, TimeFrame const & time_frame, float y_scale =1.0f, float y_offset =0.0f) Create a line view with time-to-X mapping for analog series. |
Attributes
| Name | |
|---|---|
| bool | is_mapped_element_v Check if a type is a valid mapper output type. |
| bool | is_mapped_rect_v |
| bool | is_mapped_vertex_v |
| bool | is_element_range_v Check if a range yields mappable elements. |
| bool | is_rect_range_v |
| bool | is_vertex_range_v |
| bool | is_line_range_v |
Types Documentation
enum AlphaCurve
| Enumerator | Value | Description |
|---|---|---|
| Linear | Linear falloff: alpha = max - (max-min) * (d / half_width). | |
| Exponential | Exponential falloff: faster fade near edges. | |
| Gaussian | Gaussian falloff: smooth bell-curve fade. |
Alpha curve types for temporal distance → opacity mapping.
Controls how opacity falls off with temporal distance from the center of an onion-skin window.
enum GlyphType
| Enumerator | Value | Description |
|---|---|---|
| Circle | Filled circle marker. | |
| Square | Filled square marker. | |
| Tick | Vertical line (for event raster plots). | |
| Cross | ‘+’ shaped marker | |
| Diamond | Diamond (rotated square) — future renderer support. | |
| Triangle | Triangle marker — future renderer support. |
Marker shape for discrete point/event rendering.
This is the user-facing glyph type that gets serialized to JSON. It is a superset of all widget-specific glyph enums and maps 1:1 to RenderableGlyphBatch::GlyphType values (plus additional types that may be added to the renderer in the future).
reflectcpp serializes this as a string (e.g., “Circle”, “Tick”).
enum HistogramDisplayMode
| Enumerator | Value | Description |
|---|---|---|
| Bar | Filled rectangles (one per bin). | |
| Line | Polyline connecting bin centers. |
Rendering mode for histogram visualization.
enum HitType
| Enumerator | Value | Description |
|---|---|---|
| None | No hit detected. | |
| DigitalEvent | Hit a discrete event marker (has EntityId). | |
| IntervalBody | Hit inside an interval (has EntityId). | |
| IntervalEdgeLeft | Hit the left edge of an interval (for dragging). | |
| IntervalEdgeRight | Hit the right edge of an interval (for dragging). | |
| AnalogSeries | Hit within an analog series region (no EntityId). | |
| Point | Hit a point marker (has EntityId). | |
| PolyLine | Hit a polyline segment (may have EntityId). | |
| SeriesRegion | Hit within a series’ allocated region but not on data. |
Types of hit targets that can be detected.
Categorizes the different kinds of elements that can be clicked/hovered in a time-series plot. The hit type determines what actions are available (e.g., interval edges can be dragged, events can be selected).
enum SeriesType
| Enumerator | Value | Description |
|---|---|---|
| Analog | Analog time series (continuous signals). | |
| DigitalEvent | Digital event series (discrete time points). | |
| DigitalInterval | Digital interval series (time ranges). |
Type of data series for layout purposes.
using LineBatchIndex
using CorePlotting::LineBatchIndex = std::uint32_t;0-based index into LineBatchData::lines
Functions Documentation
function identityAxis
AxisMapping identityAxis(
std::string title ={},
int decimals =1
)Identity mapping where world == domain. Labels formatted as decimals.
Parameters:
- title Optional axis title
- decimals Number of decimal places in labels (default 1)
function linearAxis
AxisMapping linearAxis(
double scale,
double offset,
std::string title ={},
int decimals =1
)Linear mapping where domain = world * scale + offset.
Parameters:
- scale Multiplicative scale factor
- offset Additive offset
- title Optional axis title
- decimals Number of decimal places in labels (default 1)
Inverse: world = (domain - offset) / scale
function trialIndexAxis
AxisMapping trialIndexAxis(
std::size_t trial_count
)Trial index axis for raster / event plots.
Parameters:
- trial_count Number of trials (must be > 0)
Maps world Y ∈ [-1, 1] → trial ∈ [0, trial_count). domain = (world + 1) / 2 * trial_count world = domain / trial_count * 2 - 1 Labels are integer trial indices: “0”, “1”, “2”, …
function relativeTimeAxis
AxisMapping relativeTimeAxis()Relative time axis (world == domain, in milliseconds).
Labels use sign-prefixed integer format: “-200”, “0”, “+500”.
function analogAxis
AxisMapping analogAxis(
double gain,
double offset,
std::string unit,
int decimals =2
)Analog signal axis with gain/offset and a unit string.
Parameters:
- gain Multiplicative gain
- offset Additive offset
- unit Unit suffix appended to labels
- decimals Number of decimal places in labels (default 2)
domain = world * gain + offset Labels: “1.23 mV”, “-0.50 µV”, etc.
function canvasToNDC
glm::vec2 canvasToNDC(
float canvas_x,
float canvas_y,
int viewport_width,
int viewport_height
)Convert canvas pixel coordinates to Normalized Device Coordinates.
Parameters:
- canvas_x X coordinate in pixels (0 = left edge)
- canvas_y Y coordinate in pixels (0 = top edge)
- viewport_width Viewport width in pixels
- viewport_height Viewport height in pixels
Return: NDC coordinates in range [-1, 1]
Assumes standard OpenGL convention where NDC X is [-1, 1] left to right, and NDC Y is [-1, 1] bottom to top. Canvas Y is flipped (top = 0).
function ndcToCanvas
glm::vec2 ndcToCanvas(
float ndc_x,
float ndc_y,
int viewport_width,
int viewport_height
)Convert NDC to canvas pixel coordinates.
Parameters:
- ndc_x NDC X coordinate [-1, 1]
- ndc_y NDC Y coordinate [-1, 1]
- viewport_width Viewport width in pixels
- viewport_height Viewport height in pixels
Return: Canvas coordinates in pixels
Inverse of canvasToNDC().
function ndcToWorld
glm::vec2 ndcToWorld(
glm::vec2 ndc_pos,
glm::mat4 const & inverse_vp
)Convert NDC coordinates to world space using inverse VP matrices.
Parameters:
- ndc_pos Position in NDC [-1, 1]
- inverse_vp Inverse of (projection × view) matrix
Return: World-space coordinates
Applies the inverse of (Projection × View) to unproject from NDC to world.
function worldToNDC
glm::vec2 worldToNDC(
glm::vec2 world_pos,
glm::mat4 const & vp
)Convert world coordinates to NDC using VP matrices.
Parameters:
- world_pos Position in world space
- vp (projection × view) matrix
Return: NDC coordinates
Forward transform (for completeness).
function canvasToWorld
glm::vec2 canvasToWorld(
float canvas_x,
float canvas_y,
int viewport_width,
int viewport_height,
glm::mat4 const & view_matrix,
glm::mat4 const & projection_matrix
)Convert canvas pixel coordinates directly to world space.
Parameters:
- canvas_x X coordinate in pixels
- canvas_y Y coordinate in pixels
- viewport_width Viewport width in pixels
- viewport_height Viewport height in pixels
- view_matrix View (camera) matrix
- projection_matrix Projection matrix
Return: World-space coordinates
Convenience function combining canvasToNDC and ndcToWorld.
function worldToCanvas
glm::vec2 worldToCanvas(
float world_x,
float world_y,
int viewport_width,
int viewport_height,
glm::mat4 const & view_matrix,
glm::mat4 const & projection_matrix
)Convert world coordinates to canvas pixels.
Parameters:
- world_x World X coordinate
- world_y World Y coordinate
- viewport_width Viewport width in pixels
- viewport_height Viewport height in pixels
- view_matrix View (camera) matrix
- projection_matrix Projection matrix
Return: Canvas coordinates in pixels
Inverse of canvasToWorld().
function worldYToDataY
float worldYToDataY(
float world_y,
LayoutTransform const & y_transform
)Convert world Y coordinate to data Y using inverse LayoutTransform.
Parameters:
- world_y World Y coordinate (after layout transform)
- y_transform The LayoutTransform applied to Y values for this series
Return: Data Y value (original scale)
Undoes the Y-axis layout transform to recover the original data value.
function dataYToWorldY
float dataYToWorldY(
float data_y,
LayoutTransform const & y_transform
)Convert data Y coordinate to world Y using LayoutTransform.
Parameters:
- data_y Data Y value (original scale)
- y_transform The LayoutTransform for this series
Return: World Y coordinate
Forward transform (for consistency).
function canvasToData
CanvasToDataResult canvasToData(
float canvas_x,
float canvas_y,
int viewport_width,
int viewport_height,
glm::mat4 const & view_matrix,
glm::mat4 const & projection_matrix,
LayoutTransform const & y_transform
)Convert canvas coordinates to data coordinates.
Parameters:
- canvas_x X coordinate in pixels
- canvas_y Y coordinate in pixels
- viewport_width Viewport width in pixels
- viewport_height Viewport height in pixels
- view_matrix View (camera) matrix
- projection_matrix Projection matrix
- y_transform LayoutTransform for Y-axis (series-specific)
Return: Complete data coordinates with intermediate values
Full conversion pipeline: Canvas → NDC → World → Data
function worldXToClockTicks
inline ClockTicks worldXToClockTicks(
float world_x
)Convert world X coordinate to clock ticks.
Parameters:
- world_x World X coordinate (time axis)
Return: Nearest ClockTicks value
World X is continuous plot space along the time axis. For time-series plots this is physical time expressed as a float (absolute or view-local depending on the caller’s projection). This rounds to the nearest integer tick.
function clockTicksToWorldX
inline float clockTicksToWorldX(
ClockTicks ticks
)Convert clock ticks to world X coordinate.
Parameters:
- ticks Physical time as clock ticks
Return: World X coordinate
Trivial conversion for consistency when placing geometry in plot space.
function safe_range
inline double safe_range(
double min_val,
double max_val
)Compute (max_val - min_val) without producing infinity.
Parameters:
- min_val Lower bound
- max_val Upper bound
Return: The range, clamped to the finite double range
If subtracting two finite doubles overflows to ±infinity, returns std::numeric_limits
function clamp_finite
inline double clamp_finite(
double v
)Clamp a value to the finite double range.
Parameters:
- v Input value
Return: Finite value
NaN maps to 0.0. ±infinity maps to ±DBL_MAX.
function findSeriesAtWorldY
std::optional< SeriesQueryResult > findSeriesAtWorldY(
float world_y,
LayoutResponse const & layout_response,
float tolerance =0.0f
)Find which series (if any) contains the given world Y coordinate.
Parameters:
- world_y World Y coordinate to query
- layout_response Layout containing all series positions
- tolerance Additional distance beyond series bounds to consider a match
Return: SeriesQueryResult if a series is found, std::nullopt otherwise
Note: If multiple series overlap (shouldn’t happen with proper layout), returns the first matching series.
Queries the layout response to find the series whose allocated region contains the specified world Y coordinate. Optionally allows a tolerance for selecting series near the boundary.
Example:
LayoutResponse layout = engine.compute(request);
float world_y = screenToWorld(mouse_pos, ...).y;
if (auto result = findSeriesAtWorldY(world_y, layout)) {
std::cout << "Clicked on series: " << result->series_key << std::endl;
std::cout << "Position within series: " << result->series_local_y << std::endl;
}function findClosestSeriesAtWorldY
std::optional< SeriesQueryResult > findClosestSeriesAtWorldY(
float world_y,
LayoutResponse const & layout_response
)Find the closest series to a given world Y coordinate.
Parameters:
- world_y World Y coordinate to query
- layout_response Layout containing all series positions
Return: SeriesQueryResult for the closest series, std::nullopt if layout is empty
Unlike findSeriesAtWorldY which requires the point to be within a series, this function always returns a result (unless layout is empty) by finding the series whose center is closest to the query point.
Example:
// User clicked between two series - find the closest one
if (auto result = findClosestSeriesAtWorldY(world_y, layout)) {
highlightSeries(result->series_key);
}function worldYToSeriesLocalY
inline float worldYToSeriesLocalY(
float world_y,
SeriesLayout const & series_layout
)Convert world Y coordinate to series-local Y coordinate.
Parameters:
- world_y World Y coordinate
- series_layout Layout information for the target series
Return: Y coordinate relative to series center
Simple utility to convert from world coordinates to a position relative to a specific series’ center. This is the first step in converting to actual data values (the data object then interprets the local Y based on its own scaling properties).
Example:
float local_y = worldYToSeriesLocalY(world_y, layout);
// The data object then converts local_y to data value using its own scaling
float data_value = series->localYToDataValue(local_y);function seriesLocalYToWorldY
inline float seriesLocalYToWorldY(
float local_y,
SeriesLayout const & series_layout
)Convert series-local Y coordinate back to world Y coordinate.
Parameters:
- local_y Y coordinate relative to series center
- series_layout Layout information for the target series
Return: World Y coordinate
Inverse of worldYToSeriesLocalY.
function getSeriesWorldBounds
inline std::pair< float, float > getSeriesWorldBounds(
SeriesLayout const & series_layout
)Get the bounds of a series in world coordinates.
Parameters:
- series_layout Layout information for the series
Return: Pair of (y_min, y_max) in world coordinates
Utility to extract the Y-axis bounds of a series’ allocated region.
function isWithinSeriesBounds
inline bool isWithinSeriesBounds(
float world_y,
SeriesLayout const & series_layout,
float tolerance =0.0f
)Check if a world Y coordinate is within a series’ bounds.
Parameters:
- world_y World Y coordinate to check
- series_layout Layout information for the series
- tolerance Additional tolerance beyond strict bounds
Return: true if world_y is within the series’ allocated region
function normalizedSeriesYToWorldY
inline float normalizedSeriesYToWorldY(
float normalized_y,
SeriesLayout const & series_layout
)Convert normalized series Y [-1, +1] to world Y.
Parameters:
- normalized_y Normalized position in range [-1, +1]
- series_layout Layout information for the series
Return: World Y coordinate
Given a normalized position within a series (where -1 is bottom edge, +1 is top edge, and 0 is center), convert to world coordinates.
function worldYToNormalizedSeriesY
inline float worldYToNormalizedSeriesY(
float world_y,
SeriesLayout const & series_layout
)Convert world Y to normalized series Y [-1, +1].
Parameters:
- world_y World Y coordinate
- series_layout Layout information for the series
Return: Normalized position (0 at center, ±1 at edges)
Inverse of normalizedSeriesYToWorldY. Returns 0 if series has zero height.
function validateOrthoParams
bool validateOrthoParams(
float & left,
float & right,
float & bottom,
float & top,
char const * context_name ="Matrix"
)Validate and sanitize orthographic projection parameters.
Parameters:
- left Left boundary (will be modified if invalid)
- right Right boundary (will be modified if invalid)
- bottom Bottom boundary (will be modified if invalid)
- top Top boundary (will be modified if invalid)
- context_name Name for debug messages (e.g., “Analog”, “Event”)
Return: true if parameters were valid, false if corrections were applied
Ensures parameters produce valid matrices without NaN/Infinity. Applies minimum range constraints and clamps extreme values.
function validateMatrix
glm::mat4 validateMatrix(
glm::mat4 const & matrix,
char const * context_name ="Matrix"
)Validate that a matrix contains only finite values.
Parameters:
- matrix Matrix to validate
- context_name Name for debug messages
Return: Validated matrix (original or identity if invalid)
Checks all matrix elements for NaN or Infinity. Returns identity matrix if validation fails.
function getAnalogViewMatrix
glm::mat4 getAnalogViewMatrix(
ViewProjectionParams const & params
)Create View matrix for global transformations.
Parameters:
- params View/projection parameters
Return: View transformation matrix
Applies view-level transformations to all series. Handles global vertical panning.
function getAnalogProjectionMatrix
glm::mat4 getAnalogProjectionMatrix(
float x_min,
float x_max,
float y_min,
float y_max
)Create Projection matrix for time series coordinate mapping.
Parameters:
- x_min Left X boundary in world coordinates (typically view-local tick origin)
- x_max Right X boundary in world coordinates (typically view-local tick span)
- y_min Minimum Y coordinate in data space
- y_max Maximum Y coordinate in data space
Return: Projection transformation matrix
Maps data coordinates to normalized device coordinates [-1, 1]. Includes robust validation to prevent OpenGL state corruption.
function createProjectionMatrix
glm::mat4 createProjectionMatrix(
float x_min,
float x_max,
float y_min,
float y_max
)Create standard time-series Projection matrix.
Parameters:
- x_min Left X boundary in world coordinates
- x_max Right X boundary in world coordinates
- y_min Bottom of viewport
- y_max Top of viewport
Return: Orthographic projection matrix
Maps world X range to NDC X and viewport range to NDC Y. Includes validation to prevent invalid matrices.
function createModelMatrix
inline glm::mat4 createModelMatrix(
LayoutTransform const & y_transform
)Create Model matrix from a LayoutTransform.
Parameters:
- y_transform Combined transform for Y axis (data normalization + layout + user adjustments)
Return: Model matrix that applies the transform
This is the preferred API for creating Model matrices. The LayoutTransform encapsulates all the Y-axis positioning and scaling.
function createModelMatrix
inline glm::mat4 createModelMatrix(
LayoutTransform const & x_transform,
LayoutTransform const & y_transform
)Create Model matrix from separate X and Y transforms.
Parameters:
- x_transform Transform for X axis
- y_transform Transform for Y axis
Return: Model matrix applying both transforms
For spatial data where both axes need transformation.
function createViewMatrix
inline glm::mat4 createViewMatrix(
float vertical_pan =0.0f
)Create View matrix for vertical panning.
Parameters:
- vertical_pan Y offset for panning
Return: View matrix with translation
function canvasXToTime
float canvasXToTime(
float canvas_x,
TimeAxisParams const & params
)Convert canvas X pixel coordinate to time coordinate.
Parameters:
- canvas_x X position in pixels (0 = left edge of canvas)
- params Time axis parameters (time range and viewport width)
Return: Time coordinate corresponding to canvas_x (floating point for sub-frame precision)
Note: Returns floating point to allow sub-frame precision for interpolation. Cast to int64_t if integer tick values are needed.
Maps a pixel position on the canvas to the corresponding time value based on the current visible time range.
Example:
TimeAxisParams params(0, 1000, 800); // Time 0-1000, 800px wide canvas
float time = canvasXToTime(400.0f, params); // Returns 500.0f (middle of canvas)function timeToCanvasX
float timeToCanvasX(
float time,
TimeAxisParams const & params
)Convert time coordinate to canvas X pixel coordinate.
Parameters:
- time Time coordinate
- params Time axis parameters (time range and viewport width)
Return: Canvas X position in pixels (0 = left edge)
Note: Times outside the visible range will return negative values or values greater than viewport_width_px.
Maps a time value to the corresponding pixel position on the canvas based on the current visible time range.
Example:
TimeAxisParams params(0, 1000, 800); // Time 0-1000, 800px wide canvas
float x = timeToCanvasX(500.0f, params); // Returns 400.0f (middle of canvas)function timeToNDC
float timeToNDC(
float time,
TimeAxisParams const & params
)Convert time coordinate to Normalized Device Coordinate (NDC).
Parameters:
- time Time coordinate
- params Time axis parameters (time range)
Return: NDC X coordinate in range [-1, +1]
Note: The viewport_width_px field is not used for this conversion.
Maps a time value to NDC range [-1, +1] for use with projection matrices. Time at time_start maps to -1, time at time_end maps to +1.
Example:
TimeAxisParams params(100, 200, 800);
float ndc = timeToNDC(150.0f, params); // Returns 0.0f (center)
float ndc_left = timeToNDC(100.0f, params); // Returns -1.0f
float ndc_right = timeToNDC(200.0f, params); // Returns +1.0ffunction ndcToTime
float ndcToTime(
float ndc_x,
TimeAxisParams const & params
)Convert NDC X coordinate to time coordinate.
Parameters:
- ndc_x NDC X coordinate (typically in range [-1, +1])
- params Time axis parameters (time range)
Return: Time coordinate
Inverse of timeToNDC. Maps NDC range [-1, +1] back to time coordinates.
Example:
TimeAxisParams params(100, 200, 800);
float time = ndcToTime(0.0f, params); // Returns 150.0f (center)function pixelsPerTimeUnit
float pixelsPerTimeUnit(
TimeAxisParams const & params
)Calculate pixels per time unit.
Parameters:
- params Time axis parameters
Return: Pixels per time unit (can be fractional)
Useful for determining how much screen space a time interval covers, or for scaling glyphs/markers based on current zoom level.
function timeUnitsPerPixel
float timeUnitsPerPixel(
TimeAxisParams const & params
)Calculate time units per pixel.
Parameters:
- params Time axis parameters
Return: Time units per pixel
Inverse of pixelsPerTimeUnit. Useful for determining tolerance values for hit testing (e.g., “click within 5 pixels” → “click within 5 * timeUnitsPerPixel).
function canvasYToWorldY
float canvasYToWorldY(
float canvas_y,
YAxisParams const & params
)Convert canvas Y pixel coordinate to world Y coordinate.
Parameters:
- canvas_y Y position in pixels (0 = top of canvas)
- params Y axis parameters (world bounds, viewport height, pan offset)
Return: World Y coordinate
Maps a pixel position on the canvas to the corresponding world Y value. Canvas coordinates have origin at top-left with Y increasing downward. World coordinates have Y increasing upward.
Example:
YAxisParams params(-1.0f, 1.0f, 600); // World Y from -1 to 1, 600px tall canvas
float world_y = canvasYToWorldY(300.0f, params); // Returns 0.0f (middle)
float world_y_top = canvasYToWorldY(0.0f, params); // Returns 1.0f (top)
float world_y_bot = canvasYToWorldY(600.0f, params); // Returns -1.0f (bottom)function worldYToCanvasY
float worldYToCanvasY(
float world_y,
YAxisParams const & params
)Convert world Y coordinate to canvas Y pixel coordinate.
Parameters:
- world_y World Y coordinate
- params Y axis parameters
Return: Canvas Y position in pixels (0 = top of canvas)
Inverse of canvasYToWorldY. Maps world Y to canvas pixel position.
function worldYToNDC
float worldYToNDC(
float world_y,
YAxisParams const & params
)Convert world Y to Normalized Device Coordinate (NDC).
Parameters:
- world_y World Y coordinate
- params Y axis parameters (pan offset is applied)
Return: NDC Y coordinate in range [-1, +1]
Maps a world Y value to NDC range [-1, +1] for use with projection matrices.
function ndcToWorldY
float ndcToWorldY(
float ndc_y,
YAxisParams const & params
)Convert NDC Y coordinate to world Y coordinate.
Parameters:
- ndc_y NDC Y coordinate (typically in range [-1, +1])
- params Y axis parameters
Return: World Y coordinate
Inverse of worldYToNDC.
function makeTimeAxisParams
inline TimeAxisParams makeTimeAxisParams(
TimeFrameIndex start,
TimeFrameIndex end,
TimeFrame const & master_tf,
int viewport_width
)Build [TimeAxisParams]() from a master-frame index window.
Parameters:
- start Inclusive window start as master
[TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md) - end Inclusive window end as master
[TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md) - master_tf Master time frame for index-to-tick conversion
- viewport_width Viewport width in pixels
Return: TimeAxisParams with tick endpoints ready for coordinate conversion
Precondition: start and end are valid indices into master_tf
Converts inclusive master [TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md) bounds to absolute clock ticks via [TimeFrame::getTimeAtIndex](/api_generated/Classes/classTimeFrame.md#function-gettimeatindex).
function calculateVisibleWorldBounds
BoundingBox calculateVisibleWorldBounds(
ViewState const & state
)Calculates the visible world rectangle based on the ViewState.
This logic determines what part of the world is currently seen by the camera.
function computeMatricesFromViewState
void computeMatricesFromViewState(
ViewState const & state,
glm::mat4 & view_matrix,
glm::mat4 & proj_matrix
)Computes the View and Projection matrices from the ViewState.
Parameters:
- state The current ViewState.
- view_matrix Resulting View Matrix.
- proj_matrix Resulting Projection Matrix.
This implements the “World Space Strategy”:
- View Matrix: Identity (usually, unless we want to separate Camera Pan from Projection Window)
- Projection Matrix: Orthographic projection of the Visible World Bounds.
function screenToWorld
glm::vec2 screenToWorld(
ViewState const & state,
int screen_x,
int screen_y
)Converts screen coordinates to world coordinates using ViewState logic.
function worldToScreen
glm::vec2 worldToScreen(
ViewState const & state,
float world_x,
float world_y
)Converts world coordinates to screen coordinates using ViewState logic.
function applyBoxZoom
void applyBoxZoom(
ViewState & state,
BoundingBox const & bounds
)Applies a box zoom to the ViewState.
Adjusts zoom levels and pan offsets so that the specified world bounds fill the viewport (respecting aspect ratio).
function resetView
void resetView(
ViewState & state
)Resets the view to fit the data bounds.
function toRuntimeViewState
ViewState toRuntimeViewState(
ViewStateData const & data,
int viewport_width,
int viewport_height,
float padding_factor =1.0f
)Promote a serializable ViewStateData to a full runtime ViewState.
Parameters:
- data The serializable view state data.
- viewport_width Current viewport width in pixels.
- viewport_height Current viewport height in pixels.
- padding_factor Optional padding around data bounds (default 1.0).
Return: The runtime ViewState ready for matrix computation.
This is the standard way to go from the persisted camera configuration to the runtime struct consumed by calculateVisibleWorldBounds(), computeMatricesFromViewState(), screenToWorld(), worldToScreen(), etc.
The conversion maps the “relative zoom/pan” semantics used by the Plots/ widgets into the “normalized pan” semantics of ViewState:
| ViewStateData | ViewState | Notes |
|---|---|---|
| x_zoom, y_zoom | zoom_level_x/y | Direct pass-through |
| x_pan, y_pan | pan_offset_x/y | Normalized: pan / (range / zoom) |
| x_min … y_max | data_bounds | Packed into BoundingBox |
function computeEffectiveYViewport
inline EffectiveYViewport computeEffectiveYViewport(
ViewStateData const & vs
)Compute the effective Y viewport range after applying zoom and pan.
Parameters:
- vs The view state containing y_min, y_max, y_zoom, and y_pan.
Return: EffectiveYViewport with the zoomed and panned Y bounds.
function alphaCurveToString
inline std::string alphaCurveToString(
AlphaCurve curve
)Convert AlphaCurve enum to string for serialization.
function alphaCurveFromString
inline AlphaCurve alphaCurveFromString(
std::string const & str
)Parse AlphaCurve from string for deserialization.
Parameters:
- str String representation (“linear”, “exponential”, “gaussian”)
Return: Corresponding AlphaCurve enum value (defaults to Linear for unknown strings)
function computeTemporalAlpha
inline float computeTemporalAlpha(
int distance,
int half_width,
AlphaCurve curve =AlphaCurve::Linear,
float min_alpha =0.1f,
float max_alpha =1.0f
)Compute alpha (opacity) value based on temporal distance.
Parameters:
- distance Absolute temporal distance from window center (non-negative)
- half_width Half-width of the temporal window (positive). Elements at exactly half_width get min_alpha.
- curve Type of interpolation curve
- min_alpha Minimum alpha at the window edge [0, 1]
- max_alpha Maximum alpha at the window center [0, 1]
Return: Alpha value in [min_alpha, max_alpha]
Note:
- If distance > half_width, returns min_alpha (clipped)
- If half_width <= 0, returns max_alpha
Maps an absolute temporal distance to an alpha value in [min_alpha, max_alpha]. At distance == 0 (center of window), returns max_alpha. At distance >= half_width (edge of window), returns min_alpha.
function computeTemporalAlpha
inline float computeTemporalAlpha(
float distance,
float half_width,
AlphaCurve curve =AlphaCurve::Linear,
float min_alpha =0.1f,
float max_alpha =1.0f
)Convenience overload using float distance (for non-integer time bases).
function toRenderableGlyphType
inline RenderableGlyphBatch::GlyphType toRenderableGlyphType(
GlyphType type
)Convert a user-facing GlyphType to the rendering-level GlyphType.
Parameters:
- type User-facing glyph type
Return: Rendering-level glyph type
Types not yet supported by the renderer (Diamond, Triangle) fall back to Circle so rendering never fails.
function hexColorToVec4
inline glm::vec4 hexColorToVec4(
std::string_view hex,
float alpha =1.0f
)Parse a hex color string to RGBA glm::vec4.
Parameters:
- hex Hex color string (e.g., “#ff0000”)
- alpha Alpha override [0.0, 1.0]
Return: RGBA color as glm::vec4
Supports “#RRGGBB” format. Returns white on parse failure.
function operator==
inline bool operator==(
LayoutTransform const & a,
LayoutTransform const & b
)Equality comparison.
function operator!=
inline bool operator!=(
LayoutTransform const & a,
LayoutTransform const & b
)function buildLineBatchFromLineData
LineBatchData buildLineBatchFromLineData(
LineData const & line_data,
float canvas_width,
float canvas_height
)Build a LineBatchData from LineData (TemporalProjectionViewWidget use case).
Parameters:
- line_data The source line data.
- canvas_width Width of the canvas (stored in output).
- canvas_height Height of the canvas (stored in output).
Return: Populated LineBatchData with all lines visible and none selected.
Each line in the LineData becomes a logical line in the batch. EntityIds are preserved in LineInfo::entity_id. The line coordinates are stored as-is (world space).
function buildLineBatchFromGatherResult
LineBatchData buildLineBatchFromGatherResult(
GatherResult< AnalogTimeSeries > const & gathered
)Build a LineBatchData from GatherResult
Parameters:
- gathered The gathered analog time series (one per trial).
Return: Populated LineBatchData with all lines visible and none selected.
Precondition: gathered must provide alignment metadata through alignmentTimeAt().
Postcondition: X = timeFrameIndex - gathered.alignmentTimeAt(trial).
Each trial in the GatherResult becomes a logical line in the batch. Trial indices are stored in LineInfo::trial_index.
The x-coordinates are the TimeFrameIndex values (relative to the alignment time for that trial), and y-coordinates are the analog sample values.
function buildLineBatchFromGatherResult
LineBatchData buildLineBatchFromGatherResult(
GatherResult< AnalogTimeSeries > const & gathered,
std::vector< ClockTicks > const & alignment_times
)Build a LineBatchData from GatherResult
Parameters:
- gathered The gathered analog time series (one per trial).
- alignment_times Per-trial alignment times. Must have the same size as
gatheredfor every trial to use an override.
Return: Populated LineBatchData with all lines visible and none selected.
Postcondition: X = timeFrameIndex - alignment_times[trial] when available, otherwise raw time.
function decimatePolyLineBatchMinMax
RenderablePolyLineBatch decimatePolyLineBatchMinMax(
RenderablePolyLineBatch const & in,
MinMaxDecimationParams params
)Apply min–max decimation to each line strip in in.
Parameters:
- in Source batch (unchanged).
- params
bucket_count<= 0 returns a copy ofin.
Return: Decimated batch; metadata (thickness, model_matrix, colors, entity ids) is copied from in.
Precondition: When params.bucket_count > 0, in.line_start_indices.size() == in.line_vertex_counts.size(). If sizes differ, in is returned unchanged.
Postcondition: Returned batch has the same number of logical lines as in when decimation runs.
For each logical line (parallel line_start_indices / line_vertex_counts), vertices are partitioned into bucket_count uniform buckets along x (or by sample index when x span is degenerate). Each non-empty bucket contributes up to two points: the point with minimum y and the point with maximum y (emit in increasing x order). The first and last vertices of each strip are always included (with consecutive duplicates removed).
function makeLineView
template <std::ranges::input_range R>
auto makeLineView(
EntityId id,
R const & points,
float x_scale =1.0f,
float y_scale =1.0f,
float x_offset =0.0f,
float y_offset =0.0f
)Create a line view from a contiguous range of Point2D.
Parameters:
- id Entity identifier
- points Range of Point2D
- x_scale X coordinate scale factor
- y_scale Y coordinate scale factor
- x_offset X coordinate offset (applied after scaling)
- y_offset Y coordinate offset (applied after scaling)
Applies spatial layout transform (scale + offset) lazily.
function makeTimeSeriesLineView
template <std::ranges::input_range R>
auto makeTimeSeriesLineView(
EntityId id,
R const & time_value_pairs,
TimeFrame const & time_frame,
float y_scale =1.0f,
float y_offset =0.0f
)Create a line view with time-to-X mapping for analog series.
Parameters:
- id Entity identifier
- time_value_pairs Range of (TimeFrameIndex, float) pairs
- time_frame TimeFrame for index-to-time conversion
- y_scale Y coordinate scale factor
- y_offset Y coordinate offset
Attributes Documentation
variable is_mapped_element_v
bool is_mapped_element_v = MappedElementLike<T>;Check if a type is a valid mapper output type.
variable is_mapped_rect_v
bool is_mapped_rect_v = MappedRectLike<T>;variable is_mapped_vertex_v
bool is_mapped_vertex_v = MappedVertexLike<T>;variable is_element_range_v
bool is_element_range_v = MappedElementRange<R>;Check if a range yields mappable elements.
variable is_rect_range_v
bool is_rect_range_v = MappedRectRange<R>;variable is_vertex_range_v
bool is_vertex_range_v = MappedVertexRange<R>;variable is_line_range_v
bool is_line_range_v = MappedLineRange<R>;Updated on 2026-11-13 at 20:25:42 +0000