OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::viz::WPlane 类参考

此 3D Widget(控件)定义了一个有限平面。 更多...

#include <opencv2/viz/widgets.hpp>

cv::viz::WPlane 的协作图

公共成员函数

 WPlane (const Point3d &center, const Vec3d &normal, const Vec3d &new_yaxis, const Size2d &size=Size2d(1.0, 1.0), const Color &color=Color::white())
 构造一个重新定位的平面。
 
 WPlane (const Size2d &size=Size2d(1.0, 1.0), const Color &color=Color::white())
 构造一个默认平面,其中心点位于原点,法线沿 z 轴方向。
 
- 继承自 cv::viz::Widget3D 的公共成员函数
 Widget3D ()
 
void applyTransform (const Affine3d &transform)
 使用给定的变换来变换内部控件数据(即点、法线)。
 
Affine3d getPose () const
 返回部件的当前姿势。
 
void setColor (const Color &color)
 设置部件的颜色。
 
void setPose (const Affine3d &pose)
 设置部件的姿势。
 
void updatePose (const Affine3d &pose)
 通过预乘其当前姿势来更新部件的姿势。
 
- 继承自 cv::viz::Widget 的公共成员函数
 部件 ()
 
 Widget (const Widget &other)
 
virtual ~Widget ()
 
template<typename _W >
_W cast () const
 将部件强制转换为另一个部件。
 
template<>
Widget2D cast () const
 实用程序导出。
 
template<>
Widget3D cast () const
 
template<>
WLine cast () const
 
template<>
WPlane cast () const
 
template<>
WSphere cast () const
 
template<>
WCylinder cast () const
 
template<>
WArrow cast () const
 
template<>
WCircle cast () const
 
template<>
WCone cast () const
 
template<>
WCube cast () const
 
template<>
WCoordinateSystem cast () const
 
template<>
WPolyLine cast () const
 
template<>
WGrid cast () const
 
template<>
WText3D cast () const
 
template<>
WText cast () const
 
template<>
WImageOverlay cast () const
 
template<>
WImage3D cast () const
 
template<>
WCameraPosition cast () const
 
template<>
WTrajectory cast () const
 
template<>
WTrajectoryFrustums cast () const
 
template<>
WTrajectorySpheres cast () const
 
template<>
WCloud cast () const
 
template<>
WPaintedCloud cast () const
 
template<>
WCloudCollection cast () const
 
template<>
WCloudNormals cast () const
 
template<>
WMesh cast () const
 
template<>
WWidgetMerger cast () const
 
double getRenderingProperty (int property) const
 返回部件的渲染属性。
 
Widgetoperator= (const Widget &other)
 
void setRenderingProperty (int property, double value)
 设置部件的渲染属性。
 

附加的继承成员

- 继承自 cv::viz::Widget 的静态公共成员函数
static Widget fromPlyFile (const String &file_name)
 从 ply 文件创建部件。
 

详细描述

此 3D Widget(控件)定义了一个有限平面。

构造函数 & 析构函数文档

◆ WPlane() [1/2]

cv::viz::WPlane::WPlane ( const Size2d & size = Size2d(1.0, 1.0),
const Color & color = Color::white() )

构造一个默认平面,其中心点位于原点,法线沿 z 轴方向。

参数
size平面大小
colorColor(颜色) of the plane(平面)。

◆ WPlane() [2/2]

cv::viz::WPlane::WPlane ( const Point3d & center,
const Vec3d & 法线,
const Vec3d & new_yaxis,
const Size2d & size = Size2d(1.0, 1.0),
const Color & color = Color::white() )

构造一个重新定位的平面。

参数
center平面的中心
法线平面法线方向
new_yaxis向上向量。平面 y 轴的新方向。
size
colorColor(颜色) of the plane(平面)。

此类文档是从以下文件生成的