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

网站外链建设周期百度关键词seo

网站外链建设周期,百度关键词seo,做盗版网站引流,电子商务网站设计的原则开发环境#xff1a; Windows 11 家庭中文版Microsoft Visual Studio Community 2019VTK-9.3.0.rc0vtk-example参考代码目的#xff1a;学习与总结 demo解决问题#xff1a;通过自定义vtkInteractorStyle类中成员函数OnLeftButtonDown#xff0c;判断鼠标当前选中的是哪个… 开发环境 Windows 11 家庭中文版Microsoft Visual Studio Community 2019VTK-9.3.0.rc0vtk-example参考代码目的学习与总结 demo解决问题通过自定义vtkInteractorStyle类中成员函数OnLeftButtonDown判断鼠标当前选中的是哪个actor同理可自定义鼠标右键、滚轮、键盘等事件 关键类vtkInteractorStyleTrackballActor允许用户与场景中彼此独立的对象进行交互旋转、平移等根据实际应用场景有如下常见替换对象 vtkInteractorStyleTrackballActor作用对象actor; 形式TrackballvtkInteractorStyleTrackballCamera作用对象Camera; 形式TrackballvtkInteractorStyleJoystickActor作用对象actor; 形式JoystickvtkInteractorStyleJoystickCamera作用对象Camera; 形式JoystickvtkInteractorStyleImage作用对象vtkImageActor; 形式绑定使相机的视图平面垂直于x-y平面…… 参考vtkInteractorStyle详细介绍 #include vtkActor.h #include vtkCamera.h #include vtkCubeSource.h #include vtkInteractorStyleTrackballActor.h #include vtkNamedColors.h #include vtkNew.h #include vtkPolyDataMapper.h #include vtkProperty.h #include vtkRenderWindow.h #include vtkRenderWindowInteractor.h #include vtkRenderer.h #include vtkSphereSource.hnamespace {// Handle mouse events. class MouseInteractorStyle5 : public vtkInteractorStyleTrackballActor { public:static MouseInteractorStyle5* New();vtkTypeMacro(MouseInteractorStyle5, vtkInteractorStyleTrackballActor);virtual void OnLeftButtonDown() override{// Forward events.vtkInteractorStyleTrackballActor::OnLeftButtonDown();if (this-InteractionProp this-Cube){std::cout Picked cube. std::endl;}else if (this-InteractionProp this-Sphere){std::cout Picked sphere. std::endl;}}vtkActor* Cube;vtkActor* Sphere; };vtkStandardNewMacro(MouseInteractorStyle5);} // namespaceint main(int, char*[]) {vtkNewvtkNamedColors colors;// Create a cube.vtkNewvtkCubeSource cubeSource;cubeSource-Update();vtkNewvtkPolyDataMapper cubeMapper;cubeMapper-SetInputConnection(cubeSource-GetOutputPort());vtkNewvtkActor cubeActor;cubeActor-SetMapper(cubeMapper);cubeActor-GetProperty()-SetColor(colors-GetColor3d(MistyRose).GetData());// Create a sphere.vtkNewvtkSphereSource sphereSource;sphereSource-SetCenter(2, 0, 0);sphereSource-Update();// Create a mapper.vtkNewvtkPolyDataMapper sphereMapper;sphereMapper-SetInputConnection(sphereSource-GetOutputPort());// Create an actor.vtkNewvtkActor sphereActor;sphereActor-SetMapper(sphereMapper);sphereActor-GetProperty()-SetColor(colors-GetColor3d(LightGoldenrodYellow).GetData());// A renderer and render window.vtkNewvtkRenderer renderer;vtkNewvtkRenderWindow renderWindow;renderWindow-AddRenderer(renderer);renderWindow-SetWindowName(SelectAnActor);// An interactor.vtkNewvtkRenderWindowInteractor renderWindowInteractor;renderWindowInteractor-SetRenderWindow(renderWindow);// Set the custom stype to use for interaction.vtkNewMouseInteractorStyle5 style;style-SetDefaultRenderer(renderer);style-Cube cubeActor;style-Sphere sphereActor;renderWindowInteractor-SetInteractorStyle(style);renderer-AddActor(cubeActor);renderer-AddActor(sphereActor);renderer-SetBackground(colors-GetColor3d(SlateGray).GetData());renderer-ResetCamera();renderer-GetActiveCamera()-Zoom(0.9);// Render and interact.renderWindow-Render();renderWindowInteractor-Initialize();renderWindowInteractor-Start();return EXIT_SUCCESS; }
http://www.zqtcl.cn/news/696081/

相关文章:

  • wordpress theme forest济南优化网站排名
  • 简述网站的制作步骤合肥网站建设需
  • 网站备案的程序哪里能买精准客户电话
  • 白云网站建设网站版式
  • 做美食有哪些网站科技公司介绍
  • 网站后台被百度蜘蛛抓取哪个做网站比较好
  • 企业建设网站的需求分析百度免费发布信息平台
  • 网站建设交易中心上海装修公司排行榜
  • 桂林论坛网站有哪些在线设计平台用户分析
  • wap网站的开发去加网 wordpress
  • 博客网站建设设计论文总结php mysql做网站登录
  • 海南智能网站建设公司wordpress 如何使用php版本号
  • 河南网站开发培训app 软件开发
  • 购物网站功能介绍一流的高密网站建设
  • 电影网站怎么做优化wordpress 去掉w
  • 永久网站空间标书制作员工资很低吗
  • 做网站用到ps么淘宝优惠网站怎么做
  • jsp 淘宝网站验证码 设计搜索引擎排名
  • pdf怎么做电子书下载网站北京成立公司
  • 网站后台附件无法上传阿克苏建设网站
  • 网站和网址有什么不同佛山狮山网站建设
  • 有免费的微网站是什么可以做长图的网站
  • 南昌手机建站模板18种禁用软件黄app
  • 备案的域名做电影网站wordpress伪静态cdn配置
  • 国家城乡住房建设部网站百度关键词首页排名
  • 安卓软件开发需要学什么软件北京百度推广优化公司
  • 用asp.net 做网站wordpress网址缩短
  • 中国工程建设交易信息网站仿蘑菇街wordpress主题
  • 网站需要怎么做做普通网站公司吗
  • 网站收录平台方法网站建设是不是都需要交费