\section{lib/dotgen/dotsplines.c File Reference}
\label{dotsplines_8c}\index{lib/dotgen/dotsplines.\-c@{lib/dotgen/dotsplines.\-c}}
{\ttfamily \#include \char`\"{}dot.\-h\char`\"{}}\\*
Include dependency graph for dotsplines.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dotsplines_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf spline\-\_\-info\-\_\-t}
\item 
struct {\bf attr\-\_\-state\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf N\-S\-U\-B}~9		/$\ast$ number of subdivisions, {\bf re}-\/aiming {\bf splines} $\ast$/
\item 
\#define {\bf C\-H\-U\-N\-K}~128		/$\ast$ in building list of edges $\ast$/
\item 
\#define {\bf M\-I\-N\-W}~16			/$\ast$ minimum width of a {\bf box} in the {\bf edge} {\bf path} $\ast$/
\item 
\#define {\bf H\-A\-L\-F\-M\-I\-N\-W}~8
\item 
\#define {\bf F\-W\-D\-E\-D\-G\-E}~16
\item 
\#define {\bf B\-W\-D\-E\-D\-G\-E}~32
\item 
\#define {\bf M\-A\-I\-N\-G\-R\-A\-P\-H}~64
\item 
\#define {\bf A\-U\-X\-G\-R\-A\-P\-H}~128
\item 
\#define {\bf G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K}~192	/$\ast$ the O\-R of the above $\ast$/
\item 
\#define {\bf M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E}(new, old)
\item 
\#define {\bf G\-R\-O\-W\-E\-D\-G\-E\-S}~(edges = {\bf A\-L\-L\-O\-C} (n\-\_\-edges + {\bf C\-H\-U\-N\-K}, edges, {\bf edge\-\_\-t}$\ast$))
\item 
\#define {\bf L\-B\-L\-\_\-\-S\-P\-A\-C\-E}~6  /$\ast$ space between labels, in points $\ast$/
\item 
\#define {\bf N\-U\-M\-P\-T\-S}~2000
\item 
\#define {\bf D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T}
\item 
\#define {\bf R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R}(n)~({\bf N\-D\-\_\-clust}(n)==g?N\-U\-L\-L\-:\-N\-D\-\_\-clust(n))
\item 
\#define {\bf F\-U\-D\-G\-E}~4
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf int} {\bf portcmp} ({\bf port} p0, {\bf port} p1)
\item 
void {\bf dot\-\_\-splines} ({\bf graph\-\_\-t} $\ast$g)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{dotsplines.\-c@{dotsplines.\-c}!A\-U\-X\-G\-R\-A\-P\-H@{A\-U\-X\-G\-R\-A\-P\-H}}
\index{A\-U\-X\-G\-R\-A\-P\-H@{A\-U\-X\-G\-R\-A\-P\-H}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{A\-U\-X\-G\-R\-A\-P\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define A\-U\-X\-G\-R\-A\-P\-H~128}\label{dotsplines_8c_a6c759a8ea9a3609b311f038c517dd99b}


Definition at line 35 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!B\-W\-D\-E\-D\-G\-E@{B\-W\-D\-E\-D\-G\-E}}
\index{B\-W\-D\-E\-D\-G\-E@{B\-W\-D\-E\-D\-G\-E}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{B\-W\-D\-E\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define B\-W\-D\-E\-D\-G\-E~32}\label{dotsplines_8c_a54926a57c99ec9839f9bd8983b653027}


Definition at line 32 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!C\-H\-U\-N\-K@{C\-H\-U\-N\-K}}
\index{C\-H\-U\-N\-K@{C\-H\-U\-N\-K}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{C\-H\-U\-N\-K}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\-H\-U\-N\-K~128		/$\ast$ in building list of edges $\ast$/}\label{dotsplines_8c_a25022864dfc8ec428e7128282e57b136}


