Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos públicos estáticos | Métodos protegidos estáticos
Referencia de la Clase QwtCompassMagnetNeedle

A magnet needle for compass widgets. Más...

#include <qwt_dial_needle.h>

Diagrama de herencias de QwtCompassMagnetNeedle
QwtDialNeedle

Lista de todos los miembros.

Tipos públicos

enum  Style { TriangleStyle, ThinStyle }
 Style of the needle. Más...

Métodos públicos

 QwtCompassMagnetNeedle (Style=TriangleStyle, const QColor &light=Qt::white, const QColor &dark=Qt::red)
 Constructor.
virtual void draw (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const

Métodos públicos estáticos

static void drawTriangleNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)
static void drawThinNeedle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)

Métodos protegidos estáticos

static void drawPointer (QPainter *painter, const QBrush &brush, int colorOffset, const QPoint &center, int length, int width, double direction)

Descripción detallada

A magnet needle for compass widgets.

A magnet needle points to two opposite directions indicating north and south.

The following colors are used:

Ver también:
QwtDial, QwtCompass

Documentación de las enumeraciones miembro de la clase

Style of the needle.

Valores de enumeraciones:
TriangleStyle 
ThinStyle 

Documentación del constructor y destructor

QwtCompassMagnetNeedle::QwtCompassMagnetNeedle ( Style  style = TriangleStyle,
const QColor light = Qt::white,
const QColor dark = Qt::red 
)

Constructor.


Documentación de las funciones miembro

void QwtCompassMagnetNeedle::draw ( QPainter painter,
const QPoint center,
int  length,
double  direction,
QPalette::ColorGroup  colorGroup = QPalette::Active 
) const [virtual]

Draw the needle

Parámetros:
painterPainter
centerCenter of the dial, start position for the needle
lengthLength of the needle
directionDirection of the needle, in degrees counter clockwise
colorGroupColor group, used for painting

Implementa QwtDialNeedle.

void QwtCompassMagnetNeedle::drawPointer ( QPainter painter,
const QBrush brush,
int  colorOffset,
const QPoint center,
int  length,
int  width,
double  direction 
) [static, protected]

Draw a compass needle

Parámetros:
painterPainter
brushBrush
colorOffsetColor offset
centerCenter, where the needle starts
lengthLength of the needle
widthWidth of the needle
directionDirection
void QwtCompassMagnetNeedle::drawThinNeedle ( QPainter painter,
const QPalette palette,
QPalette::ColorGroup  colorGroup,
const QPoint center,
int  length,
double  direction 
) [static]

Draw a compass needle

Parámetros:
painterPainter
palettePalette
colorGroupColor group
centerCenter, where the needle starts
lengthLength of the needle
directionDirection
void QwtCompassMagnetNeedle::drawTriangleNeedle ( QPainter painter,
const QPalette palette,
QPalette::ColorGroup  colorGroup,
const QPoint center,
int  length,
double  direction 
) [static]

Draw a compass needle

Parámetros:
painterPainter
palettePalette
colorGroupColor group
centerCenter, where the needle starts
lengthLength of the needle
directionDirection

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'