ProcessObject is an abstract object that specifies behavior and interface of network process objects (sources, filters, mappers). Source objects are creators of visualization data; filters input, process, and output image data; and mappers transform data into another form (like transforming coordinates or writing data to a file).
A major role of ProcessObject is to define the inputs and outputs of a filter. More than one input and/or output may exist for a given filter. Some classes (e.g., source objects or mapper objects) will not use inputs (the source) or outputs (mappers). In this case, the inputs or outputs is just ignored.
The inputs and outputs are referenced by name. The Primary input and the Primary output play a special role: they drive the pipeline.
In addition to the reference by name, it is possible to access the inputs and outputs with an index. The index is mapped internally to a name built as "IndexedDataObject" followed by the index. The indexed input or output 0 is mapped to the Primary input or output. The name of the Primary input or output is "Primary", but this can be changed with SetPrimaryInputName and SetPrimaryOutputName.
The inputs and outputs shouldn't be accessed by index in most cases. Using the name is most of the time a better solution. The access by index should be used only when the number of input or output of a filter is decided at run time.
| virtual void | Update () |
ProcessObject作为抽象类定义了网络过程对象的行为及接口,包括数据源、过滤器和映射器等。它主要负责定义过滤器的输入与输出,并支持通过名称或索引进行访问。

被折叠的 条评论
为什么被折叠?



