VTK
Signals | Public Member Functions | Protected Member Functions | List of all members
vtkQtChartTitle Class Reference

The vtkQtChartTitle class is used to draw a chart title. More...

#include <vtkQtChartTitle.h>

Inherits QWidget.

Signals

void orientationChanged ()
 Emitted when the title orientation has changed. More...
 

Public Member Functions

 vtkQtChartTitle (Qt::Orientation orient=Qt::Horizontal, QWidget *parent=0)
 Creates a chart title instance. More...
 
virtual ~vtkQtChartTitle ()
 
Qt::Orientation getOrientation () const
 Gets the orientation of the chart title. More...
 
void setOrientation (Qt::Orientation orient)
 Sets the orientation of the chart title. More...
 
QString getText () const
 Gets the chart title text. More...
 
void setText (const QString &text)
 Sets the chart title text. More...
 
int getTextAlignment () const
 Gets the text alignment flags for the title. More...
 
void setTextAlignment (int flags)
 Sets the text alignment flags for the title. More...
 
virtual QSize sizeHint () const
 Gets the preferred size of the chart title. More...
 
void drawTitle (QPainter &painter)
 Draws the title using the given painter. More...
 

Protected Member Functions

virtual bool event (QEvent *e)
 Updates the layout when the font changes. More...
 
virtual void paintEvent (QPaintEvent *e)
 Draws the chart title. More...
 

Detailed Description

The vtkQtChartTitle class is used to draw a chart title.

The text for the title can be drawn horizontally or vertically. This allows the title to be used on a vertical axis.

Definition at line 41 of file vtkQtChartTitle.h.

Constructor & Destructor Documentation

vtkQtChartTitle::vtkQtChartTitle ( Qt::Orientation  orient = Qt::Horizontal,
QWidget *  parent = 0 
)

Creates a chart title instance.

Parameters
orientThe orientation of the title.
parentThe parent widget.
virtual vtkQtChartTitle::~vtkQtChartTitle ( )
inlinevirtual

Definition at line 51 of file vtkQtChartTitle.h.

Member Function Documentation

Qt::Orientation vtkQtChartTitle::getOrientation ( ) const
inline

Gets the orientation of the chart title.

Returns
The orientation of the chart title.

Definition at line 57 of file vtkQtChartTitle.h.

void vtkQtChartTitle::setOrientation ( Qt::Orientation  orient)

Sets the orientation of the chart title.

Parameters
orientThe orientation of the title.
QString vtkQtChartTitle::getText ( ) const
inline

Gets the chart title text.

Returns
The chart title text.

Definition at line 68 of file vtkQtChartTitle.h.

void vtkQtChartTitle::setText ( const QString &  text)

Sets the chart title text.

Parameters
textThe text to display.
int vtkQtChartTitle::getTextAlignment ( ) const
inline

Gets the text alignment flags for the title.

Returns
The text alignment flags for the title.

Definition at line 79 of file vtkQtChartTitle.h.

void vtkQtChartTitle::setTextAlignment ( int  flags)
inline

Sets the text alignment flags for the title.

Parameters
flagsThe text alignment flags to use.

Definition at line 84 of file vtkQtChartTitle.h.

virtual QSize vtkQtChartTitle::sizeHint ( ) const
inlinevirtual

Gets the preferred size of the chart title.

Returns
The preferred size of the chart title.

Definition at line 90 of file vtkQtChartTitle.h.

void vtkQtChartTitle::drawTitle ( QPainter &  painter)

Draws the title using the given painter.

Parameters
painterThe painter to use.
void vtkQtChartTitle::orientationChanged ( )
signal

Emitted when the title orientation has changed.

virtual bool vtkQtChartTitle::event ( QEvent *  e)
protectedvirtual

Updates the layout when the font changes.

Parameters
eEvent specific information.
Returns
True if the event was handled.
virtual void vtkQtChartTitle::paintEvent ( QPaintEvent *  e)
protectedvirtual

Draws the chart title.

Parameters
eEvent specific information.

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