g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
apps
g2o_viewer
g2o_qglviewer.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_QGL_GRAPH_VIEWER_H
20
#define G2O_QGL_GRAPH_VIEWER_H
21
22
#include "
g2o/core/hyper_graph_action.h
"
23
#include "
g2o_viewer_api.h
"
24
#include "qglviewer.h"
25
26
namespace
g2o
{
27
28
class
SparseOptimizer
;
29
33
class
G2O_VIEWER_API
G2oQGLViewer
:
public
QGLViewer {
34
public
:
35
G2oQGLViewer
(QWidget* parent = NULL,
const
QGLWidget* shareWidget = 0);
36
G2oQGLViewer
(
const
G2oQGLViewer
&) =
delete
;
37
G2oQGLViewer
&
operator=
(
const
G2oQGLViewer
&) =
delete
;
38
39
~G2oQGLViewer
();
40
void
draw
();
41
void
init
();
42
47
bool
updateDisplay
()
const
{
return
_updateDisplay
; }
48
void
setUpdateDisplay(
bool
updateDisplay
);
49
50
DrawAction::Parameters
*
parameters
() {
return
_drawActionParameters
; }
51
52
public
:
53
SparseOptimizer
*
graph
;
54
55
protected
:
56
HyperGraphElementAction
*
_drawActions
;
57
GLuint
_drawList
;
58
bool
_updateDisplay
;
59
DrawAction::Parameters
*
_drawActionParameters
;
60
};
61
62
}
// namespace g2o
63
64
#endif
g2o::DrawAction::Parameters
Definition
hyper_graph_action.h:204
g2o::G2oQGLViewer::G2oQGLViewer
G2oQGLViewer(const G2oQGLViewer &)=delete
g2o::G2oQGLViewer::graph
SparseOptimizer * graph
Definition
g2o_qglviewer.h:53
g2o::G2oQGLViewer::operator=
G2oQGLViewer & operator=(const G2oQGLViewer &)=delete
g2o::G2oQGLViewer::init
void init()
Definition
g2o_qglviewer.cpp:123
g2o::G2oQGLViewer::_drawActions
HyperGraphElementAction * _drawActions
Definition
g2o_qglviewer.h:56
g2o::G2oQGLViewer::updateDisplay
bool updateDisplay() const
Definition
g2o_qglviewer.h:47
g2o::G2oQGLViewer::parameters
DrawAction::Parameters * parameters()
Definition
g2o_qglviewer.h:50
g2o::G2oQGLViewer::draw
void draw()
Definition
g2o_qglviewer.cpp:103
g2o::G2oQGLViewer::_drawActionParameters
DrawAction::Parameters * _drawActionParameters
Definition
g2o_qglviewer.h:59
g2o::G2oQGLViewer::_updateDisplay
bool _updateDisplay
Definition
g2o_qglviewer.h:58
g2o::G2oQGLViewer::_drawList
GLuint _drawList
Definition
g2o_qglviewer.h:57
g2o::G2oQGLViewer::G2oQGLViewer
G2oQGLViewer(QWidget *parent=NULL, const QGLWidget *shareWidget=0)
Definition
g2o_qglviewer.cpp:88
g2o::HyperGraphElementAction
Abstract action that operates on a graph entity.
Definition
hyper_graph_action.h:74
g2o::SparseOptimizer
Definition
sparse_optimizer.h:42
updateDisplay
void updateDisplay(ostream &os, const SparseOptimizer &optimizer)
Definition
g2o-unfold.cpp:105
g2o_viewer_api.h
G2O_VIEWER_API
#define G2O_VIEWER_API
Definition
g2o_viewer_api.h:47
hyper_graph_action.h
g2o
Definition
dl_wrapper.cpp:55
Generated on
for g2o by
1.17.0