g2o
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ViewerPropertiesWidget Class Reference

#include <viewer_properties_widget.h>

Inheritance diagram for ViewerPropertiesWidget:
Inheritance graph
[legend]
Collaboration diagram for ViewerPropertiesWidget:
Collaboration graph
[legend]

Public Member Functions

 ViewerPropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~ViewerPropertiesWidget ()
 
void setViewer (g2o::G2oQGLViewer *viewer)
 
- Public Member Functions inherited from PropertiesWidget
 PropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~PropertiesWidget ()
 
void setProperties (g2o::PropertyMap *properties)
 

Protected Member Functions

virtual void applyProperties ()
 
virtual std::string humanReadablePropName (const std::string &probName) const
 
- Protected Member Functions inherited from PropertiesWidget
virtual void updateDisplayedProperties ()
 

Protected Attributes

g2o::G2oQGLViewer_viewer
 
- Protected Attributes inherited from PropertiesWidget
std::vector< std::string > _propNames
 
g2o::PropertyMap_properties
 

Additional Inherited Members

- Public Slots inherited from PropertiesWidget
void on_btnApply_clicked ()
 
void on_btnOK_clicked ()
 

Detailed Description

Definition at line 30 of file viewer_properties_widget.h.

Constructor & Destructor Documentation

ViewerPropertiesWidget::ViewerPropertiesWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 70 of file viewer_properties_widget.cpp.

70  :
71  PropertiesWidget(parent, f)
72 {
73 }
PropertiesWidget(QWidget *parent=0, Qt::WindowFlags f=0)
ViewerPropertiesWidget::~ViewerPropertiesWidget ( )
virtual

Definition at line 75 of file viewer_properties_widget.cpp.

76 {
77 }

Member Function Documentation

void ViewerPropertiesWidget::applyProperties ( )
protectedvirtual

Reimplemented from PropertiesWidget.

Definition at line 79 of file viewer_properties_widget.cpp.

References _viewer, PropertiesWidget::applyProperties(), and g2o::G2oQGLViewer::setUpdateDisplay().

80 {
82 
83  // draw with the new properties
85  _viewer->updateGL();
86 }
void setUpdateDisplay(bool updateDisplay)
virtual void applyProperties()
std::string ViewerPropertiesWidget::humanReadablePropName ( const std::string &  probName) const
protectedvirtual

Reimplemented from PropertiesWidget.

Definition at line 94 of file viewer_properties_widget.cpp.

References demangleName().

95 {
96  return demangleName(propertyName);
97 }
static std::string demangleName(const std::string &fullPropName)
void ViewerPropertiesWidget::setViewer ( g2o::G2oQGLViewer viewer)

Definition at line 88 of file viewer_properties_widget.cpp.

References _viewer, g2o::G2oQGLViewer::parameters(), and PropertiesWidget::setProperties().

Referenced by MainWindow::on_actionProperties_triggered().

89 {
90  _viewer = viewer;
91  setProperties(viewer->parameters());
92 }
DrawAction::Parameters * parameters()
Definition: g2o_qglviewer.h:48
void setProperties(g2o::PropertyMap *properties)

Member Data Documentation

g2o::G2oQGLViewer* ViewerPropertiesWidget::_viewer
protected

Definition at line 39 of file viewer_properties_widget.h.

Referenced by applyProperties(), and setViewer().


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