Public Member Functions | Private Member Functions | Private Attributes | List of all members
QcAttitudeMeter Class Reference

#include <qcgaugewidget.h>

Inheritance diagram for QcAttitudeMeter:
Inheritance graph
[legend]

Public Member Functions

void draw (QPainter *)
 
 QcAttitudeMeter (QObject *parent=0)
 
void setCurrentPitch (float pitch)
 
void setCurrentRoll (float roll)
 
- 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 drawDegree (QPainter *painter, const QRectF &tmpRect, float deg)
 
void drawDegrees (QPainter *)
 
void drawHandle (QPainter *)
 
void drawLowerEllipse (QPainter *, const QRectF &)
 
void drawPitchSteps (QPainter *, const QRectF &)
 
void drawSteps (QPainter *, float)
 
void drawUpperEllipse (QPainter *, const QRectF &)
 
QPointF getIntersection (float r, const QPointF &pitchPoint, const QPointF &pt)
 
float getStartAngle (const QRectF &tmpRect)
 

Private Attributes

QPolygonF mHandlePoly
 
float mPitch
 
float mPitchOffset
 
float mRoll
 
QPainterPath mStepsPath
 

Additional Inherited Members

- Public Types inherited from QcItem
enum  Error { InvalidValueRange, InvalidDegreeRange, InvalidStep }
 
- 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 ()
 

Detailed Description

Definition at line 324 of file qcgaugewidget.h.

Constructor & Destructor Documentation

QcAttitudeMeter::QcAttitudeMeter ( QObject *  parent = 0)
explicit

Definition at line 829 of file qcgaugewidget.cpp.

Member Function Documentation

void QcAttitudeMeter::draw ( QPainter *  painter)
virtual

Implements QcItem.

Definition at line 879 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawDegree ( QPainter *  painter,
const QRectF &  tmpRect,
float  deg 
)
private

Definition at line 927 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawDegrees ( QPainter *  painter)
private

Definition at line 902 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawHandle ( QPainter *  painter)
private

Definition at line 1022 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawLowerEllipse ( QPainter *  painter,
const QRectF &  tmpRect 
)
private

Definition at line 962 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawPitchSteps ( QPainter *  painter,
const QRectF &  tmpRect 
)
private

Definition at line 981 of file qcgaugewidget.cpp.

void QcAttitudeMeter::drawSteps ( QPainter *  ,
float   
)
private
void QcAttitudeMeter::drawUpperEllipse ( QPainter *  painter,
const QRectF &  tmpRect 
)
private

Definition at line 939 of file qcgaugewidget.cpp.

QPointF QcAttitudeMeter::getIntersection ( float  r,
const QPointF &  pitchPoint,
const QPointF &  pt 
)
private

Definition at line 848 of file qcgaugewidget.cpp.

float QcAttitudeMeter::getStartAngle ( const QRectF &  tmpRect)
private

Definition at line 858 of file qcgaugewidget.cpp.

void QcAttitudeMeter::setCurrentPitch ( float  pitch)

Definition at line 836 of file qcgaugewidget.cpp.

void QcAttitudeMeter::setCurrentRoll ( float  roll)

Definition at line 842 of file qcgaugewidget.cpp.

Member Data Documentation

QPolygonF QcAttitudeMeter::mHandlePoly
private

Definition at line 338 of file qcgaugewidget.h.

float QcAttitudeMeter::mPitch
private

Definition at line 335 of file qcgaugewidget.h.

float QcAttitudeMeter::mPitchOffset
private

Definition at line 336 of file qcgaugewidget.h.

float QcAttitudeMeter::mRoll
private

Definition at line 334 of file qcgaugewidget.h.

QPainterPath QcAttitudeMeter::mStepsPath
private

Definition at line 339 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:55:02