Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
rtabmap::DatabaseViewer Class Reference

#include <DatabaseViewer.h>

List of all members.

Public Member Functions

 DatabaseViewer (QWidget *parent=0)
bool isSavedMaximized () const
bool openDatabase (const QString &path)
void showCloseButton (bool visible=true)
virtual ~DatabaseViewer ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
virtual bool eventFilter (QObject *obj, QEvent *event)
virtual void moveEvent (QMoveEvent *anEvent)
virtual void resizeEvent (QResizeEvent *anEvent)
virtual void showEvent (QShowEvent *anEvent)

Private Slots

void addConstraint ()
void configModified ()
void detectMoreLoopClosures ()
void exportDatabase ()
void extractImages ()
void generate3DMap ()
void generateGraph ()
void generateLocalGraph ()
void generateTOROGraph ()
void openDatabase ()
void refineAllLoopClosureLinks ()
void refineAllNeighborLinks ()
void refineConstraint ()
void refineConstraintVisually ()
void refineVisuallyAllLoopClosureLinks ()
void refineVisuallyAllNeighborLinks ()
void rejectConstraint ()
void resetAllChanges ()
void resetConstraint ()
void sliderAMoved (int)
void sliderAValueChanged (int)
void sliderBMoved (int)
void sliderBValueChanged (int)
void sliderIterationsValueChanged (int)
void sliderLoopValueChanged (int)
void sliderNeighborValueChanged (int)
void updateConstraintView ()
void updateGraphView ()
void updateGrid ()
void view3DMap ()
void writeSettings ()

Private Member Functions

bool addConstraint (int from, int to, bool silent, bool updateGraph)
bool containsLink (std::multimap< int, Link > &links, int from, int to)
Link findActiveLink (int from, int to)
QString getIniFilePath () const
void readSettings ()
void refineConstraint (int from, int to, bool silent, bool updateGraph)
void refineConstraintVisually (int from, int to, bool silent, bool updateGraph)
void update (int value, QLabel *labelIndex, QLabel *labelParents, QLabel *labelChildren, QLabel *weight, QLabel *label, QLabel *stamp, rtabmap::ImageView *view, rtabmap::CloudViewer *view3D, QLabel *labelId, QLabel *labelMapId, bool updateConstraintView)
void updateConstraintButtons ()
void updateConstraintView (const rtabmap::Link &link, bool updateImageSliders=true, const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloudFrom=pcl::PointCloud< pcl::PointXYZ >::Ptr(new pcl::PointCloud< pcl::PointXYZ >), const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloudTo=pcl::PointCloud< pcl::PointXYZ >::Ptr(new pcl::PointCloud< pcl::PointXYZ >), const pcl::PointCloud< pcl::PointXYZ >::Ptr &scanFrom=pcl::PointCloud< pcl::PointXYZ >::Ptr(new pcl::PointCloud< pcl::PointXYZ >), const pcl::PointCloud< pcl::PointXYZ >::Ptr &scanTo=pcl::PointCloud< pcl::PointXYZ >::Ptr(new pcl::PointCloud< pcl::PointXYZ >))
void updateIds ()
std::multimap< int, rtabmap::LinkupdateLinksWithModifications (const std::multimap< int, rtabmap::Link > &edgeConstraints)
void updateLoopClosuresSlider (int from=0, int to=0)
void updateStereo (const Signature *data)
void updateWordsMatching ()

Private Attributes

bool firstCall_
std::list< std::map< int,
rtabmap::Transform > > 
graphes_
QList< int > ids_
QMap< int, int > idToIndex_
std::multimap< int, rtabmap::Linklinks_
std::multimap< int, rtabmap::LinklinksAdded_
std::multimap< int, rtabmap::LinklinksRefined_
std::multimap< int, rtabmap::LinklinksRemoved_
std::map< int, std::pair
< cv::Mat, cv::Mat > > 
localMaps_
QList< rtabmap::LinkloopLinks_
rtabmap::Memorymemory_
QList< rtabmap::LinkneighborLinks_
QString pathDatabase_
std::map< int, rtabmap::Transformposes_
bool savedMaximized_
Ui_DatabaseViewer * ui_