Definition at line 26 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T@{D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T}}
\index{D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T@{D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-O\-N\-T\-\_\-\-W\-A\-N\-T\-\_\-\-A\-N\-Y\-\_\-\-E\-N\-D\-P\-O\-I\-N\-T\-\_\-\-P\-A\-T\-H\-\_\-\-R\-E\-F\-I\-N\-E\-M\-E\-N\-T}\label{dotsplines_8c_a9e5bf48411f79d1a63e43d1cee44bdee}


Definition at line 1945 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!F\-U\-D\-G\-E@{F\-U\-D\-G\-E}}
\index{F\-U\-D\-G\-E@{F\-U\-D\-G\-E}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{F\-U\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\-U\-D\-G\-E~4}\label{dotsplines_8c_ac7352a7dfd2613809689914aa876b868}


Definition at line 2420 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!F\-W\-D\-E\-D\-G\-E@{F\-W\-D\-E\-D\-G\-E}}
\index{F\-W\-D\-E\-D\-G\-E@{F\-W\-D\-E\-D\-G\-E}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{F\-W\-D\-E\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\-W\-D\-E\-D\-G\-E~16}\label{dotsplines_8c_a37e14b8880d7feabc0d90f1133c2d622}


Definition at line 31 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K@{G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K}}
\index{G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K@{G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\-R\-A\-P\-H\-T\-Y\-P\-E\-M\-A\-S\-K~192	/$\ast$ the O\-R of the above $\ast$/}\label{dotsplines_8c_ac85840e5bc5a646d00b89030f1c297b5}


Definition at line 36 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!G\-R\-O\-W\-E\-D\-G\-E\-S@{G\-R\-O\-W\-E\-D\-G\-E\-S}}
\index{G\-R\-O\-W\-E\-D\-G\-E\-S@{G\-R\-O\-W\-E\-D\-G\-E\-S}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{G\-R\-O\-W\-E\-D\-G\-E\-S}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\-R\-O\-W\-E\-D\-G\-E\-S~(edges = {\bf A\-L\-L\-O\-C} (n\-\_\-edges + {\bf C\-H\-U\-N\-K}, edges, {\bf edge\-\_\-t}$\ast$))}\label{dotsplines_8c_a1b44e8dac200b9136afa9dc2b83f92ab}


Definition at line 82 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!H\-A\-L\-F\-M\-I\-N\-W@{H\-A\-L\-F\-M\-I\-N\-W}}
\index{H\-A\-L\-F\-M\-I\-N\-W@{H\-A\-L\-F\-M\-I\-N\-W}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{H\-A\-L\-F\-M\-I\-N\-W}]{\setlength{\rightskip}{0pt plus 5cm}\#define H\-A\-L\-F\-M\-I\-N\-W~8}\label{dotsplines_8c_a11bdbdaaf0b7865b6162c85b3b248124}


Definition at line 29 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!L\-B\-L\-\_\-\-S\-P\-A\-C\-E@{L\-B\-L\-\_\-\-S\-P\-A\-C\-E}}
\index{L\-B\-L\-\_\-\-S\-P\-A\-C\-E@{L\-B\-L\-\_\-\-S\-P\-A\-C\-E}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{L\-B\-L\-\_\-\-S\-P\-A\-C\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define L\-B\-L\-\_\-\-S\-P\-A\-C\-E~6  /$\ast$ space between labels, in points $\ast$/}\label{dotsplines_8c_a951d8ea07a0e62ce8abab370f525fed7}


Definition at line 973 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!M\-A\-I\-N\-G\-R\-A\-P\-H@{M\-A\-I\-N\-G\-R\-A\-P\-H}}
\index{M\-A\-I\-N\-G\-R\-A\-P\-H@{M\-A\-I\-N\-G\-R\-A\-P\-H}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{M\-A\-I\-N\-G\-R\-A\-P\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-I\-N\-G\-R\-A\-P\-H~64}\label{dotsplines_8c_a71fcbb037b10df3303024b91376b0e84}


Definition at line 34 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E@{M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E}}
\index{M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E@{M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-K\-E\-F\-W\-D\-E\-D\-G\-E(
\begin{DoxyParamCaption}
\item[{}]{new, }
\item[{}]{old}
\end{DoxyParamCaption}
)}\label{dotsplines_8c_a96fcdbc82d28648861116d573c122805}
{\bfseries Value\-:}
\begin{DoxyCode}
\{ \
	edge_t *newp; \
	Agedgeinfo_t *info; \(\backslash\)
        newp = \textcolor{keyword}{new}; \(\backslash\)
        info = (Agedgeinfo_t*)newp->base.data; \(\backslash\)
        *info = *(Agedgeinfo_t*)old->base.data; \(\backslash\)
        *newp = *old; \(\backslash\)
        newp->base.data = (Agrec_t*)info; \
	AGTAIL(newp) = AGHEAD(old); \
	AGHEAD(newp) = AGTAIL(old); \
	ED_tail_port(newp) = ED_head_port(old); \
	ED_head_port(newp) = ED_tail_port(old); \
	ED_edge_type(newp) = VIRTUAL; \
	ED_to_orig(newp) = old; \(\backslash\)
\}
\end{DoxyCode}


Definition at line 38 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!M\-I\-N\-W@{M\-I\-N\-W}}
\index{M\-I\-N\-W@{M\-I\-N\-W}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{M\-I\-N\-W}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-I\-N\-W~16			/$\ast$ minimum width of a {\bf box} in the {\bf edge} {\bf path} $\ast$/}\label{dotsplines_8c_a2683e456f12803d9aeb4052541491f4a}


