Revision 1791

trunk/docs/uml/Makefile (revision 1791)
1
all: admb-seqdiag.png admb-blockdiag.png
1
all: admb-component.pdf admb-seqdiag.png admb-blockdiag.png
2 2

  
3
admb-component.pdf: admb-component.tex
4
	pdflatex admb-component
5

  
3 6
admb-seqdiag.png: admb-seqdiag
4 7
	seqdiag admb-seqdiag
5 8

  
......
9 12
clean:
10 13
	@rm -vf admb-blockdiag.png
11 14
	@rm -vf admb-seqdiag.png
15
	@rm -vf admb-component.aux
16
	@rm -vf admb-component.log
17
	@rm -vf admb-component.pdf
18

  
trunk/docs/uml/admb-component.tex (revision 1791)
1
\documentclass[letterpaper,12pt]{article}
2

  
3
%\usepackage[T1]{fontenc}
4
%\usepackage[utf8x]{inputenc}
5
%\usepackage{fullpage}
6
\usepackage[pdftex]{pict2e}
7
%\usepackage{calc}
8
\usepackage[nomessages]{fp}
9
%\usepackage[pdftex]{hyperref}
10
\usepackage{color}
11
\listfiles
12

  
13
\newcommand\includes{{\tt \#include}s}
14

  
15
%\newcommand\mainX{50}
16
%\newlength{\mainX}
17

  
18
% 1. height of callout dot
19
% 2,3 coordinates of Bezier control point
20
% 4 height of middle of oval
21
% 5 text to be displayed 
22
% 6 offset (similar to nesting level)
23
\newcommand\callout[6]{%
24
   {\small
25
   \put(2,#1){\circle*{1.6}}
26
   \FPeval{\qX}{\mainX+5- #6}
27
   \qbezier{(2,#1)(#2,#3)(\qX,#4)}
28
%  \put(#2,#3){\circle{1}}
29
   \FPeval{\oX}{\qX+20.0}
30
   \put(\oX,#4){\oval(40,12)}
31
%  \put(\oX,#4){\circle{1}}
32
   \FPeval{\tX}{\qX+2}
33
   \FPeval{\tY}{#4-3.5}
34
   \put(\tX,\tY){\shortstack[l]{#5}}
35
   }% small
36
}
37

  
38
\title{ADMB UML Diagrams}
39
\author{John Sibert}
40

  
41
\begin{document}
42
%\small
43
\sffamily
44
\setlength{\unitlength}{0.01\textwidth}
45
%\FPeval{\result}{clip(5+6)}%
46
\FPeval{\mainX}{60}
47
\begin{picture}(100.0,100.0)
48
\put(50,102){\makebox(0,0){\large\bf ADMB Application}}
49
\thicklines\put(0,0){\framebox(100.0,100.0){}} 
50
  \thinlines
51
  \callout{98}{52}{99}{93}{GLOBALS\_SECTION\\ User \includes\\ User methods}{0}
52
  \put(1,94){\shortstack[l]{ADMB \includes\ and global methods}}
53

  
54
  \thinlines
55
  \put(1,1){\begin{picture}(\mainX,91)
56
    % main() box
57
    \put(0,0){\framebox(\mainX,91){%
58
       \put(1,88){{\tt int main(int argc, char * argv[])}}
59
       \put(0,87){\line(1,0){\mainX}}
60
       \put(1,84){Set {\tt new} and {\tt exit} routines}
61
       \callout{82}{52}{82}{78}{TOP\_OF\_MAIN\_SECTION\\ User-specified buffer sizes}{1}
62

  
63
       \FPeval{\mpX}{\mainX-2}
64
     % \put(1,30){\circle*{2.2}}
65
       \put(1,30){\begin{picture}(\mpX, 50)
66
       %  \color{red}
67
          \put(0,0){\framebox(\mpX,50){%
68
          \put(1,47){{\tt model\_parameters(...)}}
69
          \put(0,46){\line(1,0){\mpX}}
70
 
71
       %  \put(1,15){\circle{2.2}}
72
          \FPeval{\mdX}{\mpX-2}
73
          \put(1,15){\begin{picture}(\mdX,30)
74
              \put(0,0){\framebox(\mdX,30){%
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff