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:
-
| parent | The parent widget. |
virtual vtkQtChartWidget::~vtkQtChartWidget |
( |
|
) |
[virtual] |
Member Function Documentation
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.
Sets the overall title for the chart.
- Parameters:
-
| title | The new chart title. |
Gets the chart legend.
- Returns:
- A pointer to the chart legend.
Definition at line 81 of file vtkQtChartWidget.h.
Sets the chart legend.
- Parameters:
-
| legend | The new chart legend. |
Gets the main chart area.
- Returns:
- A pointer to the main chart area.
Definition at line 92 of file vtkQtChartWidget.h.
Gets the title for the given axis location.
- Parameters:
-
| axis | The axis location on the chart. |
- Returns:
- A pointer to the axis title.
Sets the title for the given axis location.
- Parameters:
-
| axis | The axis location on the chart. |
| title | The new axis title. |
virtual QSize vtkQtChartWidget::sizeHint |
( |
|
) |
const [virtual] |
Gets the preferred size of the chart.
- Returns:
- The preferred size of the chart.
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. |
Emitted when a new chart title has been set.
- Parameters:
-
| title | The new chart title. |
Emitted when a new chart legend has been set.
- Parameters:
-
| legend | The new chart legend. |
Emitted when a new axis title has been set.
- Parameters:
-
| axis | The axis location. |
| title | The new axis title. |
The documentation for this class was generated from the following file: