File: types.tex

package info (click to toggle)
graphviz 14.0.5-2
  • links: PTS
  • area: main
  • in suites: forky
  • size: 139,388 kB
  • sloc: ansic: 141,938; cpp: 11,957; python: 7,766; makefile: 4,043; yacc: 3,030; xml: 2,972; tcl: 2,495; sh: 1,388; objc: 1,159; java: 560; lex: 423; perl: 243; awk: 156; pascal: 139; php: 58; ruby: 49; cs: 31; sed: 1
file content (51 lines) | stat: -rw-r--r-- 2,152 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\section{Some basic types and their string representations}
\label{sec:types}
A {\tt point} type is the structure
\begin{verbatim}
struct {
  int x, y;
}
\end{verbatim}
The fields can either give an absolute position or represent a
vector displacement.
A {\tt pointf} type is the same, with {\tt int} replaced with {\tt double}.
A {\tt box} type is the structure
\begin{verbatim}
struct {
  point LL, UR;
}
\end{verbatim}
representing a rectangle. The {\tt LL} gives the coordinates of the
lower-left corner, while the {\tt UR} is the upper-right corner.
A {\tt boxf} type is the same, with {\tt point} replaced with {\tt pointf}.

The following gives the accepted string representations 
corresponding to values of the given types. 
Whitespace is ignored when converting these values from strings
to their internal representations. 

\begin{description}
\item[{\tt point}] {\tt "x,y"} where {\tt (x,y)} are the integer coordinates 
of a position in points (72 points = 1 inch).
\item[{\tt pointf}] {\tt "x,y"} where {\tt (x,y)} are the 
floating-point coordinates of a position in inches.
\item[{\tt rectangle}] {\tt "llx,lly,urx,ury"} 
where {\tt (llx,lly)} is the lower left corner
of the rectangle and {\tt (urx,ury)} is the upper right corner, 
all in integer points.
\item[{\tt splineType}] A semicolon-separated list of {\tt spline} values.
\item[{\tt spline}] This type has an optional end point, an optional start
point, and a space-separated list of $N = 3n+1$ points for some positive 
integer $n$. An end point consists of a {\tt point} preceded by {\tt "e,"};
a start point consists of a {\tt point} preceded by {\tt "s,"}. The
optional components are separated by spaces.  

The terminating list of points $p_1,p_2,\ldots ,p_N$ gives the control points 
of a B-spline.
If a start point is given, this indicates the presence of an arrowhead.
The start point touches one node of the corresponding edge 
and the direction of the arrowhead is given by the vector from $p_1$
to the start point. If the start point is absent, the point $p_1$
will touch the node. The analogous interpretation holds for an end point
and $p_N$.
\end{description}