Skip to content

Just a small extension of the package `tikz-uml` for pointer diagrams

License

Notifications You must be signed in to change notification settings

da-h/tikz-uml-pointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tikz-uml-pointer

Just a small extension of the package tikz-uml for pointer diagrams

Example

% \documentclass{standalone}
% \documentclass[10pt,a4,oneside]{scrartcl}
\documentclass{article}
\usepackage[active,pdftex,tightpage]{preview}


\usepackage{tikz-uml}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes}
\include{tikz-uml-pointer}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{15pt}%

\begin{document}
\begin{tikzpicture}

    \umlpointer[x=0,y=0,name=pointer1,type=int *b]{}
    \umlpointer[x=0,y=2,name=pointer2,type=Point *c]{}
    \umlpointer[x=2,y=3,name=pointer3,type=Point *d]{}
    \umlpointer[x=5,y=3,name=pointer4,type=Point *a]{}
    \umlnullptr[x=7,y=3,name=nullptr-1]{}

    \begin{umlstruct}[x=3, y=0]{Punkt a}
        \umlstructvalue[x=0,y=0, name=value1, type=double x, value=2]{}
        \umlstructvalue[x=2,y=0, name=value2, type=double y, value=42]{}
    \end{umlstruct}

    \umlpointto{pointer2}{Punkt a}
    \umlpointto[geometry=-|]{pointer3}{Punkt a}
    \umlpointto{pointer4}{nullptr-1}
    \umlpointto{pointer1}{value1}
\end{tikzpicture}
\end{document}

Output

About

Just a small extension of the package `tikz-uml` for pointer diagrams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages