Various QoL (refactored RTABMAP_VERSION_COMPARE) (#1695)

This commit is contained in:
matlabbe
2026-05-04 20:12:31 -07:00
committed by GitHub
parent 37f8fa63c5
commit c1ef13a8d6
6 changed files with 18 additions and 7 deletions
+2 -1
View File
@@ -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;}
+3 -1
View File
@@ -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);
}
}