#include <qcgaugewidget.h>
Public Types | |
enum | NeedleType { DiamonNeedle, TriangleNeedle, FeatherNeedle, AttitudeMeterNeedle, CompassNeedle } |
Public Member Functions | |
QColor | color () |
float | currentValue () |
QString | currentValueFormat () |
void | draw (QPainter *) |
QcLabelItem * | label () |
QcNeedleItem (QObject *parent=0) | |
void | setColor (const QColor &color) |
void | setCurrentValue (float value) |
void | setLabel (QcLabelItem *) |
void | setNeedle (QcNeedleItem::NeedleType needleType) |
void | setValueFormat (QString format) |
Private Member Functions | |
void | createAttitudeNeedle (float r) |
void | createCompassNeedle (float r) |
void | createDiamonNeedle (float r) |
void | createFeatherNeedle (float r) |
void | createTriangleNeedle (float r) |
Private Attributes | |
QColor | mColor |
float | mCurrentValue |
QString | mFormat |
QcLabelItem * | mLabel |
QPolygonF | mNeedlePoly |
NeedleType | mNeedleType |
Definition at line 271 of file qcgaugewidget.h.
Definition at line 287 of file qcgaugewidget.h.
QcNeedleItem::QcNeedleItem | ( | QObject * | parent = 0 | ) | [explicit] |
Definition at line 607 of file qcgaugewidget.cpp.
QColor QcNeedleItem::color | ( | ) |
Definition at line 701 of file qcgaugewidget.cpp.
void QcNeedleItem::createAttitudeNeedle | ( | float | r | ) | [private] |
Definition at line 755 of file qcgaugewidget.cpp.
void QcNeedleItem::createCompassNeedle | ( | float | r | ) | [private] |
Definition at line 764 of file qcgaugewidget.cpp.
void QcNeedleItem::createDiamonNeedle | ( | float | r | ) | [private] |
Definition at line 725 of file qcgaugewidget.cpp.
void QcNeedleItem::createFeatherNeedle | ( | float | r | ) | [private] |
Definition at line 744 of file qcgaugewidget.cpp.
void QcNeedleItem::createTriangleNeedle | ( | float | r | ) | [private] |
Definition at line 735 of file qcgaugewidget.cpp.
float QcNeedleItem::currentValue | ( | ) |
Definition at line 681 of file qcgaugewidget.cpp.
QString QcNeedleItem::currentValueFormat | ( | ) |
Definition at line 691 of file qcgaugewidget.cpp.
void QcNeedleItem::draw | ( | QPainter * | painter | ) | [virtual] |
Implements QcItem.
Definition at line 616 of file qcgaugewidget.cpp.
Definition at line 712 of file qcgaugewidget.cpp.
void QcNeedleItem::setColor | ( | const QColor & | color | ) |
Definition at line 695 of file qcgaugewidget.cpp.
void QcNeedleItem::setCurrentValue | ( | float | value | ) |
This pull request is not working properly
Definition at line 659 of file qcgaugewidget.cpp.
void QcNeedleItem::setLabel | ( | QcLabelItem * | label | ) |
Definition at line 706 of file qcgaugewidget.cpp.
void QcNeedleItem::setNeedle | ( | QcNeedleItem::NeedleType | needleType | ) |
Definition at line 718 of file qcgaugewidget.cpp.
void QcNeedleItem::setValueFormat | ( | QString | format | ) |
Definition at line 686 of file qcgaugewidget.cpp.
QColor QcNeedleItem::mColor [private] |
Definition at line 293 of file qcgaugewidget.h.
float QcNeedleItem::mCurrentValue [private] |
Definition at line 292 of file qcgaugewidget.h.
QString QcNeedleItem::mFormat [private] |
Definition at line 301 of file qcgaugewidget.h.
QcLabelItem* QcNeedleItem::mLabel [private] |
Definition at line 300 of file qcgaugewidget.h.
QPolygonF QcNeedleItem::mNeedlePoly [private] |
Definition at line 291 of file qcgaugewidget.h.
NeedleType QcNeedleItem::mNeedleType [private] |
Definition at line 299 of file qcgaugewidget.h.