2014-01-22 19:49:28 +00:00
|
|
|
/*
|
|
|
|
|
* MapVisibilityWidget.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2014-01-20
|
|
|
|
|
* Author: mathieu
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MAPVISIBILITYWIDGET_H_
|
|
|
|
|
#define MAPVISIBILITYWIDGET_H_
|
|
|
|
|
|
|
|
|
|
#include <QtGui/QWidget>
|
|
|
|
|
#include <rtabmap/core/Transform.h>
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
namespace rtabmap {
|
|
|
|
|
|
|
|
|
|
class MapVisibilityWidget : public QWidget {
|
|
|
|
|
Q_OBJECT;
|
|
|
|
|
public:
|
|
|
|
|
MapVisibilityWidget(QWidget * parent = 0);
|
|
|
|
|
virtual ~MapVisibilityWidget();
|
|
|
|
|
|
2014-06-23 20:43:08 +00:00
|
|
|
void setMap(const std::map<int, Transform> & poses, const std::map<int, bool> & mask);
|
|
|
|
|
std::map<int, Transform> getVisiblePoses() const;
|
2014-01-22 19:49:28 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void showEvent(QShowEvent * event);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void signalVisibility();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void updateCheckBoxes();
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void visibilityChanged(int id, bool visible);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::map<int, Transform> _poses;
|
2014-06-23 20:43:08 +00:00
|
|
|
std::map<int, bool> _mask;
|
2014-01-22 19:49:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} /* namespace rtabmap */
|
|
|
|
|
#endif /* MAPVISIBILITYWIDGET_H_ */
|