#include <Rotor.h>
|
| Rotor (QWidget *=0) |
|
| ~Rotor () |
|
QSize | sizeHint () const |
| Gives a hint aboute the optimal size. More...
|
|
QString | getBackground () const |
|
void | setBackground (const QString &) |
|
void | resetBackground () |
|
QString | getRotor () const |
|
void | setRotor (const QString &) |
|
void | resetRotor () |
|
QString | getForeground () const |
|
void | setForeground (const QString &) |
|
void | resetForeground () |
|
QPointF | getRotorCenter () const |
|
void | setRotorCenter (QPointF) |
|
void | resetRotorCenter () |
|
double | getGlobalAngle () const |
|
void | setGlobalAngle (double) |
|
void | resetGlobalAngle () |
|
void | setSpeedVariable (PdCom::Variable pv, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0) |
| Subscribe to a process variable. More...
|
|
void | setSpeedVariable (PdCom::Process *process, const QString &path, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0) |
| Subscribes to a ProcessVariable. More...
|
|
void | clearSpeedVariable () |
| Unsubscribe from a Variable. More...
|
|
◆ Rotor()
Rotor::Rotor |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~Rotor()
◆ clearSpeedVariable()
void Rotor::clearSpeedVariable |
( |
| ) |
|
◆ event()
bool Rotor::event |
( |
QEvent * |
event | ) |
|
|
overrideprivate |
◆ getBackground()
QString Rotor::getBackground |
( |
| ) |
const |
◆ getForeground()
QString Rotor::getForeground |
( |
| ) |
const |
◆ getGlobalAngle()
double Rotor::getGlobalAngle |
( |
| ) |
const |
◆ getRotor()
QString Rotor::getRotor |
( |
| ) |
const |
◆ getRotorCenter()
QPointF Rotor::getRotorCenter |
( |
| ) |
const |
◆ paintEvent()
void Rotor::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprivate |
◆ resetBackground()
void Rotor::resetBackground |
( |
| ) |
|
◆ resetForeground()
void Rotor::resetForeground |
( |
| ) |
|
◆ resetGlobalAngle()
void Rotor::resetGlobalAngle |
( |
| ) |
|
◆ resetRotor()
void Rotor::resetRotor |
( |
| ) |
|
◆ resetRotorCenter()
void Rotor::resetRotorCenter |
( |
| ) |
|
◆ resizeEvent()
void Rotor::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
overrideprivate |
◆ setBackground()
void Rotor::setBackground |
( |
const QString & |
path | ) |
|
◆ setForeground()
void Rotor::setForeground |
( |
const QString & |
path | ) |
|
◆ setGlobalAngle()
void Rotor::setGlobalAngle |
( |
double |
a | ) |
|
◆ setRotor()
void Rotor::setRotor |
( |
const QString & |
path | ) |
|
◆ setRotorCenter()
void Rotor::setRotorCenter |
( |
QPointF |
p | ) |
|
◆ setSpeedVariable() [1/2]
void Rotor::setSpeedVariable |
( |
PdCom::Variable |
pv, |
|
|
const PdCom::Selector & |
selector = {} , |
|
|
const QtPdCom::Transmission & |
transmission = QtPdCom::event_mode , |
|
|
double |
scale = 1.0 , |
|
|
double |
offset = 0.0 , |
|
|
double |
tau = 0.0 |
|
) |
| |
Subscribe to a process variable.
Subscribes to a ProcessVariable.
- Parameters
-
pv | Process variable. |
selector | Selector. |
transmission | Transmission. |
scale | Scale factor. |
offset | Offset (applied after scaling). |
tau | PT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied. |
References clearSpeedVariable(), and impl.
◆ setSpeedVariable() [2/2]
void Rotor::setSpeedVariable |
( |
PdCom::Process * |
process, |
|
|
const QString & |
path, |
|
|
const PdCom::Selector & |
selector = {} , |
|
|
const QtPdCom::Transmission & |
transmission = QtPdCom::event_mode , |
|
|
double |
scale = 1.0 , |
|
|
double |
offset = 0.0 , |
|
|
double |
tau = 0.0 |
|
) |
| |
Subscribes to a ProcessVariable.
- Parameters
-
process | Process. |
path | Variable path. |
selector | Selector. |
transmission | Transmission. |
scale | Scale factor. |
offset | Offset (applied after scaling). |
tau | PT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied. |
References clearSpeedVariable(), and impl.
◆ sizeHint()
QSize Rotor::sizeHint |
( |
| ) |
const |
Gives a hint aboute the optimal size.
◆ timeout
◆ Impl
◆ impl
std::unique_ptr<Impl> Pd::Rotor::impl |
|
private |
Referenced by clearSpeedVariable(), getBackground(), getForeground(), getGlobalAngle(), getRotor(), getRotorCenter(), paintEvent(), resizeEvent(), setBackground(), setForeground(), setGlobalAngle(), setRotor(), setRotorCenter(), setSpeedVariable(), and timeout().
◆ background
QString Pd::Rotor::background |
|
readwrite |
◆ foreground
QString Pd::Rotor::foreground |
|
readwrite |
◆ globalAngle
double Pd::Rotor::globalAngle |
|
readwrite |
◆ rotor
◆ rotorCenter
QPointF Pd::Rotor::rotorCenter |
|
readwrite |
The documentation for this class was generated from the following files: