paraview视图vtkView

目录

视图窗口

vtkView

vtkPVView

vtkPVRenderView

vtkPVContextView 

vtkSpreadSheetView 

vtkRenderViewBase类


视图窗口

paraview软件界面展示:

 图 paraview软件界面上的renderview

上图中的红线框内是renderView窗口

paraview支持的视图:

 

vtkView

/**
 * @class   vtkView
 * @brief   The superclass for all views.
 *
 *
 * vtkView is the superclass for views.  A view is generally an area of an
 * application's canvas devoted to displaying one or more VTK data objects.
 * Associated representations (subclasses of vtkDataRepresentation) are
 * responsible for converting the data into a displayable format.  These
 * representations are then added to the view.
 *
 * For views which display only one data object at a time you may set a
 * data object or pipeline connection directly on the view itself (e.g.
 * vtkGraphLayoutView, vtkLandscapeView, vtkTreeMapView).
 * The view will internally create a vtkDataRepresentation for the data.
 *
 * A view has the concept of linked selection.  If the same data is displayed
 * in multiple views, their selections may be linked by setting the same
 * vtkAnnotationLink on their representations (see vtkDataRepresentation).
 */

vtkView是说有视图的超类。

视图通常是应用程序画布的一个 区域,用于显示一个或多个VTK data对象。

关联表达主要负责将数据转换成可显示格式,关联表达通常是vtkDataRepresentation的子类。然后,这些表达将添加的视图中。

对于一次只显示一个数据对象的视图,可以让数据对象data object或管道pipline直接与视图相连接,比如vtkGraphLayoutView,vtkLandscapeView,vtkTreeMapView。

视图具有链接选择linked selection的概念。如果相同的数据在多个视图中,那么这些视图的链接选择可以在这些视图的关联表达(详见vtkDataRepresentation)设置相同的vtkAnnotationLink来链接。

vtkView类所在包:ParaView\\VTK\\Views\\Core

图 vtkView类的子类

类名

vtkPVViewe

vtkRenderViewBase

所在包

ParaView\\Remoting\\Views

ParaView\\VTK\\Views\\Core

与vtkView在同一个包中

 

 

vtkPVView

图 vtkPVView的子类

/**
 * @class   vtkPVView
 * @brief   baseclass for all ParaView views.
 *
 * vtkPVView adds API to vtkView for ParaView specific views. Typically, one
 * writes a simple vtkView subclass for their custom view. Then one subclasses
 * vtkPVView to use their own vtkView subclass with added support for
 * parallel rendering, tile-displays and client-server. Even if the view is
 * client-only view, it needs to address these other configuration gracefully.
*/

vtkPVView是所有ParaView视图的基类

vtkPVView为特定的ParaView视图在vtkView上天界API。

通常一个自定义视图编写一个简单的vtkView子类。

然而,一个vtkPVView子类,使用他们自己的vtkView子类:添加并行渲染,平铺显示和客户端服务器。即使这个视图是一个客户端功能视图,也需要优雅地处理这些配置。

vtkPVView子类所在包:paraview\\remoting\\views 

 

vtkPVRenderView

/**
 * @class   vtkPVRenderView
 * @brief   Render View for ParaView.
 *
 * vtkRenderView equivalent that is specialized for ParaView. vtkRenderView
 * handles polygonal rendering for ParaView in all the different modes of
 * operation. vtkPVRenderView instance must be created on all involved
 * processes. vtkPVRenderView uses the information about what process it has
 * been created on to decide what part of the "rendering" happens on the
 * process.
*/

vtkPVRenderView是paraview的渲染视图 

vtkPVRenderView等价于vtkRenderView,只不过vtkPVRenderView专用于ParaView.

vtkRenderView在所有不同操作模式下处理ParaView的多边形渲染。

必须在所有相关进程中创建vtkPVRenderView实例。

vtkPVRenderView使用创建他的进程信息,决定呈现发生在进程上的渲染部位。

vtkPVContextView 

/**
 * @class   vtkPVContextView
 *
 * vtkPVContextView adopts vtkContextView so that it can be used in ParaView
 * configurations.
*/ 

 vtkPVContextView采用vtkContextView,因此可以在ParaView配置中使用。

vtkSpreadSheetView 

/**
 * @class   vtkSpreadSheetView
 *
 * vtkSpreadSheetView is a vtkPVView subclass for a view used to show any data
 * as a spreadsheet. This view can only show one representation at a
 * time. If more than one representation is added to this view, only the first
 * visible representation will be shown.
*/

vtkSpreadSheetView用于将任何数据显示为电子表格。

此视图一次只能显示一个关联表达。

如果将多个关联表达添加到此视图中,则仅显示第一个可见表示。

vtkRenderViewBase类

/**
 * @class   vtkRenderViewBase
 * @brief   A base view containing a renderer.
 *
 *
 * vtkRenderViewBase is a view which contains a vtkRenderer.  You may add
 * vtkActors directly to the renderer.
 *
 * This class is also the parent class for any more specialized view which uses
 * a renderer.
 *
 */

vtkRenderViewBase:此类是使用render渲染器更专业的任何类的父类。

vtkRenderViewBase是包含vtkRender的视图,可以将vtkactor直接添加到渲染器render。 

图 vtkRenderViewBase的子类

vtkContextView类所在包:ParaView\\VTK\\Views\\Context2D

/**
 * @class   vtkContextView
 * @brief   provides a view of the vtkContextScene.
 *
 *
 * This class is derived from vtkRenderViewBase and provides a view of a
 * vtkContextScene, with a default interactor style, renderer etc. It is
 * the simplest way to create a vtkRenderWindow and display a 2D scene inside
 * of it.
 *
 * By default the scene has a white background.
 */

vtkContextView继承于vtkRenderViewBase,提供vtkContextScene。vtkContextScene具有默认的几乎起样式、渲染器等。

创建vtkRenderWindow并在window中显示2D场景,它是最简单的方法。

默认情况下,场景具有白色背景。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容