gml_GRItemTrig.h

00001 // gml_GRItemTrig.h --
00002 //
00003 //    See "gml_GRItemTrig.cc".
00004 //
00005 //  Copyright (c) 2004 CLIPS-IMAG
00006 //
00007 //  See the file "gml_LicenseTerms.txt" for information on usage and redistribution
00008 //  of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00009 //
00010 //  Created on March 4, 2004 (FB).
00011 
00012 /* 
00013  * tkTrig.c --
00014  *
00015  *      This file contains a collection of trigonometry utility
00016  *      routines that are used by Tk and in particular by the
00017  *      canvas code.  It also has miscellaneous geometry functions
00018  *      used by canvases.
00019  *
00020  * Copyright (c) 1992-1994 The Regents of the University of California.
00021  * Copyright (c) 1994-1997 Sun Microsystems, Inc.
00022  *
00023  * See the file "license.terms" for information on usage and redistribution
00024  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00025  *
00026  * RCS: @(#) $Id: tkTrig.c,v 1.4 1999/12/14 06:52:33 hobbs Exp $
00027  */
00028 
00029 
00030 
00031 #ifndef __GML_GRITEMTRIG__
00032 #define __GML_GRITEMTRIG__
00033 
00034 #include "gml/ui/gml_GRItem.h"
00035 
00036 
00037 
00038 // gml_GRItem_LineToPoint --
00039 //
00040 //    gml_TGRItemParam end1Ptr[2];        Coordinates of first end-point of line.
00041 //    gml_TGRItemParam end2Ptr[2];        Coordinates of second end-point of line.
00042 //    gml_TGRItemParam pointPtr[2];       Points to coords for point.
00043 
00044 gml_TGRItemParam
00045 gml_GRItem_LineToPoint (gml_TGRItemParam end1Ptr[2], gml_TGRItemParam end2Ptr[2], gml_TGRItemParam pointPtr[2]);
00046 
00047 
00048 
00049 // gml_GRItem_LineToArea --
00050 //
00051 //    gml_TGRItemParam end1Ptr[2];        X and y coordinates for one endpoint of line.
00052 //    gml_TGRItemParam end2Ptr[2];        X and y coordinates for other endpoint of line.
00053 //    gml_TGRItemParam rectPtr[4];        Points to coords for rectangle, in the order
00054 //                                          x1, y1, x2, y2.  X1 must be no larger than x2,
00055 //                                          and y1 no larger than y2.
00056 
00057 int
00058 gml_GRItem_LineToArea (gml_TGRItemParam end1Ptr[2], gml_TGRItemParam end2Ptr[2], gml_TGRItemParam rectPtr[4]);
00059 
00060 
00061 
00062 // gml_GRItem_PolygonToPoint --
00063 //
00064 //    gml_TGRItemParam *polyPtr;          Points to an array coordinates for
00065 //                                          closed polygon:  x0, y0, x1, y1, ...
00066 //                                          The polygon may be self-intersecting.
00067 //    int numPoints;                      Total number of points at *polyPtr.
00068 //    gml_TGRItemParam *pointPtr;         Points to coords for point.
00069 
00070 gml_TGRItemParam
00071 gml_GRItem_PolygonToPoint (gml_TGRItemParam* polyPtr, int numPoints, gml_TGRItemParam* pointPtr);
00072 
00073 
00074 
00075 // gml_GRItem_PolygonToArea --
00076 //
00077 //    gml_TGRItemParam *polyPtr;          Points to an array coordinates for
00078 //                                          closed polygon:  x0, y0, x1, y1, ...
00079 //                                          The polygon may be self-intersecting.
00080 //    int numPoints;                      Total number of points at *polyPtr.
00081 //    gml_TGRItemParam *rectPtr;          Points to coords for rectangle, in the
00082 //                                          order x1, y1, x2, y2.  X1 and y1 must
00083 //                                          be lower-left corner.
00084 
00085 int
00086 gml_GRItem_PolygonToArea (gml_TGRItemParam* polyPtr, int numPoints, gml_TGRItemParam* rectPtr);
00087 
00088 
00089 #endif
Generated on Tue Jun 12 14:03:27 2007 for gml by Doxygen 1.5.2.