Skip to content

Commit

Permalink
Fixes #1111
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Oct 19, 2020
1 parent 5e483c2 commit adfa370
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/source/doxygen-docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\page changelog Change Log

# Version 2.1.1: (Under development)
- (No changes yet)
- BUG FIXES:
- Fix wrong coloring of graph edges in mrpt::opengl::graph_visualize() (Closes [#1111](https://github.com/MRPT/mrpt/issues/1111)).

------
# Version 2.1.1: Released Oct 19th, 2020
Expand Down
2 changes: 1 addition & 1 deletion libs/opengl/include/mrpt/opengl/graph_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace graph_tools
* | nodes_point_size | double | If set to !=0, draw a point of the given size (glPointSize) at each node. | 0.0 |
* | nodes_corner_scale | double | If show_node_corners==true, the size (length) of the corner lines. | 0.7 |
* | nodes_edges_corner_scale | double | If show_edge_rel_poses==true, the size of the corners at the end of each drawn edge | 0.4 |
* | nodes_point_color | int | If nodes_point_size>0, set this value to a hexadecimal int value 0xRRGGBB with the desired RGB+Alpha color of points. | 0xA0A0A0FF |
* | nodes_point_color | int | If nodes_point_size>0, set this value to a hexadecimal int value 0xRRGGBBAA with the desired RGB+Alpha color of points. | 0xA0A0A0FF |
* | edge_color | int | If show_edges==true, the color of those edges as a hexadecimal int value 0xRRGGBBAA with RGB+Alpha color. | 0x0000FF40 |
* | edge_rel_poses_color | int | If show_edge_rel_poses==true, the color of those edges as a hexadecimal int value 0xRRGGBBAA with RGB+Alpha color. | 0xFF800040 |
* | edge_width | double | If show_edges==true, the width of edge lines. | 1 |
Expand Down
2 changes: 1 addition & 1 deletion libs/opengl/include/mrpt/opengl/graph_tools_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ CSetOfObjects::Ptr graph_visualize(
{
CSetOfLines::Ptr gl_edges = std::make_shared<CSetOfLines>();
const mrpt::img::TColor col8bit(
edge_color & 0xffffff, edge_color >> 24);
edge_color >> 8, edge_color & 0x000000ff);

gl_edges->setColor_u8(col8bit);
gl_edges->setLineWidth(edge_width);
Expand Down

0 comments on commit adfa370

Please sign in to comment.