#include <qcgaugewidget.h>
Public Types | |
enum | NeedleType { DiamonNeedle, TriangleNeedle, FeatherNeedle, AttitudeMeterNeedle, CompassNeedle } |
Public Types inherited from QcItem | |
enum | Error { InvalidValueRange, InvalidDegreeRange, InvalidStep } |
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) |
Public Member Functions inherited from QcScaleItem | |
QcScaleItem (QObject *parent=0) | |
void | setDgereeRange (float minDegree, float maxDegree) |
void | setMaxDegree (float maxDegree) |
void | setMaxValue (float maxValue) |
void | setMinDegree (float minDegree) |
void | setMinValue (float minValue) |
void | setValueRange (float minValue, float maxValue) |
Public Member Functions inherited from QcItem | |
float | position () |
QcItem (QObject *parent=0) | |
QRectF | rect () |
void | setPosition (float percentage) |
virtual int | type () |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from QcScaleItem | |
float | getDegFromValue (float) |
Protected Member Functions inherited from QcItem | |
QRectF | adjustRect (float percentage) |
float | getAngle (const QPointF &, const QRectF &tmpRect) |
QPointF | getPoint (float deg, const QRectF &tmpRect) |
float | getRadius (const QRectF &) |
QRectF | resetRect () |
void | update () |
Protected Attributes inherited from QcScaleItem | |
float | mMaxDegree |
float | mMaxValue |
float | mMinDegree |
float | mMinValue |
Definition at line 271 of file qcgaugewidget.h.
Enumerator | |
---|---|
DiamonNeedle | |
TriangleNeedle | |
FeatherNeedle | |
AttitudeMeterNeedle | |
CompassNeedle |
Definition at line 287 of file qcgaugewidget.h.
|
explicit |
Definition at line 608 of file qcgaugewidget.cpp.
QColor QcNeedleItem::color | ( | ) |
Definition at line 702 of file qcgaugewidget.cpp.
|
private |
Definition at line 756 of file qcgaugewidget.cpp.
|
private |
Definition at line 765 of file qcgaugewidget.cpp.
|
private |
Definition at line 726 of file qcgaugewidget.cpp.
|
private |
Definition at line 745 of file qcgaugewidget.cpp.
|
private |
Definition at line 736 of file qcgaugewidget.cpp.
float QcNeedleItem::currentValue | ( | ) |
Definition at line 682 of file qcgaugewidget.cpp.
QString QcNeedleItem::currentValueFormat | ( | ) |
Definition at line 692 of file qcgaugewidget.cpp.
|
virtual |
Implements QcItem.
Definition at line 617 of file qcgaugewidget.cpp.
QcLabelItem * QcNeedleItem::label | ( | ) |
Definition at line 713 of file qcgaugewidget.cpp.
void QcNeedleItem::setColor | ( | const QColor & | color | ) |
Definition at line 696 of file qcgaugewidget.cpp.
void QcNeedleItem::setCurrentValue | ( | float | value | ) |
This pull request is not working properly
Definition at line 660 of file qcgaugewidget.cpp.
void QcNeedleItem::setLabel | ( | QcLabelItem * | label | ) |
Definition at line 707 of file qcgaugewidget.cpp.
void QcNeedleItem::setNeedle | ( | QcNeedleItem::NeedleType | needleType | ) |
Definition at line 719 of file qcgaugewidget.cpp.
void QcNeedleItem::setValueFormat | ( | QString | format | ) |
Definition at line 687 of file qcgaugewidget.cpp.
|
private |
Definition at line 293 of file qcgaugewidget.h.
|
private |
Definition at line 292 of file qcgaugewidget.h.
|
private |
Definition at line 301 of file qcgaugewidget.h.
|
private |
Definition at line 300 of file qcgaugewidget.h.
|
private |
Definition at line 291 of file qcgaugewidget.h.
|
private |
Definition at line 299 of file qcgaugewidget.h.