Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

33 lines
1.2KB

  1. %&tex
  2. \documentclass{standalone}
  3. \usepackage{tikz}
  4. \usepackage{siltex}
  5. \usetikzlibrary {arrows.meta,positioning,calc,math}
  6. \tikzset{nodes={text height=.7em, text width=2.5cm, align=center,
  7. draw=black!50, thick, font=\footnotesize, fill=white},
  8. >={Stealth[round,sep]}, rounded corners, semithick}
  9. \pgfdeclarelayer{bg}
  10. \pgfsetlayers{bg,main}
  11. \begin{document}
  12. \begin{tikzpicture}[on grid,y=2.2cm,x=5.7cm]
  13. \node (re) {Requirement};
  14. \node (fu)[right=1 of re] {Function};
  15. \node (co)[above=1 of fu] {Component};
  16. \begin{scope}[nodes={draw=none, fill=none, text width={},text height={}}]
  17. \node(c)[left=0.5 of co.north] {};
  18. \node(d)[above=2mm of c, anchor=south] {Elements of a Feature};
  19. \end{scope}
  20. \begin{scope}[nodes={draw=none, auto, fill=none, midway,text width={},text height={}}]
  21. \path[->] (re) edge node[below] {Specifies} (fu)
  22. (co) edge node {Performs} (fu)
  23. (re) edge node {Specifies} (co);
  24. \end{scope}
  25. \begin{pgfonlayer}{bg}
  26. \coordinate(a) at ($(re.south west) + (-2mm,-2mm)$);
  27. \coordinate(b) at ($(co.north east) + (2mm,2mm)$);
  28. \draw[fill=lightgray] (a) rectangle (b);
  29. \end{pgfonlayer}
  30. \end{tikzpicture}
  31. \end{document}