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

jquery做的网站wordpress动态图片不显示

jquery做的网站,wordpress动态图片不显示,泰安公司,商城网站wordpress开发环境#xff1a; Windows 11 家庭中文版Microsoft Visual Studio Community 2019VTK-9.3.0.rc0vtk-example参考代码 demo解决问题#xff1a;框选或者点选某一区域#xff0c;并获取区域prop3D对象#xff08;红线内为有效区域#xff0c;polydata组成的3d几何对象 Windows 11 家庭中文版Microsoft Visual Studio Community 2019VTK-9.3.0.rc0vtk-example参考代码 demo解决问题框选或者点选某一区域并获取区域prop3D对象红线内为有效区域polydata组成的3d几何对象 1. vtkInteractorStyleRubberBandPick /*与TrackBallCamera类似但是它可以选择橡皮筋选择矩形下面的道具。该交互器样式允许用户通过按下r并使用左鼠标按钮在渲染窗口中绘制矩形。当释放鼠标按钮时附加的拾取器将在选择矩形中心的像素上操作。如果拾取器恰好是vtkAreaPicker则它将在整个选择矩形上操作。当按下p键时上述拾取操作在1x1矩形上发生。在其他方面它的行为与其父类相同。另请参见vtkAreaPicker*/// r使能或禁用区域框选框选区域中pick有效区域// For vtkInteractorStyleRubberBandPick - use r and left-mouse to draw a// selection box used to pick.// // p按下时pick当前鼠标位置所在的区域// For vtkInteractorStyleTrackballCamera - use p to pick at the current// mouse position.vtkNewvtkInteractorStyleRubberBandPick style;2. vtkAreaPicker vtkNewvtkAreaPicker areaPicker;vtkNewvtkCallbackCommand pickCallback;pickCallback-SetCallback(PickCallbackFunction);areaPicker-AddObserver(vtkCommand::EndPickEvent, pickCallback);prj name: AreaPicking #include vtkActor.h #include vtkAreaPicker.h #include vtkCallbackCommand.h #include vtkCellArray.h #include vtkInteractorStyleRubberBandPick.h #include vtkInteractorStyleTrackball.h // #include vtkInteractorStyleTrackballCamera.h #include vtkNamedColors.h #include vtkNew.h #include vtkPoints.h #include vtkPolyData.h #include vtkPolyDataMapper.h #include vtkProp3DCollection.h #include vtkProperty.h #include vtkRenderWindow.h #include vtkRenderWindowInteractor.h #include vtkRenderer.hnamespace { void PickCallbackFunction(vtkObject* caller, long unsigned int eventId,void* clientData, void* callData); }int main(int, char*[]) {// Create a set of points.vtkNewvtkPoints points;vtkNewvtkCellArray vertices;vtkIdType pid[1];pid[0] points-InsertNextPoint(1.0, 0.0, 0.0);vertices-InsertNextCell(1, pid);pid[0] points-InsertNextPoint(0.0, 0.0, 0.0);vertices-InsertNextCell(1, pid);pid[0] points-InsertNextPoint(0.0, 1.0, 0.0);vertices-InsertNextCell(1, pid);// Create a polydatavtkNewvtkPolyData polydata;polydata-SetPoints(points);polydata-SetVerts(vertices);// VisualizevtkNewvtkPolyDataMapper mapper;mapper-SetInputData(polydata);vtkNewvtkNamedColors colors;vtkNewvtkActor actor;actor-SetMapper(mapper);actor-GetProperty()-SetPointSize(8); //设置顶点的显示大小actor-GetProperty()-SetColor(colors-GetColor3d(Gold).GetData()); //设置顶点的显示颜色vtkNewvtkRenderer renderer;vtkNewvtkRenderWindow renderWindow;renderWindow-AddRenderer(renderer);renderWindow-SetWindowName(AreaPicking);vtkNewvtkAreaPicker areaPicker;vtkNewvtkRenderWindowInteractor renderWindowInteractor;renderWindowInteractor-SetRenderWindow(renderWindow);renderWindowInteractor-SetPicker(areaPicker);renderer-AddActor(actor);renderer-SetBackground(colors-GetColor3d(DarkSlateGray).GetData());renderWindow-Render();// r使能或禁用区域框选框选区域中pick有效区域// For vtkInteractorStyleRubberBandPick - use r and left-mouse to draw a// selection box used to pick.vtkNewvtkInteractorStyleRubberBandPick style;// p按下时pick当前鼠标位置所在的区域// For vtkInteractorStyleTrackballCamera - use p to pick at the current// mouse position.// vtkNewvtkInteractorStyleTrackballCamera style;// paraviewstyle-SetCurrentRenderer(renderer);renderWindowInteractor-SetInteractorStyle(style);vtkNewvtkCallbackCommand pickCallback;pickCallback-SetCallback(PickCallbackFunction);areaPicker-AddObserver(vtkCommand::EndPickEvent, pickCallback);renderWindowInteractor-Start();return EXIT_SUCCESS; }namespace { void PickCallbackFunction(vtkObject* caller,long unsigned int vtkNotUsed(eventId),void* vtkNotUsed(clientData),void* vtkNotUsed(callData)) {std::cout Pick. std::endl;vtkAreaPicker* areaPicker static_castvtkAreaPicker*(caller);vtkProp3DCollection* props areaPicker-GetProp3Ds();props-InitTraversal();//遍历当权pick到那些区域Prop3Dsfor (vtkIdType i 0; i props-GetNumberOfItems(); i){vtkProp3D* prop props-GetNextProp3D();std::cout Picked prop: prop std::endl;} } } // namespace
http://www.zqtcl.cn/news/393688/

相关文章:

  • 做关于植物的网站即墨网站设计
  • 怎么提升网站收录商品网页制作
  • 做网站建设的平台wordpress5.0发布
  • 站长工具a级查网站域名
  • 免费做网站电话手机开发者模式打开有什么影响
  • 上海免费网站建站模板毕节做网站优化
  • 影响网站建设的关键点手机网站制作app
  • 商务网站建设的流程深圳模板网站建设案例
  • 做中英文网站多少钱方维制网站
  • 做一个信息发布网站要多少钱开发小程序多少钱一个
  • 山东网站设计网站关键词设置技巧
  • 做网站服务怎么赚钱产品展示型的网站功能有哪些
  • 丹东网站制作宁波网站建设公司制作网站
  • 南宁建设工程质量网站九江网站建设九江
  • 永州市住房和城乡建设厅网站服务器可以做几个网站
  • 哪里学网站建设与管理做移动端电影网站
  • 境外企业网站推广大冶市建设局网站
  • 户网站建设的不全.阿里巴巴国际站
  • 定制手机壳的网站能在家做的兼职的网站
  • 温州营销型网站建设郴州网络推广公司
  • asp.net 做网站源代码网站怎么做配置文件夹
  • 网站建设云尚网络wordpress首页flash
  • 北京优化网站宁波网络营销策划公司
  • 网站建设项目前分析电商运营一般要学多久
  • 哪个网站可以做卖房网站菜单模板
  • 网站推广渠道特点郑州百度推广外包
  • 合肥高端网站建设设计公司wordpress 多语言主题
  • 北京工程工程建设交易信息网站wordpress 角色 功能
  • 做购物网站有什么要求吗wordpress查看访问量
  • 多城市网站设计阿里云网站访问不了怎么办