paraview下lib/site-packages/paraview下所有python文件的作用

来源:互联网 发布:fc2手机版无法连接网络 编辑:程序博客网 时间:2024/05/22 03:09

simple.py:simple是一个用来使用paraview服务器管理程序的模块,用python写的。它提供一个简单的便利层,这个便利层是和servermanager模块一起由c++类打包到Python中而实现的。

servermanager.py:servermanager也是一个用来使用paraview服务器管理程序的模块。可以直接使用服务器管理的API。但是,这个模块提供一个接口使其可以简单的使用,这个模块是通过python并且打包了一些VTK的类实现的。

注意,通过加载,这个模块可以创建一些底层的模块:sources,filters,rendering。这些模块能够被用于代理类型的具体事例。相关列表,请查看“dir(servermanager.sources)"通常用户需要使用paraview.simple 模块代替他,因为它提供一个更友好的API。

lookuptable.py:实用工具模块用来简单的lookup tables操作。这个模块由simple.py调用

annotation.py:这个模块由vtkPythonAnnotationFilter调用

benchmark.py:这个模块可以实用为基准。首先,当独立运行的时候,这个模块只是简单的渲染一个基准测试。这个测试渲染一个球包括各种各样的设置并且报告在三角形中的渲染率。run()是这个用法的入口点。

其次,你能够随意建立流水线,并且这个模块会帮助你获得它,解析并且报告由paraview logs记录的信息。

Do that like so:


1. optionally, call maximize logs first
2. setup and run your visualization pipeline (via GUI or script as you prefer)
3. either
      call print_logs() to print out the logs in raw format
      call parse_logs() to let the script identify and report on per frame and per filter execution times

WARNING: This was meant for server side rendering, but it could work reasonably well when geometry is delivered to the client and rendered there  if the script were changed to recognize MPIMoveData as end of frame and did something sensible on the server which has no other end of frame knowledge

    TODO: builtin mode shouldn't show server info, it is redundant
    TODO: this doesn't handle split render/data server mode
    TODO: the end of frame markers are heuristic, likely buggy, and have not been tried since before 3.9's view restructuring

calculator.py:这个模块被vtkPythonCalculator调用,它封装了由vtkPythonCalculator实现的逻辑,在数据级上层面上操作而计算得出的量

collaboration.py:这个模块是一个帮助模块,用来在多个客户端中处理同步,并且提供其他的协同的相关方法

ColorMaps.xml

coprocessing.py:这个模块被设计用来协同处理Python脚本。它提供一个类,流水线,是被设计用来作为Python流水线的基准类。另外,这个模块有一些实用的方法,十分恰当与协同处理

cpexport.py:这个模块被用于报告实现能够被用于vtkCPPythonScriptPipeline协同处理的Python脚本。这个模块使用paraview.cpstate模块去抛弃paraview的session状态作为一个Python类描述信息,能够被用于协处理器。

cpstate.py:这个模块被CoProcessingScriptGenerator插件调用作为协同脚本捕获Paraview状态。这个模块能够捕获


0 0
原创粉丝点击