VTK
|
vtkQtChartSeriesOptionsModel is the base class for all chart series options models. More...
#include <vtkQtChartSeriesOptionsModel.h>
Public Types | |
typedef QObject | Superclass |
Public Slots | |
virtual void | reset ()=0 |
Resets the model. | |
Signals | |
void | modelAboutToBeReset () |
Emitted when the model is about to be reset. | |
void | modelReset () |
Emitted when the model has been reset. | |
void | optionsAboutToBeInserted (int first, int last) |
Emitted when options will be inserted into the model. | |
void | optionsInserted (int first, int last) |
Emitted when options have been inserted into the model. | |
void | optionsAboutToBeRemoved (int first, int last) |
Emitted when options will be removed from the model. | |
void | optionsRemoved (int first, int last) |
Emitted when options have been removed from the model. | |
void | optionsChanged (vtkQtChartSeriesOptions *options, int type, const QVariant &newValue, const QVariant &oldValue) |
Emitted when options fire dataChanged() signal. | |
Public Member Functions | |
vtkQtChartSeriesOptionsModel (QObject *parent=0) | |
Creates a chart series options model. | |
virtual | ~vtkQtChartSeriesOptionsModel () |
virtual int | getNumberOfOptions () const =0 |
Gets the number of options. | |
virtual vtkQtChartSeriesOptions * | getOptions (int series) const =0 |
Gets the options for a particular series. | |
virtual int | getOptionsIndex (vtkQtChartSeriesOptions *options) const =0 |
Gets the index for the given series options. | |
Protected Member Functions | |
vtkQtChartSeriesOptions * | newOptions (QObject *parent) |
Creates a new options object. | |
void | releaseOptions (vtkQtChartSeriesOptions *options) |
Releases the options. This will delete the options instance. |
vtkQtChartSeriesOptionsModel is the base class for all chart series options models.
This can be considered analogous to vtkQtChartSeriesModel except that instead of providing details about the series, it provides the options for the series.
Definition at line 36 of file vtkQtChartSeriesOptionsModel.h.
typedef QObject vtkQtChartSeriesOptionsModel::Superclass |
Reimplemented in vtkQtChartSeriesOptionsModelCollection, vtkQtChartBasicSeriesOptionsModel, and vtkQtChartNamedSeriesOptionsModel.
Definition at line 41 of file vtkQtChartSeriesOptionsModel.h.
vtkQtChartSeriesOptionsModel::vtkQtChartSeriesOptionsModel | ( | QObject * | parent = 0 | ) |
Creates a chart series options model.
param | The parent object. |
virtual vtkQtChartSeriesOptionsModel::~vtkQtChartSeriesOptionsModel | ( | ) | [inline, virtual] |
Definition at line 47 of file vtkQtChartSeriesOptionsModel.h.
virtual int vtkQtChartSeriesOptionsModel::getNumberOfOptions | ( | ) | const [pure virtual] |
Gets the number of options.
Implemented in vtkQtChartBasicSeriesOptionsModel, vtkQtChartSeriesOptionsModelCollection, and vtkQtChartNamedSeriesOptionsModel.
virtual vtkQtChartSeriesOptions* vtkQtChartSeriesOptionsModel::getOptions | ( | int | series | ) | const [pure virtual] |
Gets the options for a particular series.
series | The series index |
Implemented in vtkQtChartBasicSeriesOptionsModel, vtkQtChartSeriesOptionsModelCollection, and vtkQtChartNamedSeriesOptionsModel.
virtual int vtkQtChartSeriesOptionsModel::getOptionsIndex | ( | vtkQtChartSeriesOptions * | options | ) | const [pure virtual] |
Gets the index for the given series options.
options | The series options object. |
Implemented in vtkQtChartBasicSeriesOptionsModel, vtkQtChartSeriesOptionsModelCollection, and vtkQtChartNamedSeriesOptionsModel.
virtual void vtkQtChartSeriesOptionsModel::reset | ( | ) | [pure virtual, slot] |
Resets the model.
Implemented in vtkQtChartSeriesOptionsModelCollection, vtkQtChartNamedSeriesOptionsModel, and vtkQtChartBasicSeriesOptionsModel.
void vtkQtChartSeriesOptionsModel::modelAboutToBeReset | ( | ) | [signal] |
Emitted when the model is about to be reset.
void vtkQtChartSeriesOptionsModel::modelReset | ( | ) | [signal] |
Emitted when the model has been reset.
Emitted when options will be inserted into the model.
first | The first index to be added. |
last | The last index to be added. |
Emitted when options have been inserted into the model.
first | The first index that was inserted. |
last | The last index that was inserted. |
Emitted when options will be removed from the model.
first | The first index to be removed. |
last | The last index to be removed. |
Emitted when options have been removed from the model.
first | The first index that was removed. |
last | The last index that was removed. |
void vtkQtChartSeriesOptionsModel::optionsChanged | ( | vtkQtChartSeriesOptions * | options, |
int | type, | ||
const QVariant & | newValue, | ||
const QVariant & | oldValue | ||
) | [signal] |
Emitted when options fire dataChanged() signal.
options | The options that fired the dataChanged() signal. |
type | Type of the option that was changed. |
newValue | The new value for the option. |
oldValue | The previous value for the option, if any. |
vtkQtChartSeriesOptions* vtkQtChartSeriesOptionsModel::newOptions | ( | QObject * | parent | ) | [protected] |
Creates a new options object.
parent | The parent QObject for the options. |
void vtkQtChartSeriesOptionsModel::releaseOptions | ( | vtkQtChartSeriesOptions * | options | ) | [protected] |
Releases the options. This will delete the options instance.