The vtkQtChartAxisModel class stores the labels for a chart axis.
More...
#include <vtkQtChartAxisModel.h>
List of all members.
Detailed Description
The vtkQtChartAxisModel class stores the labels for a chart axis.
Definition at line 38 of file vtkQtChartAxisModel.h.
Constructor & Destructor Documentation
vtkQtChartAxisModel::vtkQtChartAxisModel |
( |
QObject * |
parent = 0 | ) |
|
Creates a chart axis model.
- Parameters:
-
virtual vtkQtChartAxisModel::~vtkQtChartAxisModel |
( |
| ) |
[virtual] |
Member Function Documentation
void vtkQtChartAxisModel::addLabel |
( |
const QVariant & |
label | ) |
|
Adds a label to the chart axis.
- Parameters:
-
void vtkQtChartAxisModel::insertLabel |
( |
int |
index, |
|
|
const QVariant & |
label |
|
) |
| |
Adds a label to the chart axis.
- Parameters:
-
index | Where to insert the label. |
label | The label to add. |
void vtkQtChartAxisModel::removeLabel |
( |
int |
index | ) |
|
Removes a label from the chart axis.
- Parameters:
-
index | The index of the label to remove. |
void vtkQtChartAxisModel::removeAllLabels |
( |
| ) |
|
Removes all the labels from the chart axis.
void vtkQtChartAxisModel::startModifyingData |
( |
| ) |
|
Blocks the model modification signals.
This method should be called before making multiple changes to the model. It will prevent the view from updating before the changes are complete. Once all the changes are made, the finishModifyingData
method should be called to notify the view of the changes.
- See also:
- vtkQtChartAxisModel::finishModifyingData()
void vtkQtChartAxisModel::finishModifyingData |
( |
| ) |
|
int vtkQtChartAxisModel::getNumberOfLabels |
( |
| ) |
const |
Gets the number of labels in the chart axis.
- Returns:
- The number of labels in the chart axis.
void vtkQtChartAxisModel::getLabel |
( |
int |
index, |
|
|
QVariant & |
label |
|
) |
| const |
Gets a specified chart axis label.
- Parameters:
-
index | Which chart axis to get. |
label | Used to return the label. |
int vtkQtChartAxisModel::getLabelIndex |
( |
const QVariant & |
label | ) |
const |
Gets the index of the given label.
- Parameters:
-
label | The label value to find. |
- Returns:
- The index of the label or -1 if not found.
void vtkQtChartAxisModel::labelInserted |
( |
int |
index | ) |
[signal] |
Emitted when a new label is added.
- Parameters:
-
index | Where the label was added. |
void vtkQtChartAxisModel::removingLabel |
( |
int |
index | ) |
[signal] |
Emitted before a label is removed.
- Parameters:
-
index | The index being removed. |
void vtkQtChartAxisModel::labelRemoved |
( |
int |
index | ) |
[signal] |
Emitted after a label is removed.
- Parameters:
-
index | The index being removed. |
void vtkQtChartAxisModel::labelsReset |
( |
| ) |
[signal] |
Emitted when the axis labels are reset.
The documentation for this class was generated from the following file: