I want to create a node style which looks like this:
After some investigations I was not able to succeed and identified two directions to achieve this goal. I am asking here which direction should I take and how continue into this direction.
The first direction seems to use append after command
in my style definition as following:
channel/.style={
fifo,minimum size=4mm,minimum width=10mm,
append after command={
(\tikzlastnode.north west)edge(\tikzlastnode.north east)
(\tikzlastnode.south west)edge(\tikzlastnode.south east)
(\tikzlastnode.north east)edge(\tikzlastnode.south east)
}
}
My problem with this solution is that I don't know how to extend it to draw de "other" vertical lines in my node.
The second direction consist in declaring a new shape as clearly described here How to draw inside a TikZ node, using node style? My problem with this solution is it's relative complexity and how to draw these lines using \pgf
primitives.
Feel free to add any other solution that may better suits this need.
rectangle split
, which is a rectangle divided into multiple parts. See chapter 48.6, Shapes with multiple text parts, in the manual.