trikRuntime
|
Widget that allows to set distance value of a sensor. More...
#include <sensorLever.h>
Public Member Functions | |
SensorLever (const QString &port, QWidget *parent=0) | |
Constructor. More... | |
int | distance () const |
Returns distance value of this lever. More... | |
bool | isGreater () const |
Returns sign of command. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
void | paintEvent (QPaintEvent *) override |
Widget that allows to set distance value of a sensor.
|
explicit |
Constructor.
port | - name of a port which the sensor is connected to. |
parent | - pointer to a parent widget. |
int SensorLever::distance | ( | ) | const |
Returns distance value of this lever.
bool SensorLever::isGreater | ( | ) | const |
Returns sign of command.
|
overrideprotected |
|
overrideprotected |