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

#include <qcgaugewidget.h>

Inheritance diagram for QcColorBand:
Inheritance graph
[legend]

Public Member Functions

void draw (QPainter *)
 
 QcColorBand (QObject *parent=0)
 
void setColors (const QList< QPair< QColor, float > > &colors)
 
- 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

QPainterPath createSubBand (float from, float sweep)
 

Private Attributes

QList< QPair< QColor, float > > mBandColors
 
float mBandStartValue
 

Additional Inherited Members

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

Detailed Description

Definition at line 236 of file qcgaugewidget.h.

Constructor & Destructor Documentation

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

Definition at line 485 of file qcgaugewidget.cpp.

Member Function Documentation

QPainterPath QcColorBand::createSubBand ( float  from,
float  sweep 
)
private

Definition at line 507 of file qcgaugewidget.cpp.

void QcColorBand::draw ( QPainter *  painter)
virtual

Implements QcItem.

Definition at line 516 of file qcgaugewidget.cpp.

void QcColorBand::setColors ( const QList< QPair< QColor, float > > &  colors)

Definition at line 539 of file qcgaugewidget.cpp.

Member Data Documentation

QList<QPair<QColor,float> > QcColorBand::mBandColors
private

Definition at line 247 of file qcgaugewidget.h.

float QcColorBand::mBandStartValue
private

Definition at line 248 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