class cv::viz::WArrow
Overview
This 3D Widget defines an arrow. Moreā¦
#include <widgets.hpp> class WArrow: public cv::viz::Widget3D { public: // construction WArrow( const Point3d& pt1, const Point3d& pt2, double thickness = 0.03, const Color& color = Color::white() ); };
Inherited Members
public: // methods template <typename _W> _W cast(); Widget2D cast(); WWidgetMerger cast(); double getRenderingProperty(int property) const; Widget& operator=(const Widget& other); void setRenderingProperty( int property, double value ); static Widget fromPlyFile(const String& file_name); void applyTransform(const Affine3d& transform); Affine3d getPose() const; void setColor(const Color& color); void setPose(const Affine3d& pose); void updatePose(const Affine3d& pose);
Detailed Documentation
This 3D Widget defines an arrow.
Construction
WArrow( const Point3d& pt1, const Point3d& pt2, double thickness = 0.03, const Color& color = Color::white() )
Constructs an WArrow.
Arrow head is located at the end point of the arrow.
Parameters:
pt1 | Start point of the arrow. |
pt2 | End point of the arrow. |
thickness | Thickness of the arrow. Thickness of arrow head is also adjusted accordingly. |
color | Color of the arrow. |