#include <vtkQtChartSeriesDomainGroup.h>
Definition at line 35 of file vtkQtChartSeriesDomainGroup.h.
Public Member Functions | |
vtkQtChartSeriesDomainGroup (bool sortSeries=false) | |
Creates a chart series domain group. | |
virtual | ~vtkQtChartSeriesDomainGroup () |
int | getNumberOfGroups () const |
Gets the number of groups. | |
int | getNumberOfSeries (int group) const |
Gets the number of series in the given group. | |
QList< int > | getGroup (int group) const |
Gets the list of series in the given group. | |
int | findGroup (int series) const |
Finds the group index for the given series. | |
virtual void | prepareInsert (int seriesFirst, int seriesLast) |
Updates the series indexes prior to an insert. | |
virtual void | insertSeries (int series, int group) |
Inserts a new series in the specified group. | |
void | finishInsert () |
Sorts the newly inserted series if sorting is enabled. | |
virtual int | removeSeries (int series) |
Removes a series from its group. | |
virtual void | finishRemoval (int seriesFirst=-1, int seriesLast=-1) |
Updates the series indexes after a removal. | |
virtual void | clear () |
Removes all the series groups. | |
Static Public Member Functions | |
static void | mergeSeriesLists (QList< int > &target, const QList< int > &source) |
Merges two sorted lists of series indexes. | |
Protected Member Functions | |
virtual void | insertGroup (int group) |
Inserts a new group in the list. | |
virtual void | removeGroup (int group) |
Removes a group from the list. |
vtkQtChartSeriesDomainGroup::vtkQtChartSeriesDomainGroup | ( | bool | sortSeries = false |
) |
Creates a chart series domain group.
sortSeries | True if the series should be sorted when added to a group. |
virtual vtkQtChartSeriesDomainGroup::~vtkQtChartSeriesDomainGroup | ( | ) | [inline, virtual] |
Definition at line 43 of file vtkQtChartSeriesDomainGroup.h.
int vtkQtChartSeriesDomainGroup::getNumberOfGroups | ( | ) | const |
Gets the number of groups.
int vtkQtChartSeriesDomainGroup::getNumberOfSeries | ( | int | group | ) | const |
Gets the number of series in the given group.
group | The group index. |
QList<int> vtkQtChartSeriesDomainGroup::getGroup | ( | int | group | ) | const |
Gets the list of series in the given group.
group | The group index. |
int vtkQtChartSeriesDomainGroup::findGroup | ( | int | series | ) | const |
Finds the group index for the given series.
series | The series to look up. |
virtual void vtkQtChartSeriesDomainGroup::prepareInsert | ( | int | seriesFirst, | |
int | seriesLast | |||
) | [virtual] |
Updates the series indexes prior to an insert.
seriesFirst | The first index to be inserted. | |
seriesLast | The last index to be inserted. |
virtual void vtkQtChartSeriesDomainGroup::insertSeries | ( | int | series, | |
int | group | |||
) | [virtual] |
Inserts a new series in the specified group.
series | The new series. | |
group | The group index. |
void vtkQtChartSeriesDomainGroup::finishInsert | ( | ) |
Sorts the newly inserted series if sorting is enabled.
virtual int vtkQtChartSeriesDomainGroup::removeSeries | ( | int | series | ) | [virtual] |
Removes a series from its group.
series | The series to remove. |
virtual void vtkQtChartSeriesDomainGroup::finishRemoval | ( | int | seriesFirst = -1 , |
|
int | seriesLast = -1 | |||
) | [virtual] |
Updates the series indexes after a removal.
seriesFirst | The first index removed. | |
seriesLast | The last index removed. |
virtual void vtkQtChartSeriesDomainGroup::clear | ( | ) | [virtual] |
Removes all the series groups.
static void vtkQtChartSeriesDomainGroup::mergeSeriesLists | ( | QList< int > & | target, | |
const QList< int > & | source | |||
) | [static] |
Merges two sorted lists of series indexes.
target | The list where the result will be stored. | |
source | The list of seires to merge. |
virtual void vtkQtChartSeriesDomainGroup::insertGroup | ( | int | group | ) | [protected, virtual] |
Inserts a new group in the list.
Subclasses can override this method to set up data structures associated with the series group.
group | The group index. |
virtual void vtkQtChartSeriesDomainGroup::removeGroup | ( | int | group | ) | [protected, virtual] |
Removes a group from the list.
Subclasses should override this method to clean up any data structures associated with the series group.
group | The group index. |