| 1 |
% \iffalse |
| 2 |
% -------------------------------------------------------------------- |
| 3 |
%<*natoapp6c> |
| 4 |
% \fi |
| 5 |
% \subsubsection{`Friendly' node shapes} |
| 6 |
% |
| 7 |
% |
| 8 |
% \iffalse |
| 9 |
% .................................................................... |
| 10 |
% \fi |
| 11 |
% \begin{NatoAppFrame}{natoapp6c friendly air} |
| 12 |
% |
| 13 |
% Macro for friendly air shape |
| 14 |
% |
| 15 |
% \begin{macrocode} |
| 16 |
\def\n@to@friendly@@ir{% |
| 17 |
\southeast \wg@tmpa=\pgf@x\wg@tmpb=\pgf@y% |
| 18 |
\pgfpathmoveto{\pgfqpoint{-\wg@tmpa}{\wg@tmpb}}% |
| 19 |
\cntrl \wg@tmpb=\pgf@y% |
| 20 |
\pgfpatharc{180}{0}{\wg@tmpa and \wg@tmpb}} |
| 21 |
% \end{macrocode} |
| 22 |
% |
| 23 |
% The friendly air command. |
| 24 |
% |
| 25 |
% \begin{macrocode} |
| 26 |
\pgfdeclareshape{natoapp6c friendly air}{% |
| 27 |
\inheritsavedanchors[from=natoapp6c base] |
| 28 |
\savedanchor\southeast{% |
| 29 |
\pgf@x=1.1\n@to@pp@r% |
| 30 |
\pgf@y=-\n@to@pp@r} |
| 31 |
\savedanchor\cntrl{\pgf@x=0cm\pgf@y=2.6\n@to@pp@r} |
| 32 |
\savedanchor\north{\pgf@x=0cm\pgf@y=1.6\n@to@pp@r} |
| 33 |
\anchor{south east}{\southeast} |
| 34 |
\anchor{south west}{\southeast\pgf@x=-\pgf@x} |
| 35 |
\anchor{north east}{\southeast\wg@tmpa=\pgf@x\north\pgf@x=\wg@tmpa} |
| 36 |
\anchor{north west}{\southeast\wg@tmpa=\pgf@x\north\pgf@x=-\wg@tmpa} |
| 37 |
\anchor{north}{\north} |
| 38 |
\anchor{east}{% |
| 39 |
\north\wg@tmpb\pgf@y% |
| 40 |
\southeast\wg@tmpc=\pgf@y\wg@tmpa=\pgf@x% |
| 41 |
\advance\wg@tmpb-\wg@tmpc |
| 42 |
\divide\wg@tmpb2% |
| 43 |
\advance\wg@tmpb\wg@tmpc% |
| 44 |
\pgf@x=\wg@tmpa% |
| 45 |
\pgf@y=\wg@tmpb} |
| 46 |
\anchor{west}{% |
| 47 |
\north\wg@tmpb\pgf@y% |
| 48 |
\southeast\wg@tmpc=\pgf@y\wg@tmpa=\pgf@x% |
| 49 |
\advance\wg@tmpb-\wg@tmpc |
| 50 |
\divide\wg@tmpb2% |
| 51 |
\advance\wg@tmpb\wg@tmpc% |
| 52 |
\pgf@x=-\wg@tmpa% |
| 53 |
\pgf@y=\wg@tmpb} |
| 54 |
\anchor{south}{\southeast\pgf@x=0cm} |
| 55 |
\inheritanchor[from=natoapp6c base]{upper} |
| 56 |
\inheritanchor[from=natoapp6c base]{lower} |
| 57 |
\inheritanchor[from=natoapp6c base]{left} |
| 58 |
\inheritanchor[from=natoapp6c base]{right} |
| 59 |
\inheritanchor[from=natoapp6c base]{center} |
| 60 |
\backgroundpath{% |
| 61 |
\n@to@friendly@@ir% |
| 62 |
} |
| 63 |
\behindforegroundpath{% |
| 64 |
\n@to@friendly@@ir% |
| 65 |
\pgfusepath{stroke}% |
| 66 |
} |
| 67 |
} |
| 68 |
% \end{macrocode} |
| 69 |
% \end{NatoAppFrame} |
| 70 |
% |
| 71 |
% \iffalse |
| 72 |
% .................................................................... |
| 73 |
% \fi |
| 74 |
% \begin{NatoAppFrame}{natoapp6c friendly land} |
| 75 |
% |
| 76 |
% Macro for friendly land command |
| 77 |
% |
| 78 |
% \begin{macrocode} |
| 79 |
\def\n@to@friendly@l@nd{% |
| 80 |
\northeast \wg@tmpa=\pgf@x\wg@tmpb=\pgf@y% |
| 81 |
\pgfpathmoveto{\pgfqpoint{ \wg@tmpa}{ \wg@tmpb}}% |
| 82 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{ \wg@tmpb}}% |
| 83 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{-\wg@tmpb}}% |
| 84 |
\pgfpathlineto{\pgfqpoint{ \wg@tmpa}{-\wg@tmpb}}% |
| 85 |
\pgfclosepath} |
| 86 |
% \end{macrocode} |
| 87 |
% |
| 88 |
% The friendly land command. The most used command frame. |
| 89 |
% |
| 90 |
% \begin{macrocode} |
| 91 |
\pgfdeclareshape{natoapp6c friendly land}{% |
| 92 |
\inheritsavedanchors[from=natoapp6c base] |
| 93 |
\savedanchor\northeast{% |
| 94 |
\pgf@x=1.5\n@to@pp@r% |
| 95 |
\pgf@y=\n@to@pp@r} |
| 96 |
\anchor{north east}{\northeast} |
| 97 |
\anchor{north west}{\northeast\pgf@x=-\pgf@x} |
| 98 |
\anchor{south east}{\northeast\pgf@y=-\pgf@y} |
| 99 |
\anchor{south west}{\northeast\pgf@x=-\pgf@x\pgf@y=-\pgf@y} |
| 100 |
\anchor{north}{\northeast\pgf@x=0cm} |
| 101 |
\anchor{south}{\northeast\pgf@x=0cm\pgf@y=-\pgf@y} |
| 102 |
\anchor{east}{\northeast\pgf@y=0cm} |
| 103 |
\anchor{west}{\northeast\pgf@x=-\pgf@x\pgf@y=0cm} |
| 104 |
\inheritanchor[from=natoapp6c base]{upper} |
| 105 |
\inheritanchor[from=natoapp6c base]{lower} |
| 106 |
\inheritanchor[from=natoapp6c base]{left} |
| 107 |
\inheritanchor[from=natoapp6c base]{right} |
| 108 |
\inheritanchor[from=natoapp6c base]{center} |
| 109 |
\backgroundpath{% |
| 110 |
\n@to@friendly@l@nd% |
| 111 |
} |
| 112 |
\behindforegroundpath{% |
| 113 |
\n@to@friendly@l@nd% |
| 114 |
\pgfusepath{stroke}% |
| 115 |
} |
| 116 |
} |
| 117 |
% \end{macrocode} |
| 118 |
% \end{NatoAppFrame} |
| 119 |
% |
| 120 |
% \iffalse |
| 121 |
% .................................................................... |
| 122 |
% \fi |
| 123 |
% \begin{NatoAppFrame}{natoapp6c friendly activity} |
| 124 |
% |
| 125 |
% The friendly activity command. Similar to land command, but with |
| 126 |
% boxes in the corners. |
| 127 |
% |
| 128 |
% \begin{macrocode} |
| 129 |
\pgfdeclareshape{natoapp6c friendly activity}{% |
| 130 |
\inheritsavedanchors[from=natoapp6c friendly land] |
| 131 |
\inheritanchor[from=natoapp6c friendly land]{center} |
| 132 |
\inheritanchor[from=natoapp6c friendly land]{inner north east} |
| 133 |
\inheritanchor[from=natoapp6c friendly land]{inner north west} |
| 134 |
\inheritanchor[from=natoapp6c friendly land]{inner south west} |
| 135 |
\inheritanchor[from=natoapp6c friendly land]{inner south east} |
| 136 |
\inheritanchor[from=natoapp6c friendly land]{north east} |
| 137 |
\inheritanchor[from=natoapp6c friendly land]{north west} |
| 138 |
\inheritanchor[from=natoapp6c friendly land]{south east} |
| 139 |
\inheritanchor[from=natoapp6c friendly land]{south west} |
| 140 |
\inheritanchor[from=natoapp6c friendly land]{north} |
| 141 |
\inheritanchor[from=natoapp6c friendly land]{west} |
| 142 |
\inheritanchor[from=natoapp6c friendly land]{east} |
| 143 |
\inheritanchor[from=natoapp6c friendly land]{south} |
| 144 |
\inheritanchor[from=natoapp6c friendly land]{upper} |
| 145 |
\inheritanchor[from=natoapp6c friendly land]{lower} |
| 146 |
\inheritanchor[from=natoapp6c friendly land]{left} |
| 147 |
\inheritanchor[from=natoapp6c friendly land]{right} |
| 148 |
\inheritanchor[from=natoapp6c friendly land]{center} |
| 149 |
\inheritbackgroundpath[from=natoapp6c friendly land] |
| 150 |
\behindforegroundpath{ |
| 151 |
\begin{n@to@pp@stroketofill} |
| 152 |
\n@to@friendly@l@nd% |
| 153 |
\pgfusepath{stroke} |
| 154 |
% |
| 155 |
\northeast \wg@tmpa=\pgf@x\wg@tmpb\pgf@y% |
| 156 |
\wg@tmpc=\wg@tmpa\advance\wg@tmpc-\n@to@pp@act@w |
| 157 |
\wg@tmpd=\wg@tmpb\advance\wg@tmpd-\n@to@pp@act@w |
| 158 |
% |
| 159 |
\pgfpathmoveto{\pgfqpoint{\wg@tmpa}{\wg@tmpb}}% |
| 160 |
\pgfpathlineto{\pgfqpoint{\wg@tmpc}{\wg@tmpb}}% |
| 161 |
\pgfpathlineto{\pgfqpoint{\wg@tmpc}{\wg@tmpd}}% |
| 162 |
\pgfpathlineto{\pgfqpoint{\wg@tmpa}{\wg@tmpd}}% |
| 163 |
\pgfclosepath |
| 164 |
% |
| 165 |
\pgfusepath{fill}% |
| 166 |
\pgfpathmoveto{\pgfqpoint{\wg@tmpa}{-\wg@tmpd}}% |
| 167 |
\pgfpathlineto{\pgfqpoint{\wg@tmpc}{-\wg@tmpd}}% |
| 168 |
\pgfpathlineto{\pgfqpoint{\wg@tmpc}{-\wg@tmpb}}% |
| 169 |
\pgfpathlineto{\pgfqpoint{\wg@tmpa}{-\wg@tmpb}}% |
| 170 |
\pgfclosepath |
| 171 |
\pgfusepath{fill}% |
| 172 |
% |
| 173 |
\pgfpathmoveto{\pgfqpoint{-\wg@tmpc}{\wg@tmpb}}% |
| 174 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{\wg@tmpb}}% |
| 175 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{\wg@tmpd}}% |
| 176 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpc}{\wg@tmpd}}% |
| 177 |
\pgfclosepath |
| 178 |
\pgfusepath{fill}% |
| 179 |
% |
| 180 |
\pgfpathmoveto{\pgfqpoint{-\wg@tmpc}{-\wg@tmpd}}% |
| 181 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{-\wg@tmpd}}% |
| 182 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{-\wg@tmpb}}% |
| 183 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpc}{-\wg@tmpb}}% |
| 184 |
\pgfclosepath |
| 185 |
\pgfusepath{fill}% |
| 186 |
\end{n@to@pp@stroketofill} |
| 187 |
} |
| 188 |
} |
| 189 |
% \end{macrocode} |
| 190 |
% \end{NatoAppFrame} |
| 191 |
% |
| 192 |
% \iffalse |
| 193 |
% .................................................................... |
| 194 |
% \fi |
| 195 |
% \begin{NatoAppFrame}{natoapp6c friendly equipment} |
| 196 |
% |
| 197 |
% The friendly equipment command. A circle. |
| 198 |
% |
| 199 |
% \begin{macrocode} |
| 200 |
\pgfdeclareshape{natoapp6c friendly equipment}{% |
| 201 |
\inheritsavedanchors[from=natoapp6c base] |
| 202 |
\savedanchor\northeast{% |
| 203 |
\pgf@x=1.2\n@to@pp@r% |
| 204 |
\pgf@y=1.2\n@to@pp@r} |
| 205 |
\anchor{north east}{\northeast} |
| 206 |
\anchor{north west}{\northeast\pgf@x=-\pgf@x} |
| 207 |
\anchor{south east}{\northeast\pgf@y=-\pgf@y} |
| 208 |
\anchor{south west}{\northeast\pgf@x=-\pgf@x\pgf@y=-\pgf@y} |
| 209 |
\anchor{north}{\northeast\pgf@x=0cm} |
| 210 |
\anchor{south}{\northeast\pgf@x=0cm\pgf@y=-\pgf@y} |
| 211 |
\anchor{east}{\northeast\pgf@y=0cm} |
| 212 |
\anchor{west}{\northeast\pgf@x=-\pgf@x\pgf@y=0cm} |
| 213 |
\inheritanchor[from=natoapp6c base]{upper} |
| 214 |
\inheritanchor[from=natoapp6c base]{lower} |
| 215 |
\inheritanchor[from=natoapp6c base]{left} |
| 216 |
\inheritanchor[from=natoapp6c base]{right} |
| 217 |
\inheritanchor[from=natoapp6c base]{center} |
| 218 |
\backgroundpath{% |
| 219 |
\northeast\wg@tmpa\pgf@x% |
| 220 |
\pgfpathcircle{\pgfqpoint{0cm}{0cm}}{\wg@tmpa} |
| 221 |
} |
| 222 |
\behindforegroundpath{% |
| 223 |
\northeast\wg@tmpa\pgf@x% |
| 224 |
\pgfpathcircle{\pgfqpoint{0cm}{0cm}}{\wg@tmpa} |
| 225 |
\pgfusepath{stroke}% |
| 226 |
} |
| 227 |
} |
| 228 |
% \end{macrocode} |
| 229 |
% \end{NatoAppFrame} |
| 230 |
% |
| 231 |
% \iffalse |
| 232 |
% .................................................................... |
| 233 |
% \fi |
| 234 |
% \begin{NatoAppFrame}{natoapp6c friendly installation} |
| 235 |
% |
| 236 |
% The friendly installation command. Similar to the land command, but |
| 237 |
% with a `hat' on top. |
| 238 |
% |
| 239 |
% \begin{macrocode} |
| 240 |
\pgfdeclareshape{natoapp6c friendly installation}{% |
| 241 |
\inheritsavedanchors[from=natoapp6c friendly land] |
| 242 |
\inheritanchor[from=natoapp6c friendly land]{center} |
| 243 |
\inheritanchor[from=natoapp6c friendly land]{inner north east} |
| 244 |
\inheritanchor[from=natoapp6c friendly land]{inner north west} |
| 245 |
\inheritanchor[from=natoapp6c friendly land]{inner south west} |
| 246 |
\inheritanchor[from=natoapp6c friendly land]{inner south east} |
| 247 |
\inheritanchor[from=natoapp6c friendly land]{north east} |
| 248 |
\inheritanchor[from=natoapp6c friendly land]{north west} |
| 249 |
\inheritanchor[from=natoapp6c friendly land]{south east} |
| 250 |
\inheritanchor[from=natoapp6c friendly land]{south west} |
| 251 |
\inheritanchor[from=natoapp6c friendly land]{north} |
| 252 |
\inheritanchor[from=natoapp6c friendly land]{west} |
| 253 |
\inheritanchor[from=natoapp6c friendly land]{east} |
| 254 |
\inheritanchor[from=natoapp6c friendly land]{south} |
| 255 |
\inheritanchor[from=natoapp6c friendly land]{upper} |
| 256 |
\inheritanchor[from=natoapp6c friendly land]{lower} |
| 257 |
\inheritanchor[from=natoapp6c friendly land]{left} |
| 258 |
\inheritanchor[from=natoapp6c friendly land]{right} |
| 259 |
\inheritanchor[from=natoapp6c friendly land]{center} |
| 260 |
\inheritbackgroundpath[from=natoapp6c friendly land] |
| 261 |
\behindforegroundpath{ |
| 262 |
\begin{n@to@pp@stroketofill} |
| 263 |
\n@to@friendly@l@nd% |
| 264 |
\pgfusepath{stroke} |
| 265 |
% |
| 266 |
\northeast \wg@tmpa=\pgf@y% |
| 267 |
\wg@tmpb=\wg@tmpa\advance\wg@tmpb\n@to@pp@inst@h% |
| 268 |
% |
| 269 |
\pgfpathmoveto{\pgfqpoint{ \n@to@pp@inst@x}{\wg@tmpb}}% |
| 270 |
\pgfpathlineto{\pgfqpoint{-\n@to@pp@inst@x}{\wg@tmpb}}% |
| 271 |
\pgfpathlineto{\pgfqpoint{-\n@to@pp@inst@x}{\wg@tmpa}}% |
| 272 |
\pgfpathlineto{\pgfqpoint{ \n@to@pp@inst@x}{\wg@tmpa}}% |
| 273 |
\pgfclosepath |
| 274 |
\pgfusepath{fill}% |
| 275 |
\end{n@to@pp@stroketofill} |
| 276 |
} |
| 277 |
} |
| 278 |
% \end{macrocode} |
| 279 |
% \end{NatoAppFrame} |
| 280 |
% |
| 281 |
% \iffalse |
| 282 |
% .................................................................... |
| 283 |
% \fi |
| 284 |
% \begin{NatoAppFrame}{natoapp6c friendly sea surface} |
| 285 |
% |
| 286 |
% The friendly sea surface command. Same as equipment command. |
| 287 |
% |
| 288 |
% \begin{macrocode} |
| 289 |
\pgfdeclareshape{natoapp6c friendly sea surface}{% |
| 290 |
\inheritsavedanchors[from=natoapp6c friendly equipment] |
| 291 |
\inheritanchor[from=natoapp6c friendly equipment]{inner north east} |
| 292 |
\inheritanchor[from=natoapp6c friendly equipment]{inner north west} |
| 293 |
\inheritanchor[from=natoapp6c friendly equipment]{inner south west} |
| 294 |
\inheritanchor[from=natoapp6c friendly equipment]{inner south east} |
| 295 |
\inheritanchor[from=natoapp6c friendly equipment]{north east} |
| 296 |
\inheritanchor[from=natoapp6c friendly equipment]{north west} |
| 297 |
\inheritanchor[from=natoapp6c friendly equipment]{south east} |
| 298 |
\inheritanchor[from=natoapp6c friendly equipment]{south west} |
| 299 |
\inheritanchor[from=natoapp6c friendly equipment]{north} |
| 300 |
\inheritanchor[from=natoapp6c friendly equipment]{west} |
| 301 |
\inheritanchor[from=natoapp6c friendly equipment]{east} |
| 302 |
\inheritanchor[from=natoapp6c friendly equipment]{south} |
| 303 |
\inheritanchor[from=natoapp6c friendly equipment]{upper} |
| 304 |
\inheritanchor[from=natoapp6c friendly equipment]{lower} |
| 305 |
\inheritanchor[from=natoapp6c friendly equipment]{left} |
| 306 |
\inheritanchor[from=natoapp6c friendly equipment]{right} |
| 307 |
\inheritanchor[from=natoapp6c friendly equipment]{center} |
| 308 |
\inheritbackgroundpath[from=natoapp6c friendly equipment] |
| 309 |
\inheritbehindforegroundpath[from=natoapp6c friendly equipment] |
| 310 |
} |
| 311 |
% \end{macrocode} |
| 312 |
% \end{NatoAppFrame} |
| 313 |
% |
| 314 |
% \iffalse |
| 315 |
% .................................................................... |
| 316 |
% \fi |
| 317 |
% \begin{NatoAppFrame}{natoapp6c friendly space} |
| 318 |
% |
| 319 |
% The friendly space command. Similar to air command, but with a |
| 320 |
% bar on top. |
| 321 |
% |
| 322 |
% \begin{macrocode} |
| 323 |
\pgfdeclareshape{natoapp6c friendly space}{% |
| 324 |
\inheritsavedanchors[from=natoapp6c friendly air] |
| 325 |
\inheritanchor[from=natoapp6c friendly air]{north east} |
| 326 |
\inheritanchor[from=natoapp6c friendly air]{north west} |
| 327 |
\inheritanchor[from=natoapp6c friendly air]{south east} |
| 328 |
\inheritanchor[from=natoapp6c friendly air]{south west} |
| 329 |
\inheritanchor[from=natoapp6c friendly air]{north} |
| 330 |
\inheritanchor[from=natoapp6c friendly air]{west} |
| 331 |
\inheritanchor[from=natoapp6c friendly air]{east} |
| 332 |
\inheritanchor[from=natoapp6c friendly air]{south} |
| 333 |
\inheritanchor[from=natoapp6c friendly air]{upper} |
| 334 |
\inheritanchor[from=natoapp6c friendly air]{lower} |
| 335 |
\inheritanchor[from=natoapp6c friendly air]{left} |
| 336 |
\inheritanchor[from=natoapp6c friendly air]{right} |
| 337 |
\inheritanchor[from=natoapp6c friendly air]{center} |
| 338 |
\inheritbackgroundpath[from=natoapp6c friendly air] |
| 339 |
\behindforegroundpath{% |
| 340 |
\begin{n@to@pp@stroketofill} |
| 341 |
\n@to@friendly@@ir% |
| 342 |
\pgfusepath{stroke,clip}% |
| 343 |
% |
| 344 |
\cntrl\wg@tmpa=\pgf@y% |
| 345 |
\north\wg@tmpb=\pgf@y |
| 346 |
\advance\wg@tmpb-\n@to@pp@space@h |
| 347 |
% |
| 348 |
\pgfpathmoveto{\pgfqpoint{ \n@to@pp@r}{\wg@tmpa}}% |
| 349 |
\pgfpathlineto{\pgfqpoint{-\n@to@pp@r}{\wg@tmpa}}% |
| 350 |
\pgfpathlineto{\pgfqpoint{-\n@to@pp@r}{\wg@tmpb}}% |
| 351 |
\pgfpathlineto{\pgfqpoint{ \n@to@pp@r}{\wg@tmpb}}% |
| 352 |
\pgfclosepath% |
| 353 |
\pgfusepath{fill}% |
| 354 |
\end{n@to@pp@stroketofill} |
| 355 |
} |
| 356 |
} |
| 357 |
% \end{macrocode} |
| 358 |
% \end{NatoAppFrame} |
| 359 |
% |
| 360 |
% \iffalse |
| 361 |
% .................................................................... |
| 362 |
% \fi |
| 363 |
% \begin{NatoAppFrame}{natoapp6c friendly sub surface} |
| 364 |
% |
| 365 |
% Macro for friendly sub surface command |
| 366 |
% |
| 367 |
% \begin{macrocode} |
| 368 |
\def\n@to@friendly@sub{% |
| 369 |
\northeast \wg@tmpa=\pgf@x\wg@tmpb=\pgf@y% |
| 370 |
\pgfpathmoveto{\pgfqpoint{-\wg@tmpa}{\wg@tmpb}}% |
| 371 |
\cntrl \wg@tmpb=\pgf@y% |
| 372 |
\pgfpatharc{180}{0}{\wg@tmpa and \wg@tmpb}} |
| 373 |
% \end{macrocode} |
| 374 |
% |
| 375 |
% The friendly sub surface command. |
| 376 |
% |
| 377 |
% |
| 378 |
% \begin{macrocode} |
| 379 |
\pgfdeclareshape{natoapp6c friendly sub surface}{% |
| 380 |
\inheritsavedanchors[from=natoapp6c base] |
| 381 |
\savedanchor\northeast{% |
| 382 |
\pgf@x=1.1\n@to@pp@r% |
| 383 |
\pgf@y=\n@to@pp@r} |
| 384 |
\savedanchor\cntrl{\pgf@x=0cm\pgf@y=-2.6\n@to@pp@r} |
| 385 |
\savedanchor\south{\pgf@x=0cm\pgf@y=-1.6\n@to@pp@r} |
| 386 |
\anchor{north east}{\northeast} |
| 387 |
\anchor{north west}{\northeast\pgf@x=-\pgf@x} |
| 388 |
\anchor{south east}{\northeast\wg@tmpa=\pgf@x\south\pgf@x=\wg@tmpa} |
| 389 |
\anchor{south west}{\northeast\wg@tmpa=\pgf@x\south\pgf@x=-\wg@tmpa} |
| 390 |
\anchor{south}{\south} |
| 391 |
\anchor{east}{ |
| 392 |
\northeast\wg@tmpb=\pgf@y\wg@tmpa=\pgf@x% |
| 393 |
\south\wg@tmpc\pgf@y% |
| 394 |
\advance\wg@tmpb-\wg@tmpc |
| 395 |
\divide\wg@tmpb2% |
| 396 |
\advance\wg@tmpb\wg@tmpc% |
| 397 |
\pgf@x=\wg@tmpa% |
| 398 |
\pgf@y=\wg@tmpb} |
| 399 |
\anchor{west}{ |
| 400 |
\northeast\wg@tmpb=\pgf@y\wg@tmpa=\pgf@x% |
| 401 |
\south\wg@tmpc\pgf@y% |
| 402 |
\advance\wg@tmpb-\wg@tmpc |
| 403 |
\divide\wg@tmpb2% |
| 404 |
\advance\wg@tmpb\wg@tmpc% |
| 405 |
\pgf@x=-\wg@tmpa% |
| 406 |
\pgf@y=\wg@tmpb} |
| 407 |
\anchor{north}{\northeast\pgf@x=0cm} |
| 408 |
\inheritanchor[from=natoapp6c base]{upper} |
| 409 |
\inheritanchor[from=natoapp6c base]{lower} |
| 410 |
\inheritanchor[from=natoapp6c base]{left} |
| 411 |
\inheritanchor[from=natoapp6c base]{right} |
| 412 |
\inheritanchor[from=natoapp6c base]{center} |
| 413 |
\backgroundpath{% |
| 414 |
\n@to@friendly@sub% |
| 415 |
} |
| 416 |
\behindforegroundpath{% |
| 417 |
\n@to@friendly@sub% |
| 418 |
\pgfusepath{stroke}% |
| 419 |
} |
| 420 |
} |
| 421 |
% \end{macrocode} |
| 422 |
% |
| 423 |
% \begin{macrocode} |
| 424 |
\pgfdeclareshape{natoapp6c friendly none}{% |
| 425 |
\inheritsavedanchors[from=natoapp6c base] |
| 426 |
\savedanchor\northeast{% |
| 427 |
\pgf@x=1.5\n@to@pp@r% |
| 428 |
\pgf@y=\n@to@pp@r} |
| 429 |
\anchor{north east}{\northeast} |
| 430 |
\anchor{north west}{\northeast\pgf@x=-\pgf@x} |
| 431 |
\anchor{south east}{\northeast\pgf@y=-\pgf@y} |
| 432 |
\anchor{south west}{\northeast\pgf@x=-\pgf@x\pgf@y=-\pgf@y} |
| 433 |
\anchor{north}{\northeast\pgf@x=0cm} |
| 434 |
\anchor{south}{\northeast\pgf@x=0cm\pgf@y=-\pgf@y} |
| 435 |
\anchor{east}{\northeast\pgf@y=0cm} |
| 436 |
\anchor{west}{\northeast\pgf@x=-\pgf@x\pgf@y=0cm} |
| 437 |
\inheritanchor[from=natoapp6c base]{upper} |
| 438 |
\inheritanchor[from=natoapp6c base]{lower} |
| 439 |
\inheritanchor[from=natoapp6c base]{left} |
| 440 |
\inheritanchor[from=natoapp6c base]{right} |
| 441 |
\inheritanchor[from=natoapp6c base]{center} |
| 442 |
\backgroundpath{} |
| 443 |
\behindforegroundpath{} |
| 444 |
} |
| 445 |
% \end{macrocode} |
| 446 |
% \end{NatoAppFrame} |
| 447 |
% |
| 448 |
% \iffalse |
| 449 |
% .................................................................... |
| 450 |
% \fi |
| 451 |
% \begin{NatoAppFrame}{natoapp6c friendly dismounted} |
| 452 |
% |
| 453 |
% Macro for friendly dismounted command |
| 454 |
% |
| 455 |
% \begin{macrocode} |
| 456 |
\def\n@to@friendly@l@nd{% |
| 457 |
\northeast \wg@tmpa=\pgf@x\wg@tmpb=\pgf@y% |
| 458 |
\pgfpathmoveto{\pgfqpoint{ \wg@tmpa}{ \wg@tmpb}}% |
| 459 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{ \wg@tmpb}}% |
| 460 |
\pgfpathlineto{\pgfqpoint{-\wg@tmpa}{-\wg@tmpb}}% |
| 461 |
\pgfpathlineto{\pgfqpoint{ \wg@tmpa}{-\wg@tmpb}}% |
| 462 |
\pgfclosepath} |
| 463 |
% \end{macrocode} |
| 464 |
% |
| 465 |
% The friendly dismounted command. The most used command frame. |
| 466 |
% |
| 467 |
% \begin{macrocode} |
| 468 |
\def\n@to@pp@friendl@dismounted{% |
| 469 |
\northeast\wg@tmpa=\pgf@x\wg@tmpb\pgf@y% |
| 470 |
\pgfpathmoveto{\pgfpoint{-\wg@tmpa}{-.5\wg@tmpb}}% |
| 471 |
\pgfpathlineto{\pgfpoint{-\wg@tmpa}{ .5\wg@tmpb}}% |
| 472 |
\pgfpathlineto{\pgfpoint{0cm} { \wg@tmpb}}% |
| 473 |
\pgfpathlineto{\pgfpoint{ \wg@tmpa}{ .5\wg@tmpb}}% |
| 474 |
\pgfpathlineto{\pgfpoint{ \wg@tmpa}{-.5\wg@tmpb}}% |
| 475 |
\pgfpathlineto{\pgfpoint{0cm} { -\wg@tmpb}}% |
| 476 |
\pgfclosepath% |
| 477 |
}% |
| 478 |
\pgfdeclareshape{natoapp6c friendly dismounted}{% |
| 479 |
\inheritsavedanchors[from=natoapp6c base] |
| 480 |
\savedanchor\northeast{% |
| 481 |
\pgf@x=1.1\n@to@pp@r% |
| 482 |
\pgf@y=1.1\n@to@pp@r} |
| 483 |
\anchor{north east}{\northeast} |
| 484 |
\anchor{north west}{\northeast\pgf@x=-\pgf@x} |
| 485 |
\anchor{south east}{\northeast\pgf@y=-\pgf@y} |
| 486 |
\anchor{south west}{\northeast\pgf@x=-\pgf@x\pgf@y=-\pgf@y} |
| 487 |
\anchor{north}{\northeast\pgf@x=0cm} |
| 488 |
\anchor{south}{\northeast\pgf@x=0cm\pgf@y=-\pgf@y} |
| 489 |
\anchor{east}{\northeast\pgf@y=0cm} |
| 490 |
\anchor{west}{\northeast\pgf@x=-\pgf@x\pgf@y=0cm} |
| 491 |
\inheritanchor[from=natoapp6c base]{upper} |
| 492 |
\inheritanchor[from=natoapp6c base]{lower} |
| 493 |
\inheritanchor[from=natoapp6c base]{left} |
| 494 |
\inheritanchor[from=natoapp6c base]{right} |
| 495 |
\inheritanchor[from=natoapp6c base]{center} |
| 496 |
\backgroundpath{% |
| 497 |
\n@to@pp@friendl@dismounted% |
| 498 |
} |
| 499 |
\behindforegroundpath{% |
| 500 |
\n@to@pp@friendl@dismounted% |
| 501 |
\pgfusepath{stroke}% |
| 502 |
} |
| 503 |
} |
| 504 |
% \end{macrocode} |
| 505 |
% \end{NatoAppFrame} |
| 506 |
% |
| 507 |
% \iffalse |
| 508 |
%</natoapp6c> |
| 509 |
% -------------------------------------------------------------------- |
| 510 |
% \fi |