vtkQtChartTableSeriesModel Class Reference

#include <vtkQtChartTableSeriesModel.h>

Inheritance diagram for vtkQtChartTableSeriesModel:

Inheritance graph
[legend]
Collaboration diagram for vtkQtChartTableSeriesModel:

Collaboration graph
[legend]

List of all members.


Detailed Description

The vtkQtChartTableSeriesModel class is a chart series model proxy for a QAbstractItemModel table.

Definition at line 39 of file vtkQtChartTableSeriesModel.h.


Public Member Functions

 vtkQtChartTableSeriesModel (QAbstractItemModel *model, QObject *parent=0)
 Creates a table series model.
virtual ~vtkQtChartTableSeriesModel ()
bool getColumnsAsSeries () const
 Gets whether or not columns are series.
void setColumnsAsSeries (bool columnsAsSeries)
 Sets whether or not columns are series.
vtkQtChartSeriesModel Methods
virtual int getNumberOfSeries () const
 Gets the number of series in the model.
virtual int getNumberOfSeriesValues (int series) const
 Gets the number of values in a series.
virtual QVariant getSeriesName (int series) const
 Gets the name for the given series.
virtual QVariant getSeriesValue (int series, int index, int component) const
 Gets the series value for the given index and component.
virtual QList< QVariant > getSeriesRange (int series, int component) const
 Gets the value range for a series component.

Protected Slots

void rowsAboutToBeInserted (const QModelIndex &index, int first, int last)
 Called when the item model is about to insert rows.
void rowsInserted (const QModelIndex &index, int first, int last)
 Called when the item model has inserted rows.
void columnsAboutToBeInserted (const QModelIndex &index, int first, int last)
 Called when the item model is about to insert columns.
void columnsInserted (const QModelIndex &index, int first, int last)
 Called when the item model has inserted columns.
void rowsAboutToBeRemoved (const QModelIndex &index, int first, int last)
 Called when the item model is about to remove rows.
void rowsRemoved (const QModelIndex &index, int first, int last)
 Called when the item model has removed rows.
void columnsAboutToBeRemoved (const QModelIndex &index, int first, int last)
 Called when the item model is about to remove columns.
void columnsRemoved (const QModelIndex &index, int first, int last)
 Called when the item model has removed columns.

Protected Attributes

QAbstractItemModel * Model
 Stores the item model.
vtkQtChartSeriesModelRangeRange
 Stores the series ranges.
bool ColumnsAsSeries
 True if columns are series.

Constructor & Destructor Documentation

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 (  )  [inline, virtual]

Definition at line 50 of file vtkQtChartTableSeriesModel.h.


Member Function Documentation

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:
series The series index.
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:
series The series index.
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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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 
) [protected, slot]

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.


Member Data Documentation

QAbstractItemModel* vtkQtChartTableSeriesModel::Model [protected]

Stores the item model.

Definition at line 130 of file vtkQtChartTableSeriesModel.h.

Stores the series ranges.

Definition at line 131 of file vtkQtChartTableSeriesModel.h.

True if columns are series.

Definition at line 132 of file vtkQtChartTableSeriesModel.h.


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

Generated on Wed Jun 3 19:28:44 2009 for VTK by  doxygen 1.5.6