g2o
Loading...
Searching...
No Matches
g2o::G2oQGLViewer Class Reference

OpenGL based viewer for the graph. More...

#include <g2o_qglviewer.h>

Inheritance diagram for g2o::G2oQGLViewer:
Collaboration diagram for g2o::G2oQGLViewer:

Public Member Functions

 G2oQGLViewer (QWidget *parent=NULL, const QGLWidget *shareWidget=0)
 G2oQGLViewer (const G2oQGLViewer &)=delete
G2oQGLViewer & operator= (const G2oQGLViewer &)=delete
 ~G2oQGLViewer ()
void draw ()
void init ()
bool updateDisplay () const
void setUpdateDisplay (bool updateDisplay)
DrawAction::Parameters * parameters ()

Public Attributes

SparseOptimizer * graph

Protected Attributes

HyperGraphElementAction * _drawActions
GLuint _drawList
bool _updateDisplay
DrawAction::Parameters * _drawActionParameters

Detailed Description

OpenGL based viewer for the graph.

Definition at line 33 of file g2o_qglviewer.h.

Constructor & Destructor Documentation

◆ G2oQGLViewer() [1/2]

g2o::G2oQGLViewer::G2oQGLViewer ( QWidget * parent = NULL,
const QGLWidget * shareWidget = 0 )

Definition at line 88 of file g2o_qglviewer.cpp.

References _drawActionParameters, _drawActions, _drawList, _updateDisplay, and graph.

Referenced by G2oQGLViewer(), and operator=().

◆ G2oQGLViewer() [2/2]

g2o::G2oQGLViewer::G2oQGLViewer ( const G2oQGLViewer & )
delete

References G2oQGLViewer().

◆ ~G2oQGLViewer()

g2o::G2oQGLViewer::~G2oQGLViewer ( )

Definition at line 98 of file g2o_qglviewer.cpp.

References _drawActionParameters, and _drawList.

Member Function Documentation

◆ draw()

◆ init()

void g2o::G2oQGLViewer::init ( )

Definition at line 123 of file g2o_qglviewer.cpp.

References _drawList.

Referenced by operator=().

◆ operator=()

G2oQGLViewer & g2o::G2oQGLViewer::operator= ( const G2oQGLViewer & )
delete

References draw(), G2oQGLViewer(), and init().

◆ parameters()

DrawAction::Parameters * g2o::G2oQGLViewer::parameters ( )
inline

Definition at line 50 of file g2o_qglviewer.h.

References _drawActionParameters.

Referenced by ViewerPropertiesWidget::setViewer().

◆ setUpdateDisplay()

void g2o::G2oQGLViewer::setUpdateDisplay ( bool updateDisplay)

Definition at line 172 of file g2o_qglviewer.cpp.

References _updateDisplay, and updateDisplay().

◆ updateDisplay()

bool g2o::G2oQGLViewer::updateDisplay ( ) const
inline

the viewer uses a display list to cache the drawing, use setUpdateDisplay() to force the creation of an updated display list.

Definition at line 47 of file g2o_qglviewer.h.

References _updateDisplay.

Referenced by setUpdateDisplay().

Member Data Documentation

◆ _drawActionParameters

DrawAction::Parameters* g2o::G2oQGLViewer::_drawActionParameters
protected

Definition at line 59 of file g2o_qglviewer.h.

Referenced by draw(), G2oQGLViewer(), parameters(), and ~G2oQGLViewer().

◆ _drawActions

HyperGraphElementAction* g2o::G2oQGLViewer::_drawActions
protected

Definition at line 56 of file g2o_qglviewer.h.

Referenced by draw(), and G2oQGLViewer().

◆ _drawList

GLuint g2o::G2oQGLViewer::_drawList
protected

Definition at line 57 of file g2o_qglviewer.h.

Referenced by draw(), G2oQGLViewer(), init(), and ~G2oQGLViewer().

◆ _updateDisplay

bool g2o::G2oQGLViewer::_updateDisplay
protected

Definition at line 58 of file g2o_qglviewer.h.

Referenced by draw(), G2oQGLViewer(), setUpdateDisplay(), and updateDisplay().

◆ graph

SparseOptimizer* g2o::G2oQGLViewer::graph

Definition at line 53 of file g2o_qglviewer.h.

Referenced by draw(), and G2oQGLViewer().


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