Esempio n. 1
0
void NeedleInstrument::setScale(float zeroAngle, float zeroValue, float maxAngle, float maxValue) {
    Q_ASSERT(maxAngle != 0);
    _zeroangle = zeroAngle;
    _zeroValue = zeroValue;
    _maxAngle = maxAngle;
    _maxValue = maxValue;
    repaintPixmaps();
}
Esempio n. 2
0
void NeedleInstrument::setLabel(QString text) {
    _label = text;
    repaintPixmaps();
}
Esempio n. 3
0
void NeedleInstrument::setNumberScale(float ns) {
    _numberScale = ns;
    repaintPixmaps();
}
Esempio n. 4
0
void NeedleInstrument::setNumbers(float div) {
    _numbers = div;
    repaintPixmaps();
}
Esempio n. 5
0
void NeedleInstrument::setThinBars(float thin) {
    _thinBars = (float)thin;
    repaintPixmaps();
}
Esempio n. 6
0
void NeedleInstrument::setBars(float thick, float thin) {
    _thinBars = thin;
    _thickBars = thick;
    repaintPixmaps();
}
Esempio n. 7
0
void Variometer::setUnit(VelocityUnit unit) {
    units = unit;
    repaintPixmaps();
}