Module 可视化模块

Module 是展示可视化的对象:利用数据在scene中创建可视化

下面是对Mayayi的可视化模块module的一些简要描述。

Axes 坐标轴模块:

用于绘制简单的坐标轴

ContourGridPlane 截面等高线绘制模块:

用于绘制截面等高线的模块。该模块先对数据截取一个平面,再对截面的数据绘制等高线。 译者注:该方法与等高面的绘制是有区别的。

CustomGridPlane 自定义面模块:

用于绘制自定义网格面的模块,它比GridPlane网格面的灵活性更高。

Glyph 有向图形模块:

该可视化模块可绘制向量,并可以使用 scalar 标量数据,或者vector 矢量数据对其进行着色。 译者注:绘制向量的方法并不只有一种。Glyph和Vector都能对其进行着色,Vector是基于Glyph的。glyph.glyph.color_mode = ‘color_by_scalar’ 或者 glyph.glyph.glyph.color_mode = ‘color_by_vector’。

GridPlane 网格面绘制模块:

绘制一个简单的网格平面

HyperStreamline:

A module that integrates through a tensor field to generate a hyperstreamline. The integration is along the maximum eigenvector and the cross section of the hyperstreamline is defined by the two other eigenvectors. Thus the shape of the hyperstreamline is “tube-like”, with the cross section being elliptical. Hyperstreamlines are used to visualize tensor fields.

ImageActor:

一个简单的模块,用以高效查看图像数据。

ImagePlaneWidget 可视化截面模块:

对数据的截面进行可视化的模块。 译者注:默认是可交互的截面,采用面绘制。

IsoSurface 等高面绘制模块:

一个用于绘制体数据等高面的模块。

Label 标签模块:

对当前的数据集或当前活动的模块进行标记。

OrientationAxes 定位轴模块:

在图像的角落创建一个小的坐标轴用于提示当前图像的位置,它表示scene 可视化图像的坐标轴旋转情况等。使用OrientationAxes可视化模块需要VTK-4.5及以上的版本。

Outline 外框:

为图像绘制外框。

ScalarCutPlane 标量截面可视化模块:

沿着平面方向为数据集绘制一个截面,对面上的数据进行可视化。 译者注:这个模块继承于VTK的ImplicitPlaneWidget,默认是沿着坐标轴方向,也可用GUI对其进行调整。

SliceUnstructuredGrid:

This module takes a slice of the unstructured grid data and shows the cells that intersect or touch the slice.

Streamline 流线绘制模块:

对给定的矢量数据绘制流线的可视化。它支持多种形状的seed对象(线状、范围、面状和点状)。另外它也支持带状和管状的流线可视化。 译者注:seed的形状是可以改变的,默认是Sphere Widget,一个球状空间,对其包裹范围的流线进行可视化。他有很多参数,Point Widget点状、Line Widget线状、Plane Widget面状。通过streamline.seed子对象属性对其索引可以完成修改。

StructuredGridOutline:

Draws a grid-conforming outline for structured grids.

Surface 表面绘制模块:

对数据进行面绘制,等高线绘制可选。 译者注:在GUI中配置,默认情况仅绘制值域边界的面,如果勾选等高线Enable Contours,将会得到多个面的可视化,面的数量和范围都是可以调整的。

TensorGlyph:

Displays tensor glyphs oriented and colored as per scalar or vector data at the input points.

Text 文本信息模块:

Text 文本注释模块可为当前的可视化图像添加一个文本平面。 译者注:默认情况文字所在平面不会随用户交互发生放缩和旋转,大小和位置固定。

VectorCutPlane 矢量截面可视化模块:

沿着平面截取数据面上的数据,并在这个面上的矢量进行可视化。对于矢量图形的着色可以使用矢量也可以使用标量。

Vectors 矢量可视化模块:

该模块可用不同的图形绘制向量,并对每一个数据点进行着色。需要注意的是,它仅仅是一个方便的绘制途径,该模块是建立在Glyph 有向图形可视化模块基础之上的。

Volume 体绘制可视化模块:

Volume 体绘制模块使用体素技术对标量场进行可视化。

WarpVectorCutPlane:

Takes an arbitrary slice of the input data using an implicit cut plane and warps it according to the vector field data. The scalars are displayed on the warped surface as colors.