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

h5 服装网站模板windows优化大师有用吗

h5 服装网站模板,windows优化大师有用吗,网站设计的宽度,学做糕点的网站1、前言 主要是针对前面有过实现不了交互的情况进行说明#xff0c;经过一些尝试和分析调用API#xff0c;总算实现RenderWindowControl函数回调正常串接#xff0c;当然这个移动处理事件的效果目前也没有确认。 2、使用 vtkImageReslice reslice vtkImageReslice.New();p…1、前言 主要是针对前面有过实现不了交互的情况进行说明经过一些尝试和分析调用API总算实现RenderWindowControl函数回调正常串接当然这个移动处理事件的效果目前也没有确认。 2、使用 vtkImageReslice reslice vtkImageReslice.New();private void TestInteractorStyle(){vtkMetaImageReader reader vtkMetaImageReader.New();reader.SetFileName(F:\\code\\VTK\\TestActiViz\\bin\\Debug\\data\\brain.mhd);reader.Update();int[] extent reader.GetOutput().GetExtent();double[] spacing reader.GetOutput().GetSpacing();double[] origin reader.GetOutput().GetOrigin();double[] center new double[3];center[0] origin[0] spacing[0] * 0.5 * (extent[0] extent[1]);center[1] origin[1] spacing[1] * 0.5 * (extent[2] extent[3]);center[2] origin[2] spacing[2] * 0.5 * (extent[4] extent[5]);double[] axialElements {1, 0, 0, 0,0, 1, 0, 0,0, 0, 1, 0,0, 0, 0, 1};//提取平行于YZ平面的切片IntPtr ptrData Marshal.AllocHGlobal(sizeof(double) * axialElements.Length);Marshal.Copy(axialElements, 0, ptrData, axialElements.Length);vtkMatrix4x4 resliceAxes vtkMatrix4x4.New();resliceAxes.DeepCopy(ptrData);resliceAxes.SetElement(0, 3, center[0]);resliceAxes.SetElement(1, 3, center[1]);resliceAxes.SetElement(2, 3, center[2]);reslice.SetInputData(reader.GetOutput());reslice.SetOutputDimensionality(2);reslice.SetResliceAxes(resliceAxes);reslice.SetInterpolationModeToLinear(); //指定切面提取中的插值方式为线性插值reslice.Update();vtkLookupTable colorTable vtkLookupTable.New();colorTable.SetRange(0, 1000);colorTable.SetValueRange(0, 1);colorTable.SetSaturationRange(0, 0);colorTable.SetRampToLinear();colorTable.Build();vtkImageMapToColors colorMap vtkImageMapToColors.New();colorMap.SetLookupTable(colorTable);colorMap.SetInputConnection(reslice.GetOutputPort());colorMap.Update();vtkImageActor orgActor vtkImageActor.New();orgActor.SetInputData(colorMap.GetOutput());vtkRenderer renderer3 vtkRenderer.New();renderer3.AddActor(orgActor);renderer3.ResetCamera();renderer3.SetBackground(0.4, 0.5, 0.6);vtkRenderWindow renderWindow renderWindowControl.RenderWindow;//vtkImageViewer2 imageViewer vtkImageViewer2.New();//imageViewer.SetSize(500, 500);//vtkRenderWindow renderWindow imageViewer.GetRenderWindow();renderWindow.AddRenderer(renderer3);vtkRenderWindowInteractor windowInteractor renderWindow.GetInteractor();windowInteractor.MouseMoveEvt ImageStyle_MouseMoveEvt;windowInteractor.LeftButtonPressEvt ImageStyle_LeftButtonPressEvt;windowInteractor.LeftButtonReleaseEvt ImageStyle_LeftButtonReleaseEvt;renderWindow.Render();} 实现事件回调的对象是通过控件对象获取 这个事件回调处理逻辑就不在复核。你可以自由发挥。 在事件回调的sender是vtkRenderWindowInteractor你可以按你的设计去获取或设置一些参数来实现你的想法了。 3、总结 我尝试过重写这个鼠标事件可是一个也不触发 想了想还是内部没有下发的问题。 再看这个vteRenderWindow可以获取到交互对象就把这个交互对象拿出来进行注册事件就可以了。 猜想可能是这个事件传递到他这里就不下发了当然啊也可能是一些设置没有开启。毕竟他这个上面有这么些方法不过后面还有机会打交道的。 类注释          platform-independent render window interaction including picking and frame rate  control. vtkRenderWindowInteractor provides a platform-independent interaction  mechanism for mouse/key/time events. It serves as a base class for platform-dependent    implementations that handle routing of mouse/key/timer messages to vtkInteractorObserver  and its subclasses. vtkRenderWindowInteractor also provides controls for picking,    rendering frame rate, and headlights. vtkRenderWindowInteractor has changed from   previous implementations and now serves only as a shell to hold user preferences   and route messages to vtkInteractorStyle. Callbacks are available for many events.    Platform specific subclasses should provide methods for manipulating timers,   TerminateApp, and an event loop if required via Initialize/Start/Enable/Disable. 独立于平台的渲染窗互包括拾取和帧速率控制。 vtkRenderWindowInteractor 为鼠标/键/时间事件提供了一种独立于平台的交互机制。它用作平台相关实现的基类这些实现处理将鼠标/键/计时器消息路由到 vtkInteractorObserver 及其子类。 vtkRenderWindowInteractor 还提供了用于拾取、渲染帧速率和前照灯的控件。        vtkRenderWindowInteractor 与以前的实现不同现在仅用作 shell用于保存用户首选项并将消息路由到 vtkInteractorStyle。回调可用于许多事件。   特定于平台的子类应提供用于操作计时器、TerminateApp 和事件循环的方法如果需要通过 Initialize/Start/Enable/Disable。
http://www.dnsts.com.cn/news/118251.html

相关文章:

  • 个人可以备案什么网站超级外链工具 增加外链中
  • 上海自主建站模板个人博客网页
  • wordpress汽配网站深圳建网站服务商
  • 城乡建设网站证件查询热点新闻事件
  • 做京东网站的摘要高平做网站
  • 四川兴昌建设有限公司网站景区网站建设策划书
  • 企业网站模板下载需谨慎备案的域名拿来做别的网站
  • 网站建设佛网站开发与管理专业的就业信息
  • 做网站head.htmseo查询seo
  • 张家港网站建设培训班帮助设计的网站
  • 商业网站的建设流程铁岭新区旅行社电话
  • 收录查询 站长工具wordpress 调用评论框
  • 网站优化建议个人网页设计思路怎么写
  • 一个网站的制作步骤违法网站开发者
  • 浙江省火电建设公司网站广州外贸型网站
  • 湖北建设工程注册中心网站白百度一下你就知道
  • 国内室内设计网站推荐wordpress集团网站
  • 苏州教育网站建设有哪些网站做的好处
  • 网站设计流程步骤网站构建的友情链接怎么做
  • 镇江市建设局网站云购网站建设
  • 德阳网站seo做视频网站要什么软件
  • 网站建设接单吧谷歌google中文登录入口
  • 上海知名网站设计色盲和色弱的区别
  • 如何修改上线网站眉山建设局网站
  • wordpress相册模式选择洛阳网站建设优化
  • 北京购物网站建设网站建设活动策划
  • 网站建设教育类旧式网站网站建设市场前景如何
  • 建设银行网站改手机号怎么用云虚拟主机建设网站
  • 西安网站托管商家电子商务专业可以从事什么工作
  • 南通网站建设案例凡科快图下载