Skip to main content

CorePlotting::ILineBatchIntersector

CorePlotting::ILineBatchIntersector

Abstract intersection query interface. More…

#include <ILineBatchIntersector.hpp>

Inherited by CorePlotting::CpuLineBatchIntersector, PlottingOpenGL::ComputeShaderIntersector

Public Functions

Name
virtual ~ILineBatchIntersector() =default
virtual LineIntersectionResult intersect(LineBatchData const & batch, LineIntersectionQuery const & query) const =0
Find all lines in batch whose segments intersect the query line.

Detailed Description

class CorePlotting::ILineBatchIntersector;

Abstract intersection query interface.

Implementations may run on the CPU or dispatch to a GPU compute shader. Consumers call [intersect()](/api_generated/Classes/classCorePlotting_1_1ILineBatchIntersector.md#function-intersect) identically regardless of backend.

Public Functions Documentation

function ~ILineBatchIntersector

virtual ~ILineBatchIntersector() =default

function intersect

virtual LineIntersectionResult intersect(
    LineBatchData const & batch,
    LineIntersectionQuery const & query
) const =0

Find all lines in batch whose segments intersect the query line.

Parameters:

  • batch The batch of line segments to test against.
  • query The query line and transform parameters.

Return: Indices of intersected lines (0-based into batch.lines).

Reimplemented by: CorePlotting::CpuLineBatchIntersector::intersect, PlottingOpenGL::ComputeShaderIntersector::intersect

Only visible lines (visibility_mask == 1) are tested.


Updated on 2026-11-13 at 20:25:42 +0000