Main Page
Namespaces
Classes
Files
File List
src
rqt_multiplot
PlotAxesConfigWidget.cpp
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2015 by Ralf Kaestner *
3
* ralf.kaestner@gmail.com *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the Lesser GNU General Public License as published by*
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* Lesser GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the Lesser GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
******************************************************************************/
18
19
#include <ui_PlotAxesConfigWidget.h>
20
21
#include "
rqt_multiplot/PlotAxesConfigWidget.h
"
22
23
namespace
rqt_multiplot
{
24
25
/*****************************************************************************/
26
/* Constructors and Destructor */
27
/*****************************************************************************/
28
29
PlotAxesConfigWidget::PlotAxesConfigWidget
(QWidget* parent) :
30
QWidget(parent),
31
ui_(new
Ui
::
PlotAxesConfigWidget
()),
32
config_(0) {
33
ui_
->setupUi(
this
);
34
}
35
36
PlotAxesConfigWidget::~PlotAxesConfigWidget
() {
37
delete
ui_
;
38
}
39
40
/*****************************************************************************/
41
/* Accessors */
42
/*****************************************************************************/
43
44
void
PlotAxesConfigWidget::setConfig
(
PlotAxesConfig
* config) {
45
if
(config !=
config_
) {
46
config_
= config;
47
48
if
(config) {
49
ui_
->plotAxisConfigWidgetX->setConfig(
config_
->
50
getAxisConfig(
PlotAxesConfig::X
));
51
ui_
->plotAxisConfigWidgetY->setConfig(
config_
->
52
getAxisConfig(
PlotAxesConfig::Y
));
53
}
54
else
{
55
ui_
->plotAxisConfigWidgetX->setConfig(0);
56
ui_
->plotAxisConfigWidgetY->setConfig(0);
57
}
58
}
59
}
60
61
PlotAxesConfig
*
PlotAxesConfigWidget::getConfig
()
const
{
62
return
config_
;
63
}
64
65
}
PlotAxesConfigWidget.h
rqt_multiplot::PlotAxesConfigWidget::getConfig
PlotAxesConfig * getConfig() const
Definition:
PlotAxesConfigWidget.cpp:61
Ui
Definition:
CurveAxisConfigWidget.h:26
rqt_multiplot::PlotAxesConfig::X
Definition:
PlotAxesConfig.h:31
rqt_multiplot::PlotAxesConfigWidget::PlotAxesConfigWidget
PlotAxesConfigWidget(QWidget *parent=0)
Definition:
PlotAxesConfigWidget.cpp:29
rqt_multiplot::PlotAxesConfigWidget::~PlotAxesConfigWidget
virtual ~PlotAxesConfigWidget()
Definition:
PlotAxesConfigWidget.cpp:36
rqt_multiplot::PlotAxesConfigWidget::setConfig
void setConfig(PlotAxesConfig *range)
Definition:
PlotAxesConfigWidget.cpp:44
rqt_multiplot::PlotAxesConfigWidget
Definition:
PlotAxesConfigWidget.h:31
rqt_multiplot::PlotAxesConfig::Y
Definition:
PlotAxesConfig.h:32
rqt_multiplot
Definition:
BagQuery.h:33
rqt_multiplot::PlotAxesConfigWidget::config_
PlotAxesConfig * config_
Definition:
PlotAxesConfigWidget.h:44
rqt_multiplot::PlotAxesConfigWidget::ui_
Ui::PlotAxesConfigWidget * ui_
Definition:
PlotAxesConfigWidget.h:42
rqt_multiplot::PlotAxesConfig
Definition:
PlotAxesConfig.h:26
rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44