Detailed Description

Definition at line 58 of file DatabaseViewer.h.


Constructor & Destructor Documentation

rtabmap::DatabaseViewer::DatabaseViewer ( QWidget *  parent = 0)

Definition at line 67 of file DatabaseViewer.cpp.

Definition at line 261 of file DatabaseViewer.cpp.


Member Function Documentation

void rtabmap::DatabaseViewer::addConstraint ( ) [private, slot]

Definition at line 2896 of file DatabaseViewer.cpp.

bool rtabmap::DatabaseViewer::addConstraint ( int  from,
int  to,
bool  silent,
bool  updateGraph 
) [private]

Definition at line 2903 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::closeEvent ( QCloseEvent *  event) [protected, virtual]

Definition at line 508 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::configModified ( ) [private, slot]

Definition at line 275 of file DatabaseViewer.cpp.

bool rtabmap::DatabaseViewer::containsLink ( std::multimap< int, Link > &  links,
int  from,
int  to 
) [private]

Definition at line 2507 of file DatabaseViewer.cpp.

Definition at line 1233 of file DatabaseViewer.cpp.

bool rtabmap::DatabaseViewer::eventFilter ( QObject *  obj,
QEvent *  event 
) [protected, virtual]

Definition at line 647 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::exportDatabase ( ) [private, slot]

Definition at line 657 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::extractImages ( ) [private, slot]

Definition at line 775 of file DatabaseViewer.cpp.

Link rtabmap::DatabaseViewer::findActiveLink ( int  from,
int  to 
) [private]

Definition at line 2480 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::generate3DMap ( ) [private, slot]

Definition at line 1132 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::generateGraph ( ) [private, slot]

Definition at line 922 of file DatabaseViewer.cpp.

Definition at line 937 of file DatabaseViewer.cpp.

Definition at line 978 of file DatabaseViewer.cpp.

QString rtabmap::DatabaseViewer::getIniFilePath ( ) const [private]

Definition at line 280 of file DatabaseViewer.cpp.

Definition at line 66 of file DatabaseViewer.h.

void rtabmap::DatabaseViewer::moveEvent ( QMoveEvent *  anEvent) [protected, virtual]

Definition at line 626 of file DatabaseViewer.cpp.

bool rtabmap::DatabaseViewer::openDatabase ( const QString &  path)

Definition at line 456 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::openDatabase ( ) [private, slot]

Definition at line 447 of file DatabaseViewer.cpp.

Definition at line 290 of file DatabaseViewer.cpp.

Definition at line 1307 of file DatabaseViewer.cpp.

Definition at line 1282 of file DatabaseViewer.cpp.

Definition at line 2512 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::refineConstraint ( int  from,
int  to,
bool  silent,
bool  updateGraph 
) [private]

Definition at line 2519 of file DatabaseViewer.cpp.

Definition at line 2778 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::refineConstraintVisually ( int  from,
int  to,
bool  silent,
bool  updateGraph 
) [private]

Definition at line 2785 of file DatabaseViewer.cpp.

Definition at line 1357 of file DatabaseViewer.cpp.

Definition at line 1332 of file DatabaseViewer.cpp.

Definition at line 3057 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::resetAllChanges ( ) [private, slot]

Definition at line 1382 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::resetConstraint ( ) [private, slot]

Definition at line 3020 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::resizeEvent ( QResizeEvent *  anEvent) [protected, virtual]

Definition at line 639 of file DatabaseViewer.cpp.

Definition at line 270 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::showEvent ( QShowEvent *  anEvent) [protected, virtual]

Definition at line 616 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderAMoved ( int  value) [private, slot]

Definition at line 1854 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderAValueChanged ( int  value) [private, slot]

Definition at line 1391 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderBMoved ( int  value) [private, slot]

