Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QcScaleItem Class Reference

#include <qcgaugewidget.h>

Inheritance diagram for QcScaleItem:
Inheritance graph
[legend]

Public Member Functions

 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
virtual void draw (QPainter *)=0
 
float position ()
 
 QcItem (QObject *parent=0)
 
QRectF rect ()
 
void setPosition (float percentage)
 
virtual int type ()
 

Protected Member Functions

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

float mMaxDegree
 
float mMaxValue
 
float mMinDegree
 
float mMinValue
 

Additional Inherited Members

- Public Types inherited from QcItem
enum  Error { InvalidValueRange, InvalidDegreeRange, InvalidStep }
 

Detailed Description

Definition at line 129 of file qcgaugewidget.h.

Constructor & Destructor Documentation

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

Definition at line 242 of file qcgaugewidget.cpp.

Member Function Documentation

float QcScaleItem::getDegFromValue ( float  v)
protected

Definition at line 268 of file qcgaugewidget.cpp.

void QcScaleItem::setDgereeRange ( float  minDegree,
float  maxDegree 
)

Definition at line 260 of file qcgaugewidget.cpp.

void QcScaleItem::setMaxDegree ( float  maxDegree)

Definition at line 300 of file qcgaugewidget.cpp.

void QcScaleItem::setMaxValue ( float  maxValue)

Definition at line 285 of file qcgaugewidget.cpp.

void QcScaleItem::setMinDegree ( float  minDegree)

Definition at line 293 of file qcgaugewidget.cpp.

void QcScaleItem::setMinValue ( float  minValue)

Definition at line 276 of file qcgaugewidget.cpp.

void QcScaleItem::setValueRange ( float  minValue,
float  maxValue 
)

Definition at line 251 of file qcgaugewidget.cpp.

Member Data Documentation

float QcScaleItem::mMaxDegree
protected

Definition at line 152 of file qcgaugewidget.h.

float QcScaleItem::mMaxValue
protected

Definition at line 150 of file qcgaugewidget.h.

float QcScaleItem::mMinDegree
protected

Definition at line 151 of file qcgaugewidget.h.

float QcScaleItem::mMinValue
protected

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