Debian Codegraph @

manual/images/pipeline.pgf

raw
1 \usetikzlibrary{positioning}
2 \usetikzlibrary{shapes.geometric}
3 \usetikzlibrary{shapes.arrows}
4 \usetikzlibrary{shapes.misc}
5 \usetikzlibrary{decorations.pathmorphing,arrows}
6
7 \tikzset{terminal/.style={single arrow,top color=white,bottom color=black!20,very thick,draw=black!50}}
8 \tikzset{plugin/.style={rounded rectangle,top color=white,bottom color=blue!40,very thick,draw=blue!70}}
9 \tikzset{transform/.style={ellipse,top color=white,bottom color=green!20,very thick,draw=green!50}}
10
11 \begin{tikzpicture}[text width=15mm,node distance=20mm and 20mm]
12
13 \node[draw,terminal] (inf) {Input\\Format};
14 \node[draw,right=of inf,plugin,text centered] (inp) {Input\\Plugin};
15 \node[draw,below=of inp,text width=2cm,transform,text centered] (trans) {Transform};
16 \node[draw,below=of trans,plugin,text centered] (oup) {Output\\Plugin};
17 \node[draw,left=of oup,terminal,shape border rotate=180] (ouf) {Output\\Format};
18
19 \begin{scope}[thick]
20 \begin{scope}[decoration={snake,post length=1mm}]
21 \draw[->,decorate] (inf.east) -- (inp.west);
22 \draw[->,decorate] (oup.west) -- (ouf.east);
23 \end{scope}
24
25 \draw[->] (inp.south) -- node[sloped,above] {XHTML} (trans.north);
26 \draw[->] (trans.south) -- (oup.north);
27
28 \end{scope}
29 \end{tikzpicture}