<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 - oval_class (library)</TITLE> </HEAD> <BODY> Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_139.html">previous</A>, <A HREF="ciao_141.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="SEC584" HREF="ciao_toc.html#TOC584">oval_class (library)</A></H1> <P> <A NAME="IDX6491"></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#139 (2003/12/4, 17:34:21 CET) <UL> <LI><A HREF="ciao_140.html#SEC585">Usage and interface (oval_class)</A> <LI><A HREF="ciao_140.html#SEC586">Documentation on exports (oval_class)</A> </UL> <H2><A NAME="SEC585" HREF="ciao_toc.html#TOC585">Usage and interface (<CODE>oval_class</CODE>)</A></H2> <div class="cartouche"> <UL> <LI><STRONG>Library usage:</STRONG> <CODE>:- use_module(library(oval_class)).</CODE> <LI><STRONG>Exports:</STRONG> <UL> <LI><EM>Predicates:</EM> <A NAME="IDX6492"></A> <CODE>coord/4</CODE>, <A NAME="IDX6493"></A> <CODE>width/1</CODE>, <A NAME="IDX6494"></A> <CODE>height/1</CODE>, <A NAME="IDX6495"></A> <CODE>center/2</CODE>, <A NAME="IDX6496"></A> <CODE>outline_color/1</CODE>. </UL> <LI><STRONG>Other modules used:</STRONG> <UL> <LI><EM>System library modules:</EM> <A NAME="IDX6497"></A> <CODE>objects/objects_rt</CODE>. </UL> </UL> </div class="cartouche"> <H2><A NAME="SEC586" HREF="ciao_toc.html#TOC586">Documentation on exports (<CODE>oval_class</CODE>)</A></H2> <P> <A NAME="IDX6498"></A> <A NAME="IDX6499"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>coord/4:</B> <DD><A NAME="IDX6500"></A> <P> <STRONG>Usage:</STRONG> <CODE>coord(+X1, +Y1, +X2, +Y2)</CODE> <UL> <LI><EM>Description:</EM> <CODE>X1</CODE>, <CODE>Y1</CODE>, <CODE>X2</CODE>, and <CODE>Y2</CODE> give the coordinates of two diagonally opposite corners of a rectangular region enclosing the oval. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+X1</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) <CODE>+Y1</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) <CODE>+X2</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) <CODE>+Y2</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> </DL> <P> <A NAME="IDX6501"></A> <A NAME="IDX6502"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>width/1:</B> <DD><A NAME="IDX6503"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>width(+Width)</CODE> <UL> <LI><EM>Description:</EM> Specifies shape's <CODE>Width</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+Width</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>width(-Width)</CODE> <UL> <LI><EM>Description:</EM> Gets shape's <CODE>Width</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-Width</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> </DL> <P> <A NAME="IDX6504"></A> <A NAME="IDX6505"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>height/1:</B> <DD><A NAME="IDX6506"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>height(+Height)</CODE> <UL> <LI><EM>Description:</EM> Specifies shape's <CODE>Heigh</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+Height</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>height(-Height)</CODE> <UL> <LI><EM>Description:</EM> Gets shape's <CODE>Height</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-Height</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> </DL> <P> <A NAME="IDX6507"></A> <A NAME="IDX6508"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>center/2:</B> <DD><A NAME="IDX6509"></A> <P> <STRONG>Usage 1:</STRONG> <CODE>center(+X, +Y)</CODE> <UL> <LI><EM>Description:</EM> Specifies shape's center with <CODE>X</CODE> and <CODE>Y</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>+X</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) <CODE>+Y</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> <P> <STRONG>Usage 2:</STRONG> <CODE>center(-X, -Y)</CODE> <UL> <LI><EM>Description:</EM> Gets shape's center with <CODE>X</CODE> and <CODE>Y</CODE>. <LI><EM>Call and exit should be <EM>compatible</EM> with:</EM> <CODE>-X</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) <CODE>-Y</CODE> is an integer. (<CODE>basic_props:int/1</CODE>) </UL> </DL> <P> <A NAME="IDX6510"></A> <A NAME="IDX6511"></A> <DL> <DT><span class="define">PREDICATE:</span> <B>outline_color/1:</B> <DD><A NAME="IDX6512"></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 oval'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 oval'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_139.html">previous</A>, <A HREF="ciao_141.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>. </BODY> </HTML>