mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
Various QoL (refactored RTABMAP_VERSION_COMPARE) (#1695)
This commit is contained in:
@@ -231,7 +231,8 @@ public:
|
||||
const Transform & to,
|
||||
const QColor & color,
|
||||
bool arrow = false,
|
||||
bool foreground = false);
|
||||
bool foreground = false,
|
||||
double width = 1.0);
|
||||
void removeLine(const std::string & id);
|
||||
void removeAllLines();
|
||||
const std::set<std::string> & getAddedLines() const {return _lines;}
|
||||
|
||||
@@ -1732,7 +1732,8 @@ void CloudViewer::addOrUpdateLine(
|
||||
const Transform & to,
|
||||
const QColor & color,
|
||||
bool arrow,
|
||||
bool foreground)
|
||||
bool foreground,
|
||||
double width)
|
||||
{
|
||||
if(id.empty())
|
||||
{
|
||||
@@ -1764,6 +1765,7 @@ void CloudViewer::addOrUpdateLine(
|
||||
_visualizer->addLine(pt2, pt1, c.redF(), c.greenF(), c.blueF(), id, foreground?3:2);
|
||||
}
|
||||
_visualizer->setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_OPACITY, c.alphaF(), id);
|
||||
_visualizer->setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_LINE_WIDTH, width, id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user