vtkQtChartStyleManager Class Reference

#include <vtkQtChartStyleManager.h>

Collaboration diagram for vtkQtChartStyleManager:

Collaboration graph
[legend]

List of all members.


Detailed Description

The vtkQtChartStyleManager class allows several chart layers to share the same style generator.

Sharing a style generator keeps the style from repeating. This is useful when several chart layers are displayed in the same chart. For example, a line chart and a bar chart can share a style generator to make sure that none of the series are the same color.

Definition at line 43 of file vtkQtChartStyleManager.h.


Public Member Functions

 vtkQtChartStyleManager (QObject *parent=0)
 Creates a chart style manager.
virtual ~vtkQtChartStyleManager ()
vtkQtChartStyleGeneratorgetGenerator ()
 Gets the options generator.
void setGenerator (vtkQtChartStyleGenerator *generator)
 Sets the options generator.
int reserveStyle ()
 Reserves a style index for the style generator.
void releaseStyle (int index)
 Releases a series style index.

Constructor & Destructor Documentation

vtkQtChartStyleManager::vtkQtChartStyleManager ( QObject *  parent = 0  ) 

Creates a chart style manager.

Parameters:
parent The parent object.

virtual vtkQtChartStyleManager::~vtkQtChartStyleManager (  )  [inline, virtual]

Definition at line 50 of file vtkQtChartStyleManager.h.


Member Function Documentation

vtkQtChartStyleGenerator* vtkQtChartStyleManager::getGenerator (  ) 

Gets the options generator.

Returns:
A pointer to the options generator.

void vtkQtChartStyleManager::setGenerator ( vtkQtChartStyleGenerator generator  ) 

Sets the options generator.

Parameters:
generator The new options generator.

int vtkQtChartStyleManager::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 vtkQtChartStyleManager::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:
index The style index to release.


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

Generated on Wed Jun 3 19:28:40 2009 for VTK by  doxygen 1.5.6