VTK
Public Member Functions | List of all members
vtkQtChartStyleRegistry Class Reference

The vtkQtChartStyleRegistry class keeps track of reserved style indexes. More...

#include <vtkQtChartStyleRegistry.h>

Public Member Functions

 vtkQtChartStyleRegistry ()
 
 ~vtkQtChartStyleRegistry ()
 
int reserveStyle ()
 Reserves a style index for the style generator.
 
void releaseStyle (int index)
 Releases a series style index.
 

Detailed Description

The vtkQtChartStyleRegistry class keeps track of reserved style indexes.

Definition at line 37 of file vtkQtChartStyleRegistry.h.

Constructor & Destructor Documentation

vtkQtChartStyleRegistry::vtkQtChartStyleRegistry ( )
vtkQtChartStyleRegistry::~vtkQtChartStyleRegistry ( )

Member Function Documentation

int vtkQtChartStyleRegistry::reserveStyle ( )

Reserves a style index for the style generator.

The index returned is the lowest index available. If there are empty spots from removals, the index will come from the first empty spot.

Returns
The reserved style index for the style generator.
void vtkQtChartStyleRegistry::releaseStyle ( int  index)

Releases a series style index.

When an index is released, the empty spot is saved so it can be used for the next reservation.

Parameters
indexThe style index to release.

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