当前位置: 首页 > news >正文

北京建设建网站移动互联网开发考研方向

北京建设建网站,移动互联网开发考研方向,上海奉贤网站建设 列表网,怎么提高网站速度文章目录 基本控件创建创建文本框创建button创建布局 绘制形状绘制线段绘制点云 设置属性设置线宽设置点大小 可用Shader汇总GUI框架 基本控件创建 创建文本框 push_edit gui.TextEdit()创建button push_button gui.Button(...) push_button.horizontal_padding_em 0.5 p… 文章目录 基本控件创建创建文本框创建button创建布局 绘制形状绘制线段绘制点云 设置属性设置线宽设置点大小 可用Shader汇总GUI框架 基本控件创建 创建文本框 push_edit gui.TextEdit()创建button push_button gui.Button(...) push_button.horizontal_padding_em 0.5 push_button.vertical_padding_em 0 push_button.set_on_clicked(self._on_push_button) # 设置回调函数创建布局 # 文本框和按钮水平布局 push_button_layout gui.Horiz() push_button_layout.add_child(gui.Label(Push Button)) push_button_layout.add_child(self._push_edit) push_button_layout.add_fixed(0.25*em) push_button_layout.add_child(push_button)# 总体垂直布局 self.pannel gui.Vert() self.pannel.add_fixed(0.5*em) self.pannel.add_child(push_button_layout) self.window.add_child(self.pannel)绘制形状 绘制线段 import open3d.visualization.gui as gui points [[0,0,0],[1,0,0],[0,1,0],[1,1,0],[0,0,1],[1,0,1],[0,1,1],[1,1,1]] lines [[0,1],[0,2],[1,3],[2,3],[4,5],[4,6],[5,7],[6,7],[0,4],[1,5],[2,6],[3,7]] object_lines o3d.geometry.LineSet(pointso3d.utility.Vector3dVector(points),lineso3d.utility.Vector2iVector(lines), ) # define material material rendering.MaterialRecord() material.shader defaultLit# insert into scene my_scene gui.SceneWidget() my_scene.scene rendering.Open3DScene(w.renderer) my_scene.scene.add_geometry(lines,object_lines ,material) bounds object_lines.get_axis_aligned_bounding_box() my_scene.setup_camera(60,bounds,bounds.get_center()) my_scene.force_redraw()绘制点云 import numpy as np import open3d as o3d import open3d.visualization.rendering as renderingcloudo3d.io.read_point_cloud(your_path_to_point_cloud) cloud_xyznp.asarray(cloud.points)# define material material rendering.MaterialRecord() material.shader defaultLit# define colors ctmpnp.zeros((len(cloud_xyz),3)) ctmp[:,0]1# rendering object_ptso3d.geometry.PointCloud() object_pts.pointso3d.utility.Vector3dVector(cloud_xyz) object_pts.colorso3d.utility.Vector3dVector(ctmp)设置属性 设置线宽 material_default rendering.MaterialRecord() material_default.shader unlitLine material_default.line_width 3 self._scene.scene.add_geometry(lines, object_lines, material_default)设置点大小 material o3d.visualization.rendering.Material() material.shader defaultLit material.base_color color material.point_size size scene.add_geometry(name, cloud, material)可用Shader汇总 参考网址 类型 适用shader 网格defaultLit/defaultLitTransparency、normals点云defaultLit/defaultLitTransparency、normals、defaultUnlit/defaultUnlitTransparency线段最好unlitLine只有这个可以控制线宽 GUI框架 main_window.py import open3d.visualization.gui as guiclass App:count 0def __init__(self):# 初始化gui.Application.instance.initialize()self.window gui.Application.instance.create_window(Event and Widget, 300, 600)# 使用相对大小避免直接设置像素因为不同显示器像素大小可能不同em self.window.theme.font_size# 文本框和按钮self._push_edit gui.TextEdit()push_button gui.Button(...)push_button.horizontal_padding_em 0.5push_button.vertical_padding_em 0push_button.set_on_clicked(self._on_push_button)# 文本框和按钮水平布局push_button_layout gui.Horiz()push_button_layout.add_child(gui.Label(Push Button))push_button_layout.add_child(self._push_edit)push_button_layout.add_fixed(0.25*em)push_button_layout.add_child(push_button)# 总体垂直布局self.pannel gui.Vert()self.pannel.add_fixed(0.5*em)self.pannel.add_child(push_button_layout)self.window.add_child(self.pannel)def _on_push_button(self):self.count 1# 设置文本框文字self._push_edit.text_value fpush count {self.count}# 弹出消息框self.window.show_message_box(Push Info, Hello World!)def run(self):gui.Application.instance.run()if __name__ __main__:app App()app.run()
http://www.hkea.cn/news/14441231/

相关文章:

  • 快站 淘宝优惠券汉邦未来网站开发
  • 学校网站建设规划网络项目分享平台
  • 深圳专门网站建设网站怎么设置qq
  • 榆林电商网站建设盐山联通大厦 网站建设
  • 网站建设的步骤图建立网站赚多少钱
  • 专业做家居的网站有哪些合肥seo服务商
  • 陕西咸阳做网站的公司营销方案案例
  • 网页设计服装网站建设站长之家备案查询
  • 不用关网站备案温州市网站建设公司
  • 永久免费企业建站官网大全网络广告推广策划
  • 为什么要用模板建站?网络营销渠道的功能包括
  • wordpress 网站为什么打不开长春网站制作费用
  • 网站无法添加图片wordpress文章分页付费
  • wordpress老站开启多站点wix如何做网站
  • 招聘网站开发视频官方网站下载派的app
  • 如何查一个网站的域名广州番禺最新头条消息
  • 网站模板大全wordpress自定义登陆页面
  • 做外单都有什么网站生产erp软件
  • 网站建设知乎网页制作公司接单
  • 网站建设5000费用预算网页制作设计框架
  • 2008 iis 网站温州网红打卡地
  • 惠州网站优化建设苏州公司变更
  • 医疗器械为什么做网站wordpress动画主题
  • 长沙制作网站公司哪家好电商首页模板网站
  • 容易被百度收录的网站怎么做自己的优惠价网站
  • 学做衣服上什么网站好上海短视频制作
  • 卯兔科技网站建设做网站双12促销方案
  • 主动创新网站内容建设连云港网站备案在哪
  • 网站开发咨询好的设计师网站有哪些
  • 开发一个定制的网站wordpress导航字体颜色