vtkQtChartTitle Class Reference

#include <vtkQtChartTitle.h>

List of all members.


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.


Signals

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

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

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

Creates a chart title instance.

Parameters:
orient The orientation of the title.
parent The parent widget.

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

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:
orient The 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:
text The 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:
flags The text alignment flags to use.

Definition at line 84 of file vtkQtChartTitle.h.

virtual QSize vtkQtChartTitle::sizeHint (  )  const [inline, virtual]

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:
painter The painter to use.

void vtkQtChartTitle::orientationChanged (  )  [signal]

Emitted when the title orientation has changed.

virtual bool vtkQtChartTitle::event ( QEvent *  e  )  [protected, virtual]

Updates the layout when the font changes.

Parameters:
e Event specific information.
Returns:
True if the event was handled.

virtual void vtkQtChartTitle::paintEvent ( QPaintEvent *  e  )  [protected, virtual]

Draws the chart title.

Parameters:
e Event specific information.


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

Generated on Wed Aug 24 12:00:11 2011 for VTK by  doxygen 1.5.6