<HTML> <HEAD> <!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 --> <LINK rel="stylesheet" href="ciao.css" type="text/css"> <TITLE>The Ciao Prolog System - poly_class (library)</TITLE> </HEAD> <BODY> Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_140.html">previous</A>, <A HREF="ciao_142.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>. <P><HR><P> <H1><A NAME="SEC587" HREF="ciao_toc.html#TOC587">poly_class (library)</A></H1> <P> <A NAME="IDX6513"></A> <P> <STRONG>Author(s):</STRONG> Montserrat Urraca. <P> <STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST) <P> <STRONG>Version of last change:</STRONG> 1.9#187 (2003/12/10, 21:19:39 CET) <UL> <LI><A HREF="ciao_141.html#SEC588">Usage and interface (poly_class)</A> <LI><A HREF="ciao_141.html#SEC589">Documentation on exports (poly_class)</A> </UL> <H2><A NAME="SEC588" HREF="ciao_toc.html#TOC588">Usage and interface (<CODE>poly_class</CODE>)</A></H2> <div class="cartouche"> <UL> <LI><STRONG>Library usage:</STRONG> <CODE>:- use_module(library(poly_class)).</CODE> <LI><STRONG>Exports:</STRONG> <UL> <LI><EM>Predicates:</EM> <A NAME="IDX6514"></A> <CODE>vertices/1</CODE>, <A NAME="IDX6515"></A> <CODE>outline_color/1</CODE>. </UL> <LI><STRONG>Other modules used:</STRONG> <UL> <LI><EM>System library modules:</EM> <A NAME="IDX6516"></A> <CODE>objects/objects_rt</CODE>, <A NAME="IDX6517"></A> <CODE>lists</CODE>. </UL> </UL> </div class="cartouche"> <H2><A NAME="SEC589" HREF="ciao_toc.html#TOC589">Documentation on exports (<CODE>poly_class</CODE>)</A></H2> <P> <A NAME="IDX6518"></A> <A NAME="IDX6519"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>vertices/1:</B> <DD><A NAME="IDX6520"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>vertices(+ListofPoints)</CODE> <UL> <LI><EM>Description:</EM> The arguments of the list specify the coordinates for three or more points that define a closed polygon. The first and last points may be the same. After the coordinates there may be any number of option-value pairs, each of which sets one of the configu- ration options for the item. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+ListofPoints</CODE> is a list. (<CODE>basic_props:list/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>vertices(-ListofPoints)</CODE> <UL> <LI><EM>Description:</EM> Gets the list of vertices of the polygon. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-ListofPoints</CODE> is a list. (<CODE>basic_props:list/1</CODE>) </UL> </DL> <P> <A NAME="IDX6521"></A> <A NAME="IDX6522"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>outline_color/1:</B> <DD><A NAME="IDX6523"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>outline_color(+Color)</CODE> <UL> <LI><EM>Description:</EM> <CODE>Color</CODE> specifies the color to be used for drawing the polygon's outline. This option defaults to black. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+Color</CODE> is currently instantiated to an atom. (<CODE>term_typing:atom/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>outline_color(-Color)</CODE> <UL> <LI><EM>Description:</EM> Gets poly's outline <CODE>Color</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-Color</CODE> is currently instantiated to an atom. (<CODE>term_typing:atom/1</CODE>) </UL> </DL> <P><HR><P> Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_140.html">previous</A>, <A HREF="ciao_142.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>. </BODY> </HTML>