getShapePose/setShapePose simplification
little code beautification, formatting
This commit is contained in:
@@ -9,16 +9,15 @@ temp_viz::Viz3d::Viz3d(const String& window_name) : impl_(new VizImpl(window_nam
|
||||
|
||||
temp_viz::Viz3d::~Viz3d()
|
||||
{
|
||||
|
||||
delete impl_;
|
||||
}
|
||||
|
||||
|
||||
void temp_viz::Viz3d::setBackgroundColor(const Color& color)
|
||||
{
|
||||
impl_->setBackgroundColor(color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::addCoordinateSystem(double scale, const Affine3f& t, const String &id)
|
||||
void temp_viz::Viz3d::addCoordinateSystem(double scale, const Affine3f& t, const String& id)
|
||||
{
|
||||
impl_->addCoordinateSystem(scale, t, id);
|
||||
}
|
||||
@@ -38,22 +37,22 @@ bool temp_viz::Viz3d::addPointCloudNormals (const Mat &cloud, const Mat& normals
|
||||
return impl_->addPointCloudNormals(cloud, normals, level, scale, id);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::addPolygonMesh (const Mesh3d& mesh, const String &id)
|
||||
bool temp_viz::Viz3d::addPolygonMesh (const Mesh3d& mesh, const String& id)
|
||||
{
|
||||
return impl_->addPolygonMesh(mesh, Mat(), id);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::updatePolygonMesh (const Mesh3d& mesh, const String &id)
|
||||
bool temp_viz::Viz3d::updatePolygonMesh (const Mesh3d& mesh, const String& id)
|
||||
{
|
||||
return impl_->updatePolygonMesh(mesh, Mat(), id);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::addPolylineFromPolygonMesh (const Mesh3d& mesh, const String &id)
|
||||
bool temp_viz::Viz3d::addPolylineFromPolygonMesh (const Mesh3d& mesh, const String& id)
|
||||
{
|
||||
return impl_->addPolylineFromPolygonMesh(mesh, id);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::addText (const String &text, int xpos, int ypos, const Color& color, int fontsize, const String &id)
|
||||
bool temp_viz::Viz3d::addText (const String &text, int xpos, int ypos, const Color& color, int fontsize, const String& id)
|
||||
{
|
||||
return impl_->addText(text, xpos, ypos, color, fontsize, id);
|
||||
}
|
||||
@@ -73,57 +72,57 @@ void temp_viz::Viz3d::spinOnce (int time, bool force_redraw)
|
||||
impl_->spinOnce(time, force_redraw);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showLine(const String &id, const Point3f &pt1, const Point3f &pt2, const Color &color)
|
||||
void temp_viz::Viz3d::showLine(const String& id, const Point3f& pt1, const Point3f& pt2, const Color& color)
|
||||
{
|
||||
impl_->showLine(id, pt1, pt2, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showPlane(const String &id, const Vec4f &coefs, const Color &color)
|
||||
void temp_viz::Viz3d::showPlane(const String& id, const Vec4f &coefs, const Color& color)
|
||||
{
|
||||
impl_->showPlane(id, coefs, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showPlane(const String &id, const Vec4f &coefs, const Point3f &pt, const Color &color)
|
||||
void temp_viz::Viz3d::showPlane(const String& id, const Vec4f &coefs, const Point3f& pt, const Color& color)
|
||||
{
|
||||
impl_->showPlane(id, coefs, pt, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showCube(const String &id, const Point3f &pt1, const Point3f &pt2, const Color &color)
|
||||
void temp_viz::Viz3d::showCube(const String& id, const Point3f& pt1, const Point3f& pt2, const Color& color)
|
||||
{
|
||||
impl_->showCube(id, pt1, pt2, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showCylinder(const String &id, const Point3f &pt_on_axis, const Point3f &axis_direction, double radius, int num_sides, const Color &color)
|
||||
void temp_viz::Viz3d::showCylinder(const String& id, const Point3f& pt_on_axis, const Point3f &axis_direction, double radius, int num_sides, const Color& color)
|
||||
{
|
||||
impl_->showCylinder(id, pt_on_axis, axis_direction, radius, num_sides, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showCircle(const String &id, const Point3f &pt, double radius, const Color &color)
|
||||
void temp_viz::Viz3d::showCircle(const String& id, const Point3f& pt, double radius, const Color& color)
|
||||
{
|
||||
impl_->showCircle(id, pt, radius, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showSphere (const String &id, const Point3f &pt, double radius, const Color &color)
|
||||
void temp_viz::Viz3d::showSphere (const String& id, const Point3f& pt, double radius, const Color& color)
|
||||
{
|
||||
impl_->showSphere(id, pt, radius, color);
|
||||
}
|
||||
|
||||
void temp_viz::Viz3d::showArrow (const String &id, const Point3f &pt1, const Point3f &pt2, const Color &color)
|
||||
void temp_viz::Viz3d::showArrow (const String& id, const Point3f& pt1, const Point3f& pt2, const Color& color)
|
||||
{
|
||||
impl_->showArrow(id,pt1,pt2,color);
|
||||
}
|
||||
|
||||
cv::Affine3f temp_viz::Viz3d::getShapePose(const String &id)
|
||||
cv::Affine3f temp_viz::Viz3d::getShapePose(const String& id)
|
||||
{
|
||||
return impl_->getShapePose(id);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::setShapePose(const String &id, const Affine3f &pose)
|
||||
void temp_viz::Viz3d::setShapePose(const String& id, const Affine3f &pose)
|
||||
{
|
||||
return impl_->setShapePose(id, pose);
|
||||
impl_->setShapePose(id, pose);
|
||||
}
|
||||
|
||||
bool temp_viz::Viz3d::removeCoordinateSystem (const String &id)
|
||||
bool temp_viz::Viz3d::removeCoordinateSystem (const String& id)
|
||||
{
|
||||
return impl_->removeCoordinateSystem(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user