VTK
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
vtkQtChartSeriesOptionsModel Class Referenceabstract

vtkQtChartSeriesOptionsModel is the base class for all chart series options models. More...

#include <vtkQtChartSeriesOptionsModel.h>

Inheritance diagram for vtkQtChartSeriesOptionsModel:
[legend]

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 vtkQtChartSeriesOptionsgetOptions (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

vtkQtChartSeriesOptionsnewOptions (QObject *parent)
 Creates a new options object.
 
void releaseOptions (vtkQtChartSeriesOptions *options)
 Releases the options. This will delete the options instance.
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 41 of file vtkQtChartSeriesOptionsModel.h.

Constructor & Destructor Documentation

vtkQtChartSeriesOptionsModel::vtkQtChartSeriesOptionsModel ( QObject *  parent = 0)

Creates a chart series options model.

Parameters
paramThe parent object.
virtual vtkQtChartSeriesOptionsModel::~vtkQtChartSeriesOptionsModel ( )
inlinevirtual

Definition at line 47 of file vtkQtChartSeriesOptionsModel.h.

Member Function Documentation

virtual int vtkQtChartSeriesOptionsModel::getNumberOfOptions ( ) const
pure virtual
virtual vtkQtChartSeriesOptions* vtkQtChartSeriesOptionsModel::getOptions ( int  series) const
pure virtual

Gets the options for a particular series.

Parameters
seriesThe series index
Returns
The options for the series at the given index.

Implemented in vtkQtChartBasicSeriesOptionsModel, vtkQtChartSeriesOptionsModelCollection, and vtkQtChartNamedSeriesOptionsModel.

virtual int vtkQtChartSeriesOptionsModel::getOptionsIndex ( vtkQtChartSeriesOptions options) const
pure virtual

Gets the index for the given series options.

Parameters
optionsThe series options object.
Returns
The index for the given series options.

Implemented in vtkQtChartBasicSeriesOptionsModel, vtkQtChartSeriesOptionsModelCollection, and vtkQtChartNamedSeriesOptionsModel.

virtual void vtkQtChartSeriesOptionsModel::reset ( )
pure virtualslot

Resets the model.

void vtkQtChartSeriesOptionsModel::modelAboutToBeReset ( )
signal

Emitted when the model is about to be reset.

void vtkQtChartSeriesOptionsModel::modelReset ( )
signal

Emitted when the model has been reset.

void vtkQtChartSeriesOptionsModel::optionsAboutToBeInserted ( int  first,
int  last 
)
signal

Emitted when options will be inserted into the model.

Parameters
firstThe first index to be added.
lastThe last index to be added.
void vtkQtChartSeriesOptionsModel::optionsInserted ( int  first,
int  last 
)
signal

Emitted when options have been inserted into the model.

Parameters
firstThe first index that was inserted.
lastThe last index that was inserted.
void vtkQtChartSeriesOptionsModel::optionsAboutToBeRemoved ( int  first,
int  last 
)
signal

Emitted when options will be removed from the model.

Parameters
firstThe first index to be removed.
lastThe last index to be removed.
void vtkQtChartSeriesOptionsModel::optionsRemoved ( int  first,
int  last 
)
signal

Emitted when options have been removed from the model.

Parameters
firstThe first index that was removed.
lastThe 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.

Parameters
optionsThe options that fired the dataChanged() signal.
typeType of the option that was changed.
newValueThe new value for the option.
oldValueThe previous value for the option, if any.
vtkQtChartSeriesOptions* vtkQtChartSeriesOptionsModel::newOptions ( QObject *  parent)
protected

Creates a new options object.

Parameters
parentThe parent QObject for the options.
Returns
The new instance of vtkQtChartSeriesOptions with proper default values.
void vtkQtChartSeriesOptionsModel::releaseOptions ( vtkQtChartSeriesOptions options)
protected

Releases the options. This will delete the options instance.


The documentation for this class was generated from the following file: