Public Types | Public Member Functions | Private Member Functions | Private Attributes
QcNeedleItem Class Reference

#include <qcgaugewidget.h>

Inheritance diagram for QcNeedleItem:
Inheritance graph
[legend]

List of all members.

Public Types

enum  NeedleType {
  DiamonNeedle, TriangleNeedle, FeatherNeedle, AttitudeMeterNeedle,
  CompassNeedle
}

Public Member Functions

QColor color ()
float currentValue ()
QString currentValueFormat ()
void draw (QPainter *)
QcLabelItemlabel ()
 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
QcLabelItemmLabel
QPolygonF mNeedlePoly
NeedleType mNeedleType

Detailed Description

Definition at line 271 of file qcgaugewidget.h.


Member Enumeration Documentation

Enumerator:
DiamonNeedle 
TriangleNeedle 
FeatherNeedle 
AttitudeMeterNeedle 
CompassNeedle 

Definition at line 287 of file qcgaugewidget.h.


Constructor & Destructor Documentation

QcNeedleItem::QcNeedleItem ( QObject *  parent = 0) [explicit]

Definition at line 608 of file qcgaugewidget.cpp.


Member Function Documentation

QColor QcNeedleItem::color ( )

Definition at line 702 of file qcgaugewidget.cpp.

void QcNeedleItem::createAttitudeNeedle ( float  r) [private]

Definition at line 756 of file qcgaugewidget.cpp.

void QcNeedleItem::createCompassNeedle ( float  r) [private]

Definition at line 765 of file qcgaugewidget.cpp.

void QcNeedleItem::createDiamonNeedle ( float  r) [private]

Definition at line 726 of file qcgaugewidget.cpp.

void QcNeedleItem::createFeatherNeedle ( float  r) [private]

Definition at line 745 of file qcgaugewidget.cpp.

void QcNeedleItem::createTriangleNeedle ( float  r) [private]

Definition at line 736 of file qcgaugewidget.cpp.

Definition at line 682 of file qcgaugewidget.cpp.

Definition at line 692 of file qcgaugewidget.cpp.

void QcNeedleItem::draw ( QPainter *  painter) [virtual]

Implements QcItem.

Definition at line 617 of file qcgaugewidget.cpp.

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.

Definition at line 707 of file qcgaugewidget.cpp.

Definition at line 719 of file qcgaugewidget.cpp.

void QcNeedleItem::setValueFormat ( QString  format)

Definition at line 687 of file qcgaugewidget.cpp.


Member Data Documentation

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.

Definition at line 300 of file qcgaugewidget.h.

QPolygonF QcNeedleItem::mNeedlePoly [private]

Definition at line 291 of file qcgaugewidget.h.

Definition at line 299 of file qcgaugewidget.h.


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


gauges
Author(s): alexvs
autogenerated on Mon Nov 14 2016 03:33:07