The vtkQtChartSeriesSelectionModel class ties a series selection to a series model.
More...
#include <vtkQtChartSeriesSelectionModel.h>
Inherits QObject.
The vtkQtChartSeriesSelectionModel class ties a series selection to a series model.
Definition at line 38 of file vtkQtChartSeriesSelectionModel.h.
vtkQtChartSeriesSelectionModel::vtkQtChartSeriesSelectionModel |
( |
QObject * |
parent = 0 ) | |
|
Creates a series selection model.
- Parameters
-
virtual vtkQtChartSeriesSelectionModel::~vtkQtChartSeriesSelectionModel |
( |
) | |
|
|
virtual |
Gets the series model associated with the selection model.
- Returns
- The series model associated with the selection model.
Definition at line 53 of file vtkQtChartSeriesSelectionModel.h.
Sets the series model associated with the selection model.
- Parameters
-
model | The new series model. |
bool vtkQtChartSeriesSelectionModel::isInInteractiveChange |
( |
) | |
const |
|
inline |
void vtkQtChartSeriesSelectionModel::beginInteractiveChange |
( |
) | |
|
Called to begin an interactive selection change.
Interactive selection changes such as a selection box can send a lot of change signals as the user drags the mouse around. The chart needs to update the selection based on those signals in order for the user to see the changes. If an expensive process is attached to the selection change signal, this can cause a visible slow-down in the application. This method allows the selection to keep the chart painter up to date while allowing the expensive process to delay execution.
The interactive controller should call this method before starting a change such as with a selection box. It should call the endInteractiveChange
method when the interaction is done. The expensive process should listen to the selectionChanged
and interactionFinished
signals. The interactionFinished
is emitted at the end of the interactive change. In order to keep track of non-interactive changes, the selectionChanged
signal must be monitored. This signal will be emitted for every selection change. Therefore, the listening code should check to see if the model is in an interactive change before executing an expensive process.
void vtkQtChartSeriesSelectionModel::endInteractiveChange |
( |
) | |
|
bool vtkQtChartSeriesSelectionModel::isSelectionEmpty |
( |
) | |
const |
Gets whether or not the selection is empty.
- Returns
- True if the selection is empty.
Gets the current selection.
- Returns
- A reference to the current selection.
void vtkQtChartSeriesSelectionModel::selectAllSeries |
( |
) | |
|
Selects all the model series.
void vtkQtChartSeriesSelectionModel::selectAllPoints |
( |
) | |
|
Selects all the model points.
void vtkQtChartSeriesSelectionModel::selectNone |
( |
) | |
|
void vtkQtChartSeriesSelectionModel::selectInverse |
( |
) | |
|
Sets the current selection.
- Parameters
-
selection | The new selection. |
Adds to the current selection.
- Parameters
-
selection | The selection to add. |
Subtracts from the current selection.
- Parameters
-
selection | The selection to subtract. |
Performs an exclusive or between the specified selection and the current selection.
- Parameters
-
selection | The selection to modify the current selection. |
Emitted when the selection changes.
- Parameters
-
list | The list of selected series/points. |
void vtkQtChartSeriesSelectionModel::interactionFinished |
( |
) | |
|
|
signal |
void vtkQtChartSeriesSelectionModel::beginModelReset |
( |
) | |
|
|
slot |
Begins the model reset process.
The selection model is cleared. The selection changed signal is emitted when the model finishes resetting.
void vtkQtChartSeriesSelectionModel::endModelReset |
( |
) | |
|
|
slot |
Ends the model reset process.
void vtkQtChartSeriesSelectionModel::beginInsertSeries |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
slot |
Begins the series insertion process.
The indexes for the series in the selection model are updated to reflect the changes. The selection changed signal is emitted when the insertion is completed.
- Parameters
-
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartSeriesSelectionModel::endInsertSeries |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
slot |
Ends the series insertion process.
- Parameters
-
first | The first index of the insertion range. |
last | The last index of the insertion range. |
void vtkQtChartSeriesSelectionModel::beginRemoveSeries |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
slot |
Begins the series removal process.
Any reference to the removed range is deleted from the selection model. The selection indexes are updated to reflect the change. The selection changed signal is emitted when the removal is completed.
- Parameters
-
first | The first index of the removal range. |
last | The last index of the removal range. |
void vtkQtChartSeriesSelectionModel::endRemoveSeries |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
slot |
Ends the series removal process.
- Parameters
-
first | The first index of the removal range. |
last | The last index of the removal range. |
The documentation for this class was generated from the following file: