The vtkQtChartTableSeriesModel class is a chart series model proxy for a QAbstractItemModel table.
More...
#include <vtkQtChartTableSeriesModel.h>
|
void | rowsAboutToBeInserted (const QModelIndex &index, int first, int last) |
| Called when the item model is about to insert rows. More...
|
|
void | rowsInserted (const QModelIndex &index, int first, int last) |
| Called when the item model has inserted rows. More...
|
|
void | columnsAboutToBeInserted (const QModelIndex &index, int first, int last) |
| Called when the item model is about to insert columns. More...
|
|
void | columnsInserted (const QModelIndex &index, int first, int last) |
| Called when the item model has inserted columns. More...
|
|
void | rowsAboutToBeRemoved (const QModelIndex &index, int first, int last) |
| Called when the item model is about to remove rows. More...
|
|
void | rowsRemoved (const QModelIndex &index, int first, int last) |
| Called when the item model has removed rows. More...
|
|
void | columnsAboutToBeRemoved (const QModelIndex &index, int first, int last) |
| Called when the item model is about to remove columns. More...
|
|
void | columnsRemoved (const QModelIndex &index, int first, int last) |
| Called when the item model has removed columns. More...
|
|
The vtkQtChartTableSeriesModel class is a chart series model proxy for a QAbstractItemModel table.
Definition at line 39 of file vtkQtChartTableSeriesModel.h.
vtkQtChartTableSeriesModel::vtkQtChartTableSeriesModel |
( |
QAbstractItemModel * |
model, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Creates a table series model.
- Parameters
-
model | The item model to display. |
parent | The parent object. |
virtual vtkQtChartTableSeriesModel::~vtkQtChartTableSeriesModel |
( |
| ) |
|
|
inlinevirtual |
QAbstractItemModel* vtkQtChartTableSeriesModel::getItemModel |
( |
| ) |
const |
|
inline |
void vtkQtChartTableSeriesModel::setItemModel |
( |
QAbstractItemModel * |
model | ) |
|
Sets the item model.
- Parameters
-
bool vtkQtChartTableSeriesModel::getColumnsAsSeries |
( |
| ) |
const |
Gets whether or not columns are series.
- Returns
- True if columns are series.
void vtkQtChartTableSeriesModel::setColumnsAsSeries |
( |
bool |
columnsAsSeries | ) |
|
Sets whether or not columns are series.
- Parameters
-
columnsAsSeries | True if columns are series. |
virtual int vtkQtChartTableSeriesModel::getNumberOfSeries |
( |
| ) |
const |
|
virtual |
Gets the number of series in the model.
- Returns
- The number of series in the model.
Implements vtkQtChartSeriesModel.
virtual int vtkQtChartTableSeriesModel::getNumberOfSeriesValues |
( |
int |
series | ) |
const |
|
virtual |
Gets the number of values in a series.
- Parameters
-
- Returns
- The number of values in a series.
Implements vtkQtChartSeriesModel.
virtual QVariant vtkQtChartTableSeriesModel::getSeriesName |
( |
int |
series | ) |
const |
|
virtual |
Gets the name for the given series.
- Parameters
-
- Returns
- The name for the given series.
Implements vtkQtChartSeriesModel.
virtual QVariant vtkQtChartTableSeriesModel::getSeriesValue |
( |
int |
series, |
|
|
int |
index, |
|
|
int |
component |
|
) |
| const |
|
virtual |
Gets the series value for the given index and component.
- Parameters
-
series | The series index. |
index | The index in the given series. |
component | The component index. |
- Returns
- The series value for the given index and component.
Implements vtkQtChartSeriesModel.
virtual QList<QVariant> vtkQtChartTableSeriesModel::getSeriesRange |
( |
int |
series, |
|
|
int |
component |
|
) |
| const |
|
virtual |
Gets the value range for a series component.
- Parameters
-
series | The series index. |
component | The component index. |
- Returns
- The value range for a series component.
Implements vtkQtChartSeriesModel.
void vtkQtChartTableSeriesModel::rowsAboutToBeInserted |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model is about to insert rows.
- Parameters
-
index | The parent model index. |
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartTableSeriesModel::rowsInserted |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model has inserted rows.
- Parameters
-
index | The parent model index. |
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartTableSeriesModel::columnsAboutToBeInserted |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model is about to insert columns.
- Parameters
-
index | The parent model index. |
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartTableSeriesModel::columnsInserted |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model has inserted columns.
- Parameters
-
index | The parent model index. |
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartTableSeriesModel::rowsAboutToBeRemoved |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model is about to remove rows.
- Parameters
-
index | The parent model index. |
first | The first index of the removal range. |
last | The last index of the removal range. |
void vtkQtChartTableSeriesModel::rowsRemoved |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model has removed rows.
- Parameters
-
index | The parent model index. |
first | The first index of the removal range. |
last | The last index of the removal range. |
void vtkQtChartTableSeriesModel::columnsAboutToBeRemoved |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model is about to remove columns.
- Parameters
-
index | The parent model index. |
first | The first index of the removal range. |
last | The last index of the removal range. |
void vtkQtChartTableSeriesModel::columnsRemoved |
( |
const QModelIndex & |
index, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when the item model has removed columns.
- Parameters
-
index | The parent model index. |
first | The first index of the removal range. |
last | The last index of the removal range. |
QAbstractItemModel* vtkQtChartTableSeriesModel::Model |
|
protected |
bool vtkQtChartTableSeriesModel::ColumnsAsSeries |
|
protected |
The documentation for this class was generated from the following file: