added Odometry view to MainWindow, increased version to 0.7.3

This commit is contained in:
Mathieu Labbe
2014-12-02 17:01:24 -05:00
parent 72bac39943
commit 9e1d38fe09
7 changed files with 135 additions and 61 deletions

View File

@@ -74,7 +74,8 @@ CloudViewer::CloudViewer(QWidget *parent) :
_menu(0),
_trajectory(new pcl::PointCloud<pcl::PointXYZ>),
_maxTrajectorySize(100),
_workingDirectory(".")
_workingDirectory("."),
_backgroundColor(Qt::black)
{
this->setMinimumSize(200, 200);
@@ -657,8 +658,14 @@ void CloudViewer::render()
this->GetRenderWindow()->Render();
}
const QColor & CloudViewer::getBackgroundColor() const
{
return _backgroundColor;
}
void CloudViewer::setBackgroundColor(const QColor & color)
{
_backgroundColor = color;
_visualizer->setBackgroundColor(color.redF(), color.greenF(), color.blueF());
}