Skip to content

Class QAccelPlot::InspectionRowModel

ClassList > QAccelPlot > InspectionRowModel

List model with one stable row per inspected series. More...

  • #include <InspectionRowModel.hpp>

Inherits the following classes: QAbstractListModel

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1InspectionRowModel["QAccelPlot::InspectionRowModel"]

  external_base_classQAccelPlot_1_1InspectionRowModel_1["QAbstractListModel"]
  external_base_classQAccelPlot_1_1InspectionRowModel_1 --> classQAccelPlot_1_1InspectionRowModel

Public Types

Type Name
enum Role
Data roles; the QML role names are listed in the class description.

Public Properties

Type Name
property QML_ANONYMOUSint count
Number of rows.

Public Signals

Type Name
signal void countChanged
Emitted when the count property changes.

Public Functions

Type Name
InspectionRowModel (QObject * parent=nullptr)
Constructs an empty model.
int count () const
Returns the number of rows.
QVariant data (const QModelIndex & index, int role) override const
Returns the value of role for the row at__index .
Q_INVOKABLE QVariantMap get (int row) const
Returns every role of row keyed by role name, or an empty map when out of range.
void retainSeries (const QList< PlotSeries * > & series)
Removes rows whose series is destroyed or not in series .
QHash< int, QByteArray > roleNames () override const
Returns the QML role names.
int rowCount (const QModelIndex & parent={}) override const
Returns the number of rows.
const QList< InspectionRow > & rows () const
Returns the current rows.
void setRows (const QList< InspectionRow > & rows)
Replaces the rows, updating them in place when the series are unchanged.

Detailed Description

Provided by PlotInspector::model and SelectionTool::model. Rows are added and removed only when the set of inspected series changes; cursor movement updates rows in place, so delegates are reused.

Roles: series, seriesName, seriesColor, valid, dataPointStatus, dataPointIndex, dataPointX, dataPointY, dataPointValue, xText, yText, valueText, pixelX, pixelY, distance, interpolated, hasSummary, summaryStatus, summaryCount, minimum, maximum, mean, standardDeviation, minimumIndex, maximumIndex, minimumText, maximumText, and meanText.

pixelX and pixelY are in plot-local logical pixels, unlike the series-local InspectionDataPoint::pixelX and InspectionDataPoint::pixelY.

Public Types Documentation

enum Role

Data roles; the QML role names are listed in the class description.

enum QAccelPlot::InspectionRowModel::Role {
    SeriesRole = Qt::UserRole + 1,
    SeriesNameRole,
    SeriesColorRole,
    ValidRole,
    DataPointStatusRole,
    DataPointIndexRole,
    DataPointXRole,
    DataPointYRole,
    DataPointValueRole,
    XTextRole,
    YTextRole,
    ValueTextRole,
    PixelXRole,
    PixelYRole,
    DistanceRole,
    InterpolatedRole,
    HasSummaryRole,
    SummaryStatusRole,
    SummaryCountRole,
    MinimumRole,
    MaximumRole,
    MeanRole,
    StandardDeviationRole,
    MinimumIndexRole,
    MaximumIndexRole,
    MinimumTextRole,
    MaximumTextRole,
    MeanTextRole
};


Public Properties Documentation

property count

Number of rows.

QML_ANONYMOUSint QAccelPlot::InspectionRowModel::count;


Public Signals Documentation

signal countChanged

Emitted when the count property changes.

void QAccelPlot::InspectionRowModel::countChanged;


Public Functions Documentation

function InspectionRowModel

Constructs an empty model.

explicit QAccelPlot::InspectionRowModel::InspectionRowModel (
    QObject * parent=nullptr
) 


function count

Returns the number of rows.

int QAccelPlot::InspectionRowModel::count () const


function data

Returns the value of role for the row at__index .

QVariant QAccelPlot::InspectionRowModel::data (
    const QModelIndex & index,
    int role
) override const


function get

Returns every role of row keyed by role name, or an empty map when out of range.

Q_INVOKABLE QVariantMap QAccelPlot::InspectionRowModel::get (
    int row
) const


function retainSeries

Removes rows whose series is destroyed or not in series .

void QAccelPlot::InspectionRowModel::retainSeries (
    const QList< PlotSeries * > & series
) 


function roleNames

Returns the QML role names.

QHash< int, QByteArray > QAccelPlot::InspectionRowModel::roleNames () override const


function rowCount

Returns the number of rows.

int QAccelPlot::InspectionRowModel::rowCount (
    const QModelIndex & parent={}
) override const


function rows

Returns the current rows.

const QList< InspectionRow > & QAccelPlot::InspectionRowModel::rows () const


function setRows

Replaces the rows, updating them in place when the series are unchanged.

void QAccelPlot::InspectionRowModel::setRows (
    const QList< InspectionRow > & rows
) 



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