DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DynExpQuick::DynExpLineGraphPlotModel Class Reference

#include <QDynExpLineGraph.h>

+ Inheritance diagram for DynExpQuick::DynExpLineGraphPlotModel:

Public Types

enum  Roles { NameRole = Qt::UserRole + 1 , VisibleRole , NumSamplesRole , ColorRole }
 

Public Member Functions

 DynExpLineGraphPlotModel (QObject *Parent=nullptr)
 
 ~DynExpLineGraphPlotModel ()=default
 
size_t InsertSeries (QString Name, QColor Color)
 
void RemoveSeries (size_t Index)
 
size_t GetNumSeries () const noexcept
 
QStringList GetSeriesNames () const
 
size_t GetIndex (QString Name) const
 
const DynExpLineGraphPlotSeriesGetSeries (size_t Index) const
 
DynExpLineGraphPlotSeriesGetSeries (size_t Index)
 
bool IsAnyLineSeriesVisible () const
 
void SeriesChanged (size_t Index)
 

Private Member Functions

QHash< int, QByteArray > roleNames () const override
 
Qt::ItemFlags flags (const QModelIndex &) const override
 
int rowCount (const QModelIndex &) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 

Private Attributes

std::vector< DynExpLineGraphPlotSeriesPlotSeries
 

Detailed Description

Definition at line 34 of file QDynExpLineGraph.h.

Member Enumeration Documentation

◆ Roles

Enumerator
NameRole 
VisibleRole 
NumSamplesRole 
ColorRole 

Definition at line 39 of file QDynExpLineGraph.h.

Constructor & Destructor Documentation

◆ DynExpLineGraphPlotModel()

DynExpQuick::DynExpLineGraphPlotModel::DynExpLineGraphPlotModel ( QObject *  Parent = nullptr)
inline

Definition at line 41 of file QDynExpLineGraph.h.

◆ ~DynExpLineGraphPlotModel()

DynExpQuick::DynExpLineGraphPlotModel::~DynExpLineGraphPlotModel ( )
default

Member Function Documentation

◆ data()

QVariant DynExpQuick::DynExpLineGraphPlotModel::data ( const QModelIndex &  index,
int  role 
) const
overrideprivate

Definition at line 116 of file QDynExpLineGraph.cpp.

◆ flags()

Qt::ItemFlags DynExpQuick::DynExpLineGraphPlotModel::flags ( const QModelIndex &  ) const
overrideprivate

Definition at line 106 of file QDynExpLineGraph.cpp.

◆ GetIndex()

size_t DynExpQuick::DynExpLineGraphPlotModel::GetIndex ( QString  Name) const

Definition at line 51 of file QDynExpLineGraph.cpp.

◆ GetNumSeries()

size_t DynExpQuick::DynExpLineGraphPlotModel::GetNumSeries ( ) const
inlinenoexcept

Definition at line 46 of file QDynExpLineGraph.h.

◆ GetSeries() [1/2]

DynExpLineGraphPlotSeries & DynExpQuick::DynExpLineGraphPlotModel::GetSeries ( size_t  Index)

Definition at line 76 of file QDynExpLineGraph.cpp.

◆ GetSeries() [2/2]

const DynExpLineGraphPlotSeries & DynExpQuick::DynExpLineGraphPlotModel::GetSeries ( size_t  Index) const

Definition at line 68 of file QDynExpLineGraph.cpp.

◆ GetSeriesNames()

QStringList DynExpQuick::DynExpLineGraphPlotModel::GetSeriesNames ( ) const

Definition at line 41 of file QDynExpLineGraph.cpp.

◆ InsertSeries()

size_t DynExpQuick::DynExpLineGraphPlotModel::InsertSeries ( QString  Name,
QColor  Color 
)

Definition at line 16 of file QDynExpLineGraph.cpp.

◆ IsAnyLineSeriesVisible()

bool DynExpQuick::DynExpLineGraphPlotModel::IsAnyLineSeriesVisible ( ) const

Definition at line 81 of file QDynExpLineGraph.cpp.

◆ RemoveSeries()

void DynExpQuick::DynExpLineGraphPlotModel::RemoveSeries ( size_t  Index)

Definition at line 29 of file QDynExpLineGraph.cpp.

◆ roleNames()

QHash< int, QByteArray > DynExpQuick::DynExpLineGraphPlotModel::roleNames ( ) const
overrideprivate

Definition at line 96 of file QDynExpLineGraph.cpp.

◆ rowCount()

int DynExpQuick::DynExpLineGraphPlotModel::rowCount ( const QModelIndex &  ) const
overrideprivate

Definition at line 111 of file QDynExpLineGraph.cpp.

◆ SeriesChanged()

void DynExpQuick::DynExpLineGraphPlotModel::SeriesChanged ( size_t  Index)

Definition at line 86 of file QDynExpLineGraph.cpp.

◆ setData()

bool DynExpQuick::DynExpLineGraphPlotModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
overrideprivate

Definition at line 134 of file QDynExpLineGraph.cpp.

Member Data Documentation

◆ PlotSeries

std::vector<DynExpLineGraphPlotSeries> DynExpQuick::DynExpLineGraphPlotModel::PlotSeries
private

Definition at line 65 of file QDynExpLineGraph.h.


The documentation for this class was generated from the following files: