[opengtl-commits] [196] add top, bottom, right and left to the spec |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 196
Author: cyrille
Date: 2008-06-14 11:44:23 +0200 (Sat, 14 Jun 2008)
Log Message:
-----------
add top, bottom, right and left to the spec
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex
Added Paths:
-----------
trunk/OpenGTL/OpenShiva/doc/specification/region.pdf
trunk/OpenGTL/OpenShiva/doc/specification/region.svg
Modified: trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex
===================================================================
--- trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex 2008-06-14 09:18:44 UTC (rev 195)
+++ trunk/OpenGTL/OpenShiva/doc/specification/ShivaSpec.tex 2008-06-14 09:44:23 UTC (rev 196)
@@ -1,5 +1,6 @@
\documentclass[a4paper,10pt]{report}
\usepackage{array}
+\usepackage{graphicx}
% Title Page
\title{Shiva Language Specification}
@@ -270,7 +271,33 @@
}
\end{verbatim}
+\begin{figure*}[htp]
+ \centering
+ \includegraphics[width=0.9\textwidth,trim=0 10cm 15cm 0cm]{region.pdf}
+ \caption[]{Region.}
+ \label{fig|region}
+\end{figure*}
+
\subsubsection{Members}
+\paragraph{left, right, top and bottom}
+
+The function \verb|left|, \verb|right|, \verb|top| and \verb|bottom| return,
+respectively, the horrizontal coordinate of the left pixels and of the right
+pixels, and the vertical coordinate of the top pixels and bottom pixels.
+
+\begin{verbatim}
+ Region reg = { 1, 2, 10, 20 };
+ reg.left() == 1;
+ reg.left() == reg.x
+ reg.top() == 2;
+ reg.top() == reg.y
+ reg.right() == 20;
+ reg.right() == reg.x + reg.width - 1
+ reg.bottom() == 11;
+ reg.bottom() == reg.y + reg.height - 1
+\end{verbatim}
+
+
\paragraph{Intersect}
The intersect function will intersect the current region with an other region.
Added: trunk/OpenGTL/OpenShiva/doc/specification/region.pdf
===================================================================
(Binary files differ)
Property changes on: trunk/OpenGTL/OpenShiva/doc/specification/region.pdf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/OpenGTL/OpenShiva/doc/specification/region.svg
===================================================================
--- trunk/OpenGTL/OpenShiva/doc/specification/region.svg (rev 0)
+++ trunk/OpenGTL/OpenShiva/doc/specification/region.svg 2008-06-14 09:44:23 UTC (rev 196)
@@ -0,0 +1,298 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="1052.3622"
+ height="744.09448"
+ id="svg2"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ version="1.0"
+ sodipodi:docname="region.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
+ inkscape:export-filename="/home/cyrille/src/opengtl/src/OpenShiva/doc/specification/region.pdf.png"
+ inkscape:export-xdpi="99.937469"
+ inkscape:export-ydpi="99.937469">
+ <defs
+ id="defs4">
+ <marker
+ inkscape:stockid="Arrow2Mend"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow2Mend"
+ style="overflow:visible;">
+ <path
+ id="path3741"
+ style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+ transform="scale(0.6) rotate(180) translate(0,0)" />
+ </marker>
+ <marker
+ inkscape:stockid="Arrow2Mstart"
+ orient="auto"
+ refY="0.0"
+ refX="0.0"
+ id="Arrow2Mstart"
+ style="overflow:visible">
+ <path
+ id="path3738"
+ style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+ transform="scale(0.6) translate(0,0)" />
+ </marker>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective10" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ gridtolerance="10000"
+ guidetolerance="10"
+ objecttolerance="10"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.979899"
+ inkscape:cx="278.02048"
+ inkscape:cy="596.04111"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:window-width="1280"
+ inkscape:window-height="752"
+ inkscape:window-x="0"
+ inkscape:window-y="25">
+ <inkscape:grid
+ type="xygrid"
+ id="grid2383"
+ visible="true"
+ enabled="true" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <path
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 79.999999,84.09375 L 79.999999,264.09375 L 420.13761,264.09375 L 420.13761,84.09375 L 79.999999,84.09375 z"
+ id="rect2385" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 80.000001,104.09448 L 420.02983,104.09448 L 420.02983,104.09448 L 420.02983,104.09448 L 420.02983,104.09448"
+ id="path3158" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,124.09448 L 80.000001,124.09448"
+ id="path3160" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,144.09448 L 80.000001,144.09448"
+ id="path3162" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,164.09448 L 80,164.09448"
+ id="path3164" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,184.09448 L 80.000001,184.09448"
+ id="path3166" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,204.09448 L 80.000001,204.09448"
+ id="path3168" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 420.02983,224.09448 L 80,224.09448"
+ id="path3170" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 419.79545,244.09448 L 80.03006,244.09448"
+ id="path3172" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 100,263.91589 L 100,83.915907"
+ id="path3174" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 120,264.09448 L 120,84.094502"
+ id="path3176" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 140,264.09446 L 140,84.094482"
+ id="path3178" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 160,264.09447 L 160,84.094482"
+ id="path3180" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 180,263.91587 L 180,83.915882"
+ id="path3182" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 200,264.09446 L 200,84.094482"
+ id="path3184" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 220,264.09444 L 220,84.094462"
+ id="path3186" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 240,264.09445 L 240,84.094462"
+ id="path3188" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 260,264.09448 L 260,84.094503"
+ id="path3190" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 280,264.27307 L 280,84.273098"
+ id="path3192" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 300,264.27305 L 300,84.273078"
+ id="path3194" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 320,264.27306 L 320,84.273078"
+ id="path3196" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 340,264.09448 L 340,84.094502"
+ id="path3198" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;marker-start:url(#Arrow2Mstart);marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="M 460,84.094482 L 460,264.09448"
+ id="path3200" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;marker-start:url(#Arrow2Mstart);marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="M 420.9281,324.09448 L 81.585247,324.09448"
+ id="path5012" />
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="220"
+ y="344.09448"
+ id="text5014"><tspan
+ sodipodi:role="line"
+ id="tspan5016"
+ x="220"
+ y="344.09448">width</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="470"
+ y="174.09448"
+ id="text5018"><tspan
+ sodipodi:role="line"
+ id="tspan5020"
+ x="470"
+ y="174.09448">height</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="110"
+ y="74.094482"
+ id="text5022"><tspan
+ sodipodi:role="line"
+ id="tspan5024"
+ x="110"
+ y="74.094482">(left, top)</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="100"
+ y="294.09448"
+ id="text5034"><tspan
+ sodipodi:role="line"
+ id="tspan5036"
+ x="100"
+ y="294.09448">(left, bottom)</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="260"
+ y="294.09448"
+ id="text5038"><tspan
+ sodipodi:role="line"
+ id="tspan5040"
+ x="260"
+ y="294.09448">(bottom, top)</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="290"
+ y="74.094482"
+ id="text5042"><tspan
+ sodipodi:role="line"
+ id="tspan5044"
+ x="290"
+ y="74.094482">(right, top)</tspan></text>
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 360,264.27305 L 360,84.273058"
+ id="path5046" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 380,264.09447 L 380,84.094482"
+ id="path5048" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 400,264.09448 L 400,84.094494"
+ id="path5050" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#808080;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 410,94.094482 L 410,64.936582 L 400,64.936582"
+ id="path5054" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#808080;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 410,254.09448 L 410,283.25238 L 400,283.25238"
+ id="path5056" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#808080;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 90,254.09448 L 90,283.25238 L 99.999996,283.25238"
+ id="path5058" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#808080;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 90,94.094482 L 90,64.936582 L 99.999996,64.936582"
+ id="path5060" />
+ <text
+ xml:space="preserve"
+ style="font-size:20px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
+ x="130"
+ y="49.094482"
+ id="text5102"><tspan
+ sodipodi:role="line"
+ id="tspan5104"
+ x="130"
+ y="49.094482">(x, y)</tspan></text>
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#808080;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ d="M 90,73.252382 L 90,44.094482 L 99.999996,44.094482"
+ id="path5106" />
+ </g>
+</svg>