The vtkQtChartSeriesModelCollection class is used to combine chart series models.
More...
#include <vtkQtChartSeriesModelCollection.h>
The vtkQtChartSeriesModelCollection class is used to combine chart series models.
The collection maps the overall series index to the model specific series index.
Definition at line 38 of file vtkQtChartSeriesModelCollection.h.
| vtkQtChartSeriesModelCollection::vtkQtChartSeriesModelCollection |
( |
QObject * |
parent = 0 | ) |
|
Creates a chart series model collection.
- Parameters
-
| virtual vtkQtChartSeriesModelCollection::~vtkQtChartSeriesModelCollection |
( |
| ) |
|
|
inlinevirtual |
| virtual int vtkQtChartSeriesModelCollection::getNumberOfSeries |
( |
| ) |
const |
|
virtual |
Gets the number of series in the model.
- Returns
- The number of series in the model.
Implements vtkQtChartSeriesModel.
| virtual int vtkQtChartSeriesModelCollection::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 vtkQtChartSeriesModelCollection::getSeriesName |
( |
int |
series | ) |
const |
|
virtual |
Gets the name for the given series.
- Parameters
-
- Returns
- The name for the given series.
Implements vtkQtChartSeriesModel.
| virtual QVariant vtkQtChartSeriesModelCollection::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> vtkQtChartSeriesModelCollection::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.
Adds a series model to the collection.
- Parameters
-
| model | The series model to add. |
Removes a series model from the collection.
- Parameters
-
| model | The series model to remove. |
| int vtkQtChartSeriesModelCollection::getNumberOfSeriesModels |
( |
| ) |
const |
Gets the number of series models in the collection.
- Returns
- The number of series models in the collection.
Gets the series model at the specified index.
- Parameters
-
| index | The series model index. |
- Returns
- A pointer to the series model.
| int vtkQtChartSeriesModelCollection::mapSeriesIndexToCollectionIndex |
( |
vtkQtChartSeriesModel * |
model, |
|
|
int |
index |
|
) |
| const |
Maps an index from a series model to an index in the collection.
- Parameters
-
| model | The series model, must be a member of the model collection |
| index | A series index from the given series model |
- Returns
- A series index in the series model collection. Returns 0 if model is not in collection.
| void vtkQtChartSeriesModelCollection::onSeriesAboutToBeInserted |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when a series is about to be inserted into a model.
This method uses the signal sender to determine which model has changed. It then maps the model series indexes to collection series indexes and re-emits the signal.
- Parameters
-
| first | The first model series index. |
| last | The last model series index. |
| void vtkQtChartSeriesModelCollection::onSeriesInserted |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when a series is inserted into a model.
- Parameters
-
| first | The first model series index. |
| last | The last model series index. |
| void vtkQtChartSeriesModelCollection::onSeriesAboutToBeRemoved |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when a series is about to be removed from a model.
- Parameters
-
| first | The first model series index. |
| last | The last model series index. |
| void vtkQtChartSeriesModelCollection::onSeriesRemoved |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
protectedslot |
Called when a series is removed from a model.
- Parameters
-
| first | The first model series index. |
| last | The last model series index. |
The documentation for this class was generated from the following file: