Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos
Referencia de la Clase QwtSymbol

A class for drawing symbols. Más...

#include <qwt_symbol.h>

Lista de todos los miembros.

Tipos públicos

enum  Style {
  NoSymbol = -1, Ellipse, Rect, Diamond,
  Triangle, DTriangle, UTriangle, LTriangle,
  RTriangle, Cross, XCross, HLine,
  VLine, Star1, Star2, Hexagon,
  StyleCnt
}

Métodos públicos

 QwtSymbol ()
 QwtSymbol (Style st, const QBrush &bd, const QPen &pn, const QSize &s)
 Constructor.
virtual ~QwtSymbol ()
 Destructor.
bool operator!= (const QwtSymbol &) const
 != operator
virtual bool operator== (const QwtSymbol &) const
 == operator
virtual QwtSymbolclone () const
void setSize (const QSize &s)
 Set the symbol's size.
void setSize (int a, int b=-1)
 Specify the symbol's size.
void setBrush (const QBrush &b)
 Assign a brush.
void setPen (const QPen &p)
 Assign a pen.
void setStyle (Style s)
 Specify the symbol style.
const QBrushbrush () const
 Return Brush.
const QPenpen () const
 Return Pen.
const QSizesize () const
 Return Size.
Style style () const
 Return Style.
void draw (QPainter *p, const QPoint &pt) const
 Draw the symbol at a specified point.
void draw (QPainter *p, int x, int y) const
 Draw the symbol at a point (x,y).
virtual void draw (QPainter *p, const QRect &r) const
 Draw the symbol into a bounding rectangle.

Descripción detallada

A class for drawing symbols.


Documentación de las enumeraciones miembro de la clase

Style

Ver también:
setStyle(), style()
Valores de enumeraciones:
NoSymbol 
Ellipse 
Rect 
Diamond 
Triangle 
DTriangle 
UTriangle 
LTriangle 
RTriangle 
Cross 
XCross 
HLine 
VLine 
Star1 
Star2 
Hexagon 
StyleCnt 

Documentación del constructor y destructor

QwtSymbol::QwtSymbol ( )

Default Constructor

The symbol is constructed with gray interior, black outline with zero width, no size and style 'NoSymbol'.

QwtSymbol::QwtSymbol ( QwtSymbol::Style  style,
const QBrush brush,
const QPen pen,
const QSize size 
)

Constructor.

Parámetros:
styleSymbol Style
brushbrush to fill the interior
penoutline pen
sizesize
QwtSymbol::~QwtSymbol ( ) [virtual]

Destructor.


Documentación de las funciones miembro

const QBrush& QwtSymbol::brush ( ) const [inline]

Return Brush.

QwtSymbol * QwtSymbol::clone ( ) const [virtual]
void QwtSymbol::draw ( QPainter painter,
const QRect r 
) const [virtual]

Draw the symbol into a bounding rectangle.

This function assumes that the painter has been initialized with brush and pen before. This allows a much more performant implementation when painting many symbols with the same brush and pen like in curves.

Parámetros:
painterPainter
rBounding rectangle
void QwtSymbol::draw ( QPainter painter,
const QPoint pos 
) const

Draw the symbol at a specified point.

Parámetros:
painterPainter
posCenter of the symbol
void QwtSymbol::draw ( QPainter p,
int  x,
int  y 
) const

Draw the symbol at a point (x,y).

bool QwtSymbol::operator!= ( const QwtSymbol other) const

!= operator

bool QwtSymbol::operator== ( const QwtSymbol other) const [virtual]

== operator

const QPen& QwtSymbol::pen ( ) const [inline]

Return Pen.

void QwtSymbol::setBrush ( const QBrush br)

Assign a brush.

The brush is used to draw the interior of the symbol.

Parámetros:
brbrush
void QwtSymbol::setPen ( const QPen pn)

Assign a pen.

The pen is used to draw the symbol's outline.

Parámetros:
pnpen
void QwtSymbol::setSize ( const QSize s)

Set the symbol's size.

void QwtSymbol::setSize ( int  w,
int  h = -1 
)

Specify the symbol's size.

If the 'h' parameter is left out or less than 0, and the 'w' parameter is greater than or equal to 0, the symbol size will be set to (w,w).

Parámetros:
wwidth
hheight (defaults to -1)
void QwtSymbol::setStyle ( QwtSymbol::Style  s)

Specify the symbol style.

The following styles are defined:

NoSymbol
No Style. The symbol cannot be drawn.
Ellipse
Ellipse or circle
Rect
Rectangle
Diamond
Diamond
Triangle
Triangle pointing upwards
DTriangle
Triangle pointing downwards
UTriangle
Triangle pointing upwards
LTriangle
Triangle pointing left
RTriangle
Triangle pointing right
Cross
Cross (+)
XCross
Diagonal cross (X)
HLine
Horizontal line
VLine
Vertical line
Star1
X combined with +
Star2
Six-pointed star
Hexagon
Hexagon
Parámetros:
sstyle
const QSize& QwtSymbol::size ( ) const [inline]

Return Size.

Style QwtSymbol::style ( ) const [inline]

Return Style.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'