#include <SonarWidget.h>
Inherits QWidget.
Definition at line 10 of file SonarWidget.h.
| SonarWidget::SonarWidget |
( |
QWidget * |
parent = 0 | ) |
|
Definition at line 8 of file SonarWidget.cc.
19 QPalette Pal(palette());
20 Pal.setColor(QPalette::Background,
plot->palette().color(QPalette::Background));
21 setAutoFillBackground(
true);
| SonarWidget::~SonarWidget |
( |
| ) |
|
|
virtual |
| void SonarWidget::createGainComponent |
( |
| ) |
|
Definition at line 127 of file SonarWidget.cc.
128 lbGain =
new QLabel(
this);
129 lbGain->setGeometry(10, height() - 70, 50, 20);
130 QPalette Pal =
lbGain->palette();
131 Pal.setColor(QPalette::Foreground, Qt::white);
134 slGain =
new QSlider(Qt::Horizontal,
this);
135 slGain->setGeometry(70, height() - 70, 150, 20);
139 edGain =
new QLineEdit(
this);
140 edGain->setGeometry(230, height() - 70, 50, 20);
141 edGain->setAlignment(Qt::AlignRight);
143 Pal.setColor(QPalette::Base,
plot->palette().color(QPalette::Background));
145 setAutoFillBackground(
true);
147 edGain->setReadOnly(
true);
| void SonarWidget::createGridComponent |
( |
| ) |
|
Definition at line 199 of file SonarWidget.cc.
200 lbGrid =
new QLabel(
this);
201 lbGrid->setGeometry(width() - 160, height() - 70, 50, 20);
203 lbGrid->setAlignment(Qt::AlignRight);
204 lbGrid->setStyleSheet(
"background-color: blue; color: white;");
207 boxGrid->setGeometry(width() - 100, height() - 70, 20, 20);
208 boxGrid->setStyleSheet(
"background-color: blue;");
| void SonarWidget::createPaletteComponent |
( |
| ) |
|
Definition at line 177 of file SonarWidget.cc.
179 lbPalette->setGeometry(width()-160, height() - 40, 50, 20);
180 lbPalette->setGeometry(width()-160, height() - 40, 50, 20);
182 lbPalette->setStyleSheet(
"background-color: blue; color: white;");
186 comboPalette->setGeometry(width()-100,height()-40,80,20);
188 Pal.setColor(
comboPalette->backgroundRole(),
plot->palette().color(QPalette::Background));
190 setAutoFillBackground(
true);
| void SonarWidget::createRangeComponent |
( |
| ) |
|
Definition at line 152 of file SonarWidget.cc.
154 lbRange->setGeometry(10,height()-40,50,20);
155 QPalette Pal=
lbRange->palette();
156 Pal.setColor(QPalette::Foreground,Qt::white);
159 slRange =
new QSlider(Qt::Horizontal,
this);
160 slRange->setGeometry(70,height()-40,150,20);
165 edRange->setGeometry(230,height()-40,50,20);
166 edRange->setAlignment(Qt::AlignRight);
168 Pal.setColor(QPalette::Base,
plot->palette().color(QPalette::Background));
170 setAutoFillBackground(
true);
| void SonarWidget::enableAutoRanging |
( |
bool |
value | ) |
|
|
slot |
| void SonarWidget::gainChanged |
( |
int |
| ) |
|
|
signal |
| void SonarWidget::gridChanged |
( |
bool |
| ) |
|
|
signal |
| void SonarWidget::onCheckboxGridChanged |
( |
bool |
value | ) |
|
|
protectedslot |
| void SonarWidget::onComboPaletteChanged |
( |
int |
value | ) |
|
|
protectedslot |
| void SonarWidget::onSlGainChanged |
( |
int |
value | ) |
|
|
protectedslot |
| void SonarWidget::onSlRangeChanged |
( |
int |
value | ) |
|
|
protectedslot |
| void SonarWidget::rangeChanged |
( |
int |
| ) |
|
|
signal |
| void SonarWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protected |
Definition at line 32 of file SonarWidget.cc.
34 plot->setGeometry (10,10,width()-20,height()-70);
35 lbGain->setGeometry(10,height()-70,50,20);
36 slGain->setGeometry(70,height()-70,150,20);
37 edGain->setGeometry(230,height()-70,50,20);
38 lbRange->setGeometry(10,height()-40,50,20);
39 slRange->setGeometry(70,height()-40,150,20);
40 edRange->setGeometry(230,height()-40,50,20);
41 lbPalette->setGeometry(width()-160,height()-40,50,20);
42 comboPalette->setGeometry(width()-100,height()-40,80,20);
43 lbGrid->setGeometry(width()-160,height()-70,50,20);
44 boxGrid->setGeometry(width()-100,height()-70,80,20);
45 QWidget::resizeEvent (event);
| void SonarWidget::setData |
( |
const base::samples::SonarScan |
scan | ) |
|
|
slot |
Definition at line 55 of file SonarWidget.cc.
57 base::samples::Sonar sonar(scan);
| void SonarWidget::setData |
( |
const base::samples::Sonar |
sonar | ) |
|
|
slot |
Definition at line 61 of file SonarWidget.cc.
void setData(const base::samples::Sonar &sonar)
| void SonarWidget::setGain |
( |
int |
value | ) |
|
|
slot |
| void SonarWidget::setMaxRange |
( |
int |
value | ) |
|
|
slot |
| void SonarWidget::setMinRange |
( |
int |
value | ) |
|
|
slot |
| void SonarWidget::setRange |
( |
int |
value | ) |
|
|
slot |
| void SonarWidget::setSectorScan |
( |
bool |
continuous, |
|
|
base::Angle |
left, |
|
|
base::Angle |
right |
|
) |
| |
|
slot |
Definition at line 76 of file SonarWidget.cc.
void setSectorScan(bool continuous, base::Angle leftLimit, base::Angle rightLimit)
| void SonarWidget::setSonarPalette |
( |
int |
value | ) |
|
|
slot |
| void SonarWidget::sonarPaletteChanged |
( |
int |
| ) |
|
|
signal |
| QCheckBox* SonarWidget::boxGrid |
| QComboBox* SonarWidget::comboPalette |
| QLineEdit* SonarWidget::edGain |
|
protected |
| QLineEdit* SonarWidget::edRange |
|
protected |
| QLabel* SonarWidget::lbGain |
|
protected |
| QLabel* SonarWidget::lbGrid |
|
protected |
| QLabel* SonarWidget::lbPalette |
|
protected |
| QLabel* SonarWidget::lbRange |
|
protected |
| double SonarWidget::scaleX |
|
protected |
| double SonarWidget::scaleY |
|
protected |
| QSlider* SonarWidget::slGain |
| QSlider* SonarWidget::slRange |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/sonar_widget/SonarWidget.h
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/sonar_widget/SonarWidget.cc