Definition at line 28 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!N\-S\-U\-B@{N\-S\-U\-B}}
\index{N\-S\-U\-B@{N\-S\-U\-B}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{N\-S\-U\-B}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-S\-U\-B~9		/$\ast$ number of subdivisions, {\bf re}-\/aiming {\bf splines} $\ast$/}\label{dotsplines_8c_a40646ef4581e21d1eac608c36580fff3}


Definition at line 25 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!N\-U\-M\-P\-T\-S@{N\-U\-M\-P\-T\-S}}
\index{N\-U\-M\-P\-T\-S@{N\-U\-M\-P\-T\-S}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{N\-U\-M\-P\-T\-S}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-U\-M\-P\-T\-S~2000}\label{dotsplines_8c_a688d63ffed42c877b9252d4ce31e0452}


Definition at line 1726 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R@{R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R}}
\index{R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R@{R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\-E\-A\-L\-\_\-\-C\-L\-U\-S\-T\-E\-R(
\begin{DoxyParamCaption}
\item[{}]{n}
\end{DoxyParamCaption}
)~({\bf N\-D\-\_\-clust}(n)==g?N\-U\-L\-L\-:\-N\-D\-\_\-clust(n))}\label{dotsplines_8c_acb7279aded9f6d88bfa90410dd873b0f}


Definition at line 2377 of file dotsplines.\-c.



\subsection{Function Documentation}
\index{dotsplines.\-c@{dotsplines.\-c}!dot\-\_\-splines@{dot\-\_\-splines}}
\index{dot\-\_\-splines@{dot\-\_\-splines}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{dot\-\_\-splines}]{\setlength{\rightskip}{0pt plus 5cm}void dot\-\_\-splines (
\begin{DoxyParamCaption}
\item[{{\bf graph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{dotsplines_8c_ac61e86785232d37044f98a6e7a9138e3}


Definition at line 519 of file dotsplines.\-c.

\index{dotsplines.\-c@{dotsplines.\-c}!portcmp@{portcmp}}
\index{portcmp@{portcmp}!dotsplines.c@{dotsplines.\-c}}
\subsubsection[{portcmp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} portcmp (
\begin{DoxyParamCaption}
\item[{{\bf port}}]{p0, }
\item[{{\bf port}}]{p1}
\end{DoxyParamCaption}
)}\label{dotsplines_8c_a5ceef4ed82c73dcd106a04ab341fd6e1}


Definition at line 116 of file dotsplines.\-c.



References port\-::defined, F\-A\-L\-S\-E, port\-::p, pointf\-\_\-s\-::x, and pointf\-\_\-s\-::y.

