class cv::viz::WPlane
Overview
This 3D Widget defines a finite plane. Moreā¦
#include <widgets.hpp> class WPlane: public cv::viz::Widget3D { public: // construction WPlane( const Size2d& size = Size2d(1.0, 1.0), const Color& color = Color::white() ); WPlane( const Point3d& center, const Vec3d& normal, const Vec3d& new_yaxis, const Size2d& size = Size2d(1.0, 1.0), 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 a finite plane.
Construction
WPlane( const Size2d& size = Size2d(1.0, 1.0), const Color& color = Color::white() )
Constructs a default plane with center point at origin and normal oriented along z-axis.
Parameters:
size | Size of the plane |
color | Color of the plane. |
WPlane( const Point3d& center, const Vec3d& normal, const Vec3d& new_yaxis, const Size2d& size = Size2d(1.0, 1.0), const Color& color = Color::white() )
Constructs a repositioned plane.
Parameters:
center | Center of the plane |
normal | Plane normal orientation |
new_yaxis | Up-vector. New orientation of plane y-axis. |
size | |
color | Color of the plane. |