Definition at line 1867 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderBValueChanged ( int  value) [private, slot]

Definition at line 1407 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderIterationsValueChanged ( int  value) [private, slot]

Definition at line 2245 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderLoopValueChanged ( int  value) [private, slot]

Definition at line 1885 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::sliderNeighborValueChanged ( int  value) [private, slot]

Definition at line 1880 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::update ( int  value,
QLabel *  labelIndex,
QLabel *  labelParents,
QLabel *  labelChildren,
QLabel *  weight,
QLabel *  label,
QLabel *  stamp,
rtabmap::ImageView view,
rtabmap::CloudViewer view3D,
QLabel *  labelId,
QLabel *  labelMapId,
bool  updateConstraintView 
) [private]

Definition at line 1423 of file DatabaseViewer.cpp.

Definition at line 2198 of file DatabaseViewer.cpp.

Definition at line 1891 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::updateConstraintView ( const rtabmap::Link link,
bool  updateImageSliders = true,
const pcl::PointCloud< pcl::PointXYZ >::Ptr &  cloudFrom = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>),
const pcl::PointCloud< pcl::PointXYZ >::Ptr &  cloudTo = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>),
const pcl::PointCloud< pcl::PointXYZ >::Ptr &  scanFrom = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>),
const pcl::PointCloud< pcl::PointXYZ >::Ptr &  scanTo = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>) 
) [private]

Definition at line 1910 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::updateGraphView ( ) [private, slot]

Definition at line 2386 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::updateGrid ( ) [private, slot]

Definition at line 2469 of file DatabaseViewer.cpp.

Definition at line 799 of file DatabaseViewer.cpp.

std::multimap< int, rtabmap::Link > rtabmap::DatabaseViewer::updateLinksWithModifications ( const std::multimap< int, rtabmap::Link > &  edgeConstraints) [private]

Definition at line 3110 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::updateLoopClosuresSlider ( int  from = 0,
int  to = 0 
) [private]

Definition at line 3172 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::updateStereo ( const Signature data) [private]

Definition at line 1645 of file DatabaseViewer.cpp.

Definition at line 1800 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::view3DMap ( ) [private, slot]

Definition at line 999 of file DatabaseViewer.cpp.

void rtabmap::DatabaseViewer::writeSettings ( ) [private, slot]

Definition at line 369 of file DatabaseViewer.cpp.


Member Data Documentation

Definition at line 165 of file DatabaseViewer.h.

std::list<std::map<int, rtabmap::Transform> > rtabmap::DatabaseViewer::graphes_ [private]

Definition at line 156 of file DatabaseViewer.h.

QList<int> rtabmap::DatabaseViewer::ids_ [private]

Definition at line 150 of file DatabaseViewer.h.

QMap<int, int> rtabmap::DatabaseViewer::idToIndex_ [private]

Definition at line 151 of file DatabaseViewer.h.

std::multimap<int, rtabmap::Link> rtabmap::DatabaseViewer::links_ [private]

Definition at line 158 of file DatabaseViewer.h.

std::multimap<int, rtabmap::Link> rtabmap::DatabaseViewer::linksAdded_ [private]

Definition at line 160 of file DatabaseViewer.h.

Definition at line 159 of file DatabaseViewer.h.

Definition at line 161 of file DatabaseViewer.h.

std::map<int, std::pair<cv::Mat, cv::Mat> > rtabmap::DatabaseViewer::localMaps_ [private]

Definition at line 162 of file DatabaseViewer.h.

Definition at line 153 of file DatabaseViewer.h.

Definition at line 154 of file DatabaseViewer.h.

Definition at line 152 of file DatabaseViewer.h.

Definition at line 155 of file DatabaseViewer.h.

Definition at line 157 of file DatabaseViewer.h.

Definition at line 164 of file DatabaseViewer.h.

Ui_DatabaseViewer* rtabmap::DatabaseViewer::ui_ [private]

Definition at line 149 of file DatabaseViewer.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Fri Aug 28 2015 12:51:43