JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies

data model with all plots ina JKQTBasePlotter (+ allows to switch them visible/invisible) More...

#include <jkqtpgraphsmodel.h>

Inheritance diagram for JKQTPGraphsModel:
Collaboration diagram for JKQTPGraphsModel:

Public Slots

void plotUpdated ()
 

Public Member Functions

 JKQTPGraphsModel (JKQTBasePlotter *parent)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 

Private Attributes

JKQTBasePlotterm_plotter
 

Detailed Description

data model with all plots ina JKQTBasePlotter (+ allows to switch them visible/invisible)

This class is derived from QAbstractTableModel and implements a model where some properties are editable. It is designed to be used together with e.g. QListView.

Constructor & Destructor Documentation

◆ JKQTPGraphsModel()

JKQTPGraphsModel::JKQTPGraphsModel ( JKQTBasePlotter parent)

Member Function Documentation

◆ columnCount()

int JKQTPGraphsModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant JKQTPGraphsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ flags()

Qt::ItemFlags JKQTPGraphsModel::flags ( const QModelIndex &  index) const
override

◆ plotUpdated

void JKQTPGraphsModel::plotUpdated ( )
slot

◆ rowCount()

int JKQTPGraphsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ setData()

bool JKQTPGraphsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

Member Data Documentation

◆ m_plotter

JKQTBasePlotter* JKQTPGraphsModel::m_plotter
private

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