g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
apps
g2o_viewer
properties_widget.h
Go to the documentation of this file.
1
// g2o - General Graph Optimization
2
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3
//
4
// This file is part of g2o.
5
//
6
// g2o is free software: you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// g2o is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with g2o. If not, see <http://www.gnu.org/licenses/>.
18
19
#ifndef G2O_PROPERTIES_WINDOW_H
20
#define G2O_PROPERTIES_WINDOW_H
21
22
#include <QDialog>
23
#include <string>
24
#include <vector>
25
26
#include "
g2o_viewer_api.h
"
27
#include "ui_base_properties_widget.h"
28
29
namespace
g2o
{
30
class
G2oQGLViewer
;
31
class
PropertyMap
;
32
}
// namespace g2o
33
34
class
G2O_VIEWER_API
PropertiesWidget
:
public
QDialog,
35
public
Ui::BasePropertiesWidget {
36
Q_OBJECT
37
public
:
38
PropertiesWidget
(QWidget* parent = 0);
39
virtual
~PropertiesWidget
();
40
41
void
setProperties
(
g2o::PropertyMap
* properties);
42
43
public
slots:
44
void
on_btnApply_clicked
();
45
void
on_btnOK_clicked
();
46
47
protected
:
48
std::vector<std::string>
_propNames
;
49
g2o::PropertyMap
*
_properties
;
50
51
virtual
void
updateDisplayedProperties
();
52
virtual
void
applyProperties
();
53
virtual
std::string
humanReadablePropName
(
54
const
std::string& propertyName)
const
;
55
};
56
57
#endif
PropertiesWidget::on_btnApply_clicked
void on_btnApply_clicked()
Definition
properties_widget.cpp:113
PropertiesWidget::_propNames
std::vector< std::string > _propNames
Definition
properties_widget.h:48
PropertiesWidget::on_btnOK_clicked
void on_btnOK_clicked()
Definition
properties_widget.cpp:115
PropertiesWidget::setProperties
void setProperties(g2o::PropertyMap *properties)
Definition
properties_widget.cpp:125
PropertiesWidget::humanReadablePropName
virtual std::string humanReadablePropName(const std::string &propertyName) const
Definition
properties_widget.cpp:120
PropertiesWidget::applyProperties
virtual void applyProperties()
Definition
properties_widget.cpp:90
PropertiesWidget::_properties
g2o::PropertyMap * _properties
Definition
properties_widget.h:49
PropertiesWidget::updateDisplayedProperties
virtual void updateDisplayedProperties()
Definition
properties_widget.cpp:38
PropertiesWidget::PropertiesWidget
PropertiesWidget(QWidget *parent=0)
Definition
properties_widget.cpp:31
g2o::G2oQGLViewer
OpenGL based viewer for the graph.
Definition
g2o_qglviewer.h:33
g2o::PropertyMap
a collection of properties mapping from name to the property itself
Definition
property.h:78
g2o_viewer_api.h
G2O_VIEWER_API
#define G2O_VIEWER_API
Definition
g2o_viewer_api.h:47
g2o
Definition
dl_wrapper.cpp:55
Generated on
for g2o by
1.17.0