QWT 7.0.1
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
QwtColumnSymbol Class Reference

A drawing primitive for columns. More...

#include <qwt_column_symbol.h>

Classes

class  PrivateData
 

Public Types

enum  Style { NoStyle = -1 , Box , UserStyle = 1000 }
 Style. More...
 
enum  FrameStyle { NoFrame , Plain , Raised }
 Frame Style used in Box style(). More...
 

Public Member Functions

 QwtColumnSymbol (Style=NoStyle)
 Constructor.
 
virtual ~QwtColumnSymbol ()
 Destructor.
 
void setFrameStyle (FrameStyle)
 Set the frame, that is used for the Box style.
 
FrameStyle frameStyle () const
 
void setLineWidth (int width)
 Set the line width of the frame, that is used for the Box style.
 
int lineWidth () const
 
void setStyle (Style)
 Specify the symbol style.
 
Style style () const
 
void setPen (const QPen &pen)
 Specify the outline pen.
 
QPen pen () const
 outline pen
 
void setBrush (const QBrush &b)
 Specify draw brush.
 
QBrush brush () const
 draw brush
 
virtual void draw (QPainter *, const QwtColumnRect &) const
 Draw the symbol depending on its style.
 

Protected Member Functions

void drawBox (QPainter *, const QwtColumnRect &) const
 Draw the symbol when it is in Box style.
 

Detailed Description

A drawing primitive for columns.

Member Enumeration Documentation

◆ FrameStyle

Frame Style used in Box style().

See also
Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()
Enumerator
NoFrame 

No frame.

Plain 

A plain frame style.

Raised 

A raised frame style.

◆ Style

Style.

See also
setStyle(), style()
Enumerator
NoStyle 

No Style, the symbol draws nothing.

Box 

The column is painted with a frame depending on the frameStyle() and lineWidth() using the palette().

UserStyle 

Styles >= QwtColumnSymbol::UserStyle are reserved for derived classes of QwtColumnSymbol that overload draw() with additional application specific symbol types.

Constructor & Destructor Documentation

◆ QwtColumnSymbol()

QwtColumnSymbol::QwtColumnSymbol ( Style  style = NoStyle)
explicit

Constructor.

Parameters
styleStyle of the symbol
See also
setStyle(), style(), Style

Member Function Documentation

◆ brush()

QBrush QwtColumnSymbol::brush ( ) const

draw brush

Returns

◆ draw()

void QwtColumnSymbol::draw ( QPainter *  painter,
const QwtColumnRect rect 
) const
virtual

Draw the symbol depending on its style.

Parameters
painterPainter
rectDirected rectangle
See also
drawBox()

◆ drawBox()

void QwtColumnSymbol::drawBox ( QPainter *  painter,
const QwtColumnRect rect 
) const
protected

Draw the symbol when it is in Box style.

Parameters
painterPainter
rectDirected rectangle
See also
draw()

◆ frameStyle()

QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle ( ) const
Returns
Current frame style, that is used for the Box style.
See also
setFrameStyle(), lineWidth(), setStyle()

◆ lineWidth()

int QwtColumnSymbol::lineWidth ( ) const
Returns
Line width of the frame, that is used for the Box style.
See also
setLineWidth(), frameStyle(), setStyle()

◆ pen()

QPen QwtColumnSymbol::pen ( ) const

outline pen

Returns

◆ setBrush()

void QwtColumnSymbol::setBrush ( const QBrush &  b)

Specify draw brush.

Parameters
b

◆ setFrameStyle()

void QwtColumnSymbol::setFrameStyle ( FrameStyle  frameStyle)

Set the frame, that is used for the Box style.

Parameters
frameStyleFrame style
See also
frameStyle(), setLineWidth(), setStyle()

◆ setLineWidth()

void QwtColumnSymbol::setLineWidth ( int  width)

Set the line width of the frame, that is used for the Box style.

Parameters
widthWidth
See also
lineWidth(), setFrameStyle()

◆ setPen()

void QwtColumnSymbol::setPen ( const QPen &  pen)

Specify the outline pen.

Parameters
pen

◆ setStyle()

void QwtColumnSymbol::setStyle ( Style  style)

Specify the symbol style.

Parameters
styleStyle
See also
style(), setPalette()

◆ style()

QwtColumnSymbol::Style QwtColumnSymbol::style ( ) const
Returns
Current symbol style
See also
setStyle()

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