paraView关联表达vtkDataRepresentation继承树

目录

vtkDataRepresentation

vtk3DWidgetRepresentation

vtkPVDataRepresentation

vtkEmptyRepresentation


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

vtkDataRepresentation类所在包:ParaView\\VTK\\Views\\Core;它与vtkView在用一个包中。

vtkDataRepresentation

                                                                                                                                                                                              图:vtkDataRepresentation类的继承关系 

/**
 * @class   vtkDataRepresentation
 * @brief   The superclass for all representations
 *
 *
 * vtkDataRepresentation the superclass for representations of data objects.
 * This class itself may be instantiated and used as a representation
 * that simply holds a connection to a pipeline.
 *
 * If there are multiple representations present in a view, you should use
 * a subclass of vtkDataRepresentation.  The representation is
 * responsible for taking the input pipeline connection and converting it
 * to an object usable by a view.  In the most common case, the representation
 * will contain the pipeline necessary to convert a data object into an actor
 * or set of actors.
 *
 * The representation has a concept of a selection.  If the user performs a
 * selection operation on the view, the view forwards this on to its
 * representations.  The representation is responsible for displaying that
 * selection in an appropriate way.
 *
 * Representation selections may also be linked.  The representation shares
 * the selection by converting it into a view-independent format, then
 * setting the selection on its vtkAnnotationLink.  Other representations
 * sharing the same selection link instance will get the same selection
 * from the selection link when the view is updated.  The application is
 * responsible for linking representations as appropriate by setting the
 * same vtkAnnotationLink on each linked representation.
 */

vtkDataRepresentation数据对象表示的超类。

这个类本身可以被实例化并用作一个表示,这个表示只保持到管道的一个连接。

如果视图中存在多个表示,则应使用vtkDataRepresentation的子类。

表示(representations)负责获取输入管道连接并将其转换为视图可用的对象。

在最常见的情况下,表示(representations)将包含管道,将数据对象转换为参与者或参与者集需要管道(pipeline)。

表示有一个选择的概念。如果用户对视图执行选择操作,则视图会将此操作转发到他的表示。表示法负责以适当的方式显示该选择。

表示选择也可以链接。表示将选择转换为独立于视图的格式,然后在其vtkAnnotationLink上设置选择,从而达到共享选择的目标。

更新视图时,共享同一选择链接实例的其他表达将从选择链接中获得相同的选择。

应用程序负责通过在每个链接的表示上设置相同的vtkAnnotationLink来适当地链接表示。

vtk3DWidgetRepresentation

/**
 * @class   vtk3DWidgetRepresentation
 *
 * vtk3DWidgetRepresentation is a vtkDataRepresentation subclass for 3D widgets
 * and their representations. It makes it possible to add 3D widgets to
 * vtkPVRenderView.
*/

vtk3DWidgetRepresentation是vtkDataRepresentation子类,用于3D小部件及3D小部件的表示。它使向vtkPVRenderView添加3D小部件成为可能。

vtk3DWidgetRepresentation没有子类。

vtkPVDataRepresentation

/**
 * @class   vtkPVDataRepresentation
 *
 * vtkPVDataRepresentation adds some ParaView specific API to data
 * representations.
 * @sa
 * vtkPVDataRepresentationPipeline
*/

vtkPVDataRepresentation子类

paraview关联表达vtkPVDataRepresentation重要函数

vtkEmptyRepresentation

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

昵称

取消
昵称表情代码图片

    暂无评论内容