Skip to content

Class QAccelPlot::Internal::InspectionIndex

ClassList > QAccelPlot > Internal > InspectionIndex

Immutable k-d tree over the valid data points of a series, with their order along each axis.

  • #include <InspectionIndex.hpp>

Classes

Type Name
struct Point

Public Functions

Type Name
bool build (std::vector< Point > && points, bool logX, bool logY, const std::atomic_bool & cancelled)
Builds the tree from points ; returns false when__cancelled was set meanwhile.
void collect (const InspectionBounds & bounds, int offset, int limit, QList< int > & indices) const
InspectionHit nearest (const InspectionMetric & metric, const QPointF & position, double radius) const
InspectionHit nearestAlong (const InspectionMetric & metric, InspectionAxis axis, double pixel, double radius) const
Returns the data point nearest to pixel along__axis .
InspectionNeighbors neighbors (InspectionAxis axis, double value) const
Returns the data points on either side of value on__axis .
std::size_t storageBytes () const
SummaryAccumulator summarize (const InspectionBounds & bounds) const

Public Functions Documentation

function build

Builds the tree from points ; returns false when__cancelled was set meanwhile.

bool QAccelPlot::Internal::InspectionIndex::build (
    std::vector< Point > && points,
    bool logX,
    bool logY,
    const std::atomic_bool & cancelled
) 


function collect

void QAccelPlot::Internal::InspectionIndex::collect (
    const InspectionBounds & bounds,
    int offset,
    int limit,
    QList< int > & indices
) const

function nearest

InspectionHit QAccelPlot::Internal::InspectionIndex::nearest (
    const InspectionMetric & metric,
    const QPointF & position,
    double radius
) const

function nearestAlong

Returns the data point nearest to pixel along__axis .

InspectionHit QAccelPlot::Internal::InspectionIndex::nearestAlong (
    const InspectionMetric & metric,
    InspectionAxis axis,
    double pixel,
    double radius
) const


function neighbors

Returns the data points on either side of value on__axis .

InspectionNeighbors QAccelPlot::Internal::InspectionIndex::neighbors (
    InspectionAxis axis,
    double value
) const


function storageBytes

std::size_t QAccelPlot::Internal::InspectionIndex::storageBytes () const

function summarize

SummaryAccumulator QAccelPlot::Internal::InspectionIndex::summarize (
    const InspectionBounds & bounds
) const


The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/inspection/internal/InspectionIndex.hpp