The vtkQtChartWidget class is a container for the chart widgets.
More...
#include <vtkQtChartWidget.h>
List of all members.
Detailed Description
The vtkQtChartWidget class is a container for the chart widgets.
The main charting widget is the chart area. It holds the chart layers. The title and legend widgets are arranged around the chart area. A title can be added for each axis as well as an overall title for the chart.
The main chart area is created and owned by the chart widget. The other widgets should be created and passed in.
Definition at line 55 of file vtkQtChartWidget.h.
Constructor & Destructor Documentation
vtkQtChartWidget::vtkQtChartWidget |
( |
QWidget * |
parent = 0 ) |
|
Creates a chart widget instance.
- Parameters:
-
virtual vtkQtChartWidget::~vtkQtChartWidget |
( |
) |
[virtual] |
Member Function Documentation
Gets the title for the given axis location.
- Parameters:
-
axis | The axis location on the chart. |
- Returns:
- A pointer to the axis title.
Gets the chart legend.
- Returns:
- A pointer to the chart legend.
Definition at line 81 of file vtkQtChartWidget.h.
Gets the overall title for the chart.
- Returns:
- A pointer to the overall title for the chart.
Definition at line 70 of file vtkQtChartWidget.h.
Emitted when a new axis title has been set.
- Parameters:
-
axis | The axis location. |
title | The new axis title. |
Emitted when a new chart legend has been set.
- Parameters:
-
legend | The new chart legend. |
Emitted when a new chart title has been set.
- Parameters:
-
title | The new chart title. |
void vtkQtChartWidget::printChart |
( |
QPrinter & |
printer ) |
[slot] |
Prints the chart using the given printer.
- Parameters:
-
printer | The printer to use. |
void vtkQtChartWidget::saveChart |
( |
const QStringList & |
files ) |
[slot] |
Saves a screenshot of the chart to the given files.
- Parameters:
-
files | The list of files to write. |
void vtkQtChartWidget::saveChart |
( |
const QString & |
filename ) |
[slot] |
Saves a screenshot of the chart to the given file.
- Parameters:
-
filename | The name of the file to write. |
Sets the title for the given axis location.
- Parameters:
-
axis | The axis location on the chart. |
title | The new axis title. |
Sets the chart legend.
- Parameters:
-
legend | The new chart legend. |
Sets the overall title for the chart.
- Parameters:
-
title | The new chart title. |
virtual QSize vtkQtChartWidget::sizeHint |
( |
) |
const [virtual] |
Gets the preferred size of the chart.
- Returns:
- The preferred size of the chart.
The documentation for this class was generated from the following file: