QtVTKStreamingExamples: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: <graphviz> digraph G { fontsize = 12 fontname = Helvetica node[shape=box, style=filled, fontname=Helvetica, fontsize=9 fillcolor=1 height =0.1] edge [ fontsize = 9 fontname = Helvetica ] ...)
 
No edit summary
 
Line 1: Line 1:
== Example 1 ==
<graphviz>
<graphviz>
digraph G {
digraph G {
Line 17: Line 19:
</graphviz>
</graphviz>


All QThread does is to call Push() on the vtkTokenizer with new inputs at random time.
All QThread does is to call Push() on the vtkTokenizer with new inputs at a random delay. vtkQtEmitter posts events to QListWidget for a thread-safe environment.
 
[[Image:QtVTKStreaming1.png]]
 
 
== Example 2 ==
<graphviz>
digraph G {
fontsize = 12
fontname = Helvetica
node[shape=box, style=filled, fontname=Helvetica, fontsize=9 fillcolor=1 height =0.1]
edge [ fontsize = 9 fontname = Helvetica ]
 
QThread [fillcolor="#ff8888"]
 
vtkTable1 [fillcolor="#ffffff"]
vtkTokenizer1 [fillcolor="#ffffff"]
vtkFoldCase1 [fillcolor = "#ffffff"]
 
vtkTable2 [fillcolor="#ffffff"]
vtkTokenizer2 [fillcolor="#ffffff"]
vtkFoldCase2 [fillcolor = "#ffffff"]
 
vtkTable3 [fillcolor="#ffffff"]
vtkTokenizer3 [fillcolor="#ffffff"]
vtkFoldCase3 [fillcolor = "#ffffff"]
 
Concatenate [fillcolor="#ffffff"]
vtkQtEmitter [fillcolor="#ffffff"]
QListWidget [fillcolor="#888888"]
 
vtkTable1 -> vtkTokenizer1 -> vtkFoldCase1 -> Concatenate
vtkTable2 -> vtkTokenizer2 -> vtkFoldCase2 -> Concatenate
vtkTable3 -> vtkTokenizer3 -> vtkFoldCase3 -> Concatenate
 
QThread -> Concatenate -> vtkQtEmitter -> QListWidget
}
</graphviz>
 
Concatenate merges tokens from the 3 upstream tokenizers and send it down to QtEmitter for posting words to the QListWidget. Similar to the example 1, QThread does Push() on Concatenate, however, Concatenate also does Pull() on the upstream tokenizers. This creates 2 separate streaming subpipelines.
 
[[Image:QtVTKStreaming2.png]]

Latest revision as of 12:25, 25 January 2010

Example 1

This is a graph with borders and nodes. Maybe there is an Imagemap used so the nodes may be linking to some Pages.

All QThread does is to call Push() on the vtkTokenizer with new inputs at a random delay. vtkQtEmitter posts events to QListWidget for a thread-safe environment.

QtVTKStreaming1.png


Example 2

This is a graph with borders and nodes. Maybe there is an Imagemap used so the nodes may be linking to some Pages.

Concatenate merges tokens from the 3 upstream tokenizers and send it down to QtEmitter for posting words to the QListWidget. Similar to the example 1, QThread does Push() on Concatenate, however, Concatenate also does Pull() on the upstream tokenizers. This creates 2 separate streaming subpipelines.

QtVTKStreaming2.png