trikRuntime
trikGui::SensorLever Class Reference

Widget that allows to set distance value of a sensor. More...

#include <sensorLever.h>

Inheritance diagram for trikGui::SensorLever:
Collaboration diagram for trikGui::SensorLever:

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
 

Detailed Description

Widget that allows to set distance value of a sensor.

Constructor & Destructor Documentation

SensorLever::SensorLever ( const QString &  port,
QWidget *  parent = 0 
)
explicit

Constructor.

Parameters
port- name of a port which the sensor is connected to.
parent- pointer to a parent widget.

Member Function Documentation

int SensorLever::distance ( ) const

Returns distance value of this lever.

bool SensorLever::isGreater ( ) const

Returns sign of command.

void SensorLever::keyPressEvent ( QKeyEvent *  event)
overrideprotected
void SensorLever::paintEvent ( QPaintEvent *  )
overrideprotected

The documentation for this class was generated from the following files: