plane widget implementation

This commit is contained in:
ozantonkal
2013-07-04 16:15:20 +03:00
parent ba89a6a34a
commit 3d3e3fd470
3 changed files with 52 additions and 1 deletions

View File

@@ -95,7 +95,9 @@ TEST(Viz_viz3d, accuracy)
v.showSphere("sphere1", cv::Point3f(0,0,0), 0.5, temp_viz::Color(0,0,255));
v.showArrow("arrow1", cv::Point3f(0,0,0), cv::Point3f(1,1,1), temp_viz::Color(255,0,0));
temp_viz::LineWidget lw(cv::Point3f(0.0,0.0,0.0), cv::Point3f(1.0,1.0,1.0), temp_viz::Color(0,255,0));
temp_viz::PlaneWidget pw(cv::Vec4f(0.0,1.0,2.0,3.0));
v.showWidget("line", lw);
v.showWidget("plane", pw);
temp_viz::LineWidget lw2 = lw;
@@ -117,6 +119,8 @@ TEST(Viz_viz3d, accuracy)
lw2.setColor(temp_viz::Color(col_blue, col_green, col_red));
lw.setLineWidth(lw.getLineWidth()+pos_x * 10);
pw.setColor(temp_viz::Color(col_blue, col_green, col_red));
angle_x += 0.1f;
angle_y -= 0.1f;
angle_z += 0.1f;