Skip to content

Class QAccelPlot::Internal::SourceInspection

ClassList > QAccelPlot > Internal > SourceInspection

Inspection queries that read a series' own buffer whose records are ordered along one axis. More...

  • #include <SourceInspection.hpp>

Public Functions

Type Name
void appended (int count)
Updates cached statistics after one record was appended, giving count records.
void collect (const InspectionSource & source, InspectionAxis order, const InspectionBounds & bounds, int offset, int limit, QList< int > & indices)
InspectionHit nearest (const InspectionSource & source, const InspectionMetric & metric, InspectionAxis order, const QPointF & position, double radius)
InspectionHit nearestAlong (const InspectionSource & source, const InspectionMetric & metric, InspectionAxis order, double pixel, double radius) const
Returns the valid data point nearest to pixel along the ordered axis.
InspectionNeighbors neighbors (const InspectionSource & source, InspectionAxis order, double value) const
Returns the valid data points on either side of value on the ordered axis.
void reset ()
Discards cached statistics after the records were replaced or their validity changed.
std::size_t storageBytes () const
Returns the bytes held by cached statistics.
SummaryAccumulator summarize (const InspectionSource & source, InspectionAxis order, const InspectionBounds & bounds)

Public Static Functions

Type Name
bool isSorted (const InspectionSource & source, InspectionAxis axis)
Returns true when every coordinate of source along__axis is finite and not smaller than its predecessor.

Detailed Description

The order argument names the axis whose coordinates are finite and non-decreasing. Positions along it are found by binary search, so no index is built and appended records are visible immediately. Per-block extents and Y statistics are cached lazily to answer large region summaries and to prune nearest-point searches.

Public Functions Documentation

function appended

Updates cached statistics after one record was appended, giving count records.

void QAccelPlot::Internal::SourceInspection::appended (
    int count
) 


function collect

void QAccelPlot::Internal::SourceInspection::collect (
    const InspectionSource & source,
    InspectionAxis order,
    const InspectionBounds & bounds,
    int offset,
    int limit,
    QList< int > & indices
) 

function nearest

InspectionHit QAccelPlot::Internal::SourceInspection::nearest (
    const InspectionSource & source,
    const InspectionMetric & metric,
    InspectionAxis order,
    const QPointF & position,
    double radius
) 

function nearestAlong

Returns the valid data point nearest to pixel along the ordered axis.

InspectionHit QAccelPlot::Internal::SourceInspection::nearestAlong (
    const InspectionSource & source,
    const InspectionMetric & metric,
    InspectionAxis order,
    double pixel,
    double radius
) const


function neighbors

Returns the valid data points on either side of value on the ordered axis.

InspectionNeighbors QAccelPlot::Internal::SourceInspection::neighbors (
    const InspectionSource & source,
    InspectionAxis order,
    double value
) const


function reset

Discards cached statistics after the records were replaced or their validity changed.

void QAccelPlot::Internal::SourceInspection::reset () 


function storageBytes

Returns the bytes held by cached statistics.

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


function summarize

SummaryAccumulator QAccelPlot::Internal::SourceInspection::summarize (
    const InspectionSource & source,
    InspectionAxis order,
    const InspectionBounds & bounds
) 

Public Static Functions Documentation

function isSorted

Returns true when every coordinate of source along__axis is finite and not smaller than its predecessor.

static bool QAccelPlot::Internal::SourceInspection::isSorted (
    const InspectionSource & source,
    InspectionAxis axis
) 



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