1 /*
2  * tkgeomapInt.h --
3  *
4  *	Declarations for things used internally by the Tkgeomap
5  *	procedures but not exported outside the module.
6  *
7  * Copyright (c) 2004 Gordon D. Carrie. All rights reserved.
8  *
9  * Licensed under the Open Software License version 2.1
10  *
11  * Please address questions and feedback to user0@tkgeomap.org
12  *
13  * @(#) $Id: tkgeomapInt.h,v 1.4 2004/09/22 21:23:25 tkgeomap Exp $
14  */
15 
16 #ifndef _TKGEOMAPINT
17 #define _TKGEOMAPINT
18 
19 #include "tkgeomap.h"
20 
21 /*
22  * The following declarations are for functions defined in tkTrig.c.
23  */
24 
25 int		TkgeomapLineToArea _ANSI_ARGS_((double end1Ptr[],
26 				double end2Ptr[], double rectPtr[]));
27 double		TkgeomapLineToPoint _ANSI_ARGS_((double end1Ptr[],
28 				double end2Ptr[], double pointPtr[]));
29 int		TkgeomapMakeBezierCurve _ANSI_ARGS_((Tk_Canvas canvas,
30 				double * pointPtr, int numPoints,
31 				int numSteps, XPoint xPoints[],
32 				double dblPoints[]));
33 void		TkgeomapMakeBezierPostscript _ANSI_ARGS_((
34 				Tcl_Interp * interp, Tk_Canvas canvas,
35 				double * pointPtr, int numPoints));
36 int		TkgeomapThickPolyLineToArea _ANSI_ARGS_((double * coordPtr,
37 				int numPoints, double width, int capStyle,
38 				int joinStyle, double * rectPtr));
39 double		TkgeomapPolygonToPoint _ANSI_ARGS_((double *polyPtr,
40 	    			int numPoints, double *pointPtr));
41 int		TkgeomapPolygonToArea _ANSI_ARGS_((double *polyPtr,
42 	    			int numPoints, register double *rectPtr));
43 void		TkgeomapBezierScreenPoints _ANSI_ARGS_((Tk_Canvas canvas,
44 	    			double control[], int numSteps,
45 				register XPoint *xPointPtr));
46 void		TkgeomapBezierPoints _ANSI_ARGS_((double control[],
47 	    			int numSteps, register double *coordPtr));
48 int		TkgeomapMakeBezierCurve _ANSI_ARGS_((Tk_Canvas canvas,
49 	    			double *pointPtr, int numPoints, int numSteps,
50 				XPoint xPoints[], double dblPoints[]));
51 void		TkgeomapMakeBezierPostscript _ANSI_ARGS_((Tcl_Interp *interp,
52 	    			Tk_Canvas canvas, double *pointPtr,
53 				int numPoints));
54 
55 #endif
56