aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03319.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a03319.html')
-rw-r--r--docs/doxygen/nel/a03319.html791
1 files changed, 791 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03319.html b/docs/doxygen/nel/a03319.html
new file mode 100644
index 00000000..2b4b1fab
--- /dev/null
+++ b/docs/doxygen/nel/a03319.html
@@ -0,0 +1,791 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLMISC::CRect class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CRect Class Reference</h1><code>#include &lt;<a class="el" href="a06320.html">rect.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+This class describe an integer 2d rectangle. <dl compact><dt><b>Author:</b></dt><dd>Cyril Corvazier <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00043">43</a> of file <a class="el" href="a06320.html">rect.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta0">bottom</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the higher Y coordinate of the box + 1. <a href="#NLMISC_1_1CRecta0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta1">CRect</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a573">y</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor with a single 2d point. Build a rectangle with width and height = 0. <a href="#NLMISC_1_1CRecta1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta2">CRect</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a573">y</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a632">width</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a633">height</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor with a 2d point, a width and a height. <a href="#NLMISC_1_1CRecta2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta3">CRect</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">default ctor <a href="#NLMISC_1_1CRecta3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta4">extend</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a573">y</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Extend the box for including the point which coordinates are passed in parameter. <a href="#NLMISC_1_1CRecta4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta5">getXCenter</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the x center of the rectangle. <a href="#NLMISC_1_1CRecta5"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta6">getYCenter</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the y center of the rectangle. <a href="#NLMISC_1_1CRecta6"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta7">left</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the lower X coordinate of the box. <a href="#NLMISC_1_1CRecta7"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta8">right</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the higher X coordinate of the box + 1. <a href="#NLMISC_1_1CRecta8"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta9">set</a> (<a class="el" href="a04558.html#a10">sint32</a> x0, <a class="el" href="a04558.html#a10">sint32</a> y0, <a class="el" href="a04558.html#a10">sint32</a> x1, <a class="el" href="a04558.html#a10">sint32</a> y1)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set from 2 2d points. <a href="#NLMISC_1_1CRecta9"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta10">setWH</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a573">y</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a632">width</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a633">height</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set from a 2d point, a width and a height. <a href="#NLMISC_1_1CRecta10"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecta11">top</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the lower Y coordinate of the box. <a href="#NLMISC_1_1CRecta11"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecto0">Height</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Height of the rect. <a href="#NLMISC_1_1CRecto0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecto1">Width</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Width of the rect. <a href="#NLMISC_1_1CRecto1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecto2">X</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lower X coordinate of the rect. <a href="#NLMISC_1_1CRecto2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03319.html#NLMISC_1_1CRecto3">Y</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lower Y coordinate of the rect. <a href="#NLMISC_1_1CRecto3"></a><br><br></td></tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CRecta3" doxytag="NLMISC::CRect::CRect" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CRect::CRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+default ctor
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00047">47</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+<div class="fragment"><pre>00047 {}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta2" doxytag="NLMISC::CRect::CRect" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CRect::CRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>width</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>height</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor with a 2d point, a width and a height.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06319.html#l00091">91</a> of file <a class="el" href="a06319.html">rect.cpp</a>.
+<p>
+References <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a06319.html#l00055">setWH()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05646.html#l01013">width</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00092 {
+00093 <a class="code" href="a03319.html#NLMISC_1_1CRecta10">setWH</a>(x, y, width, height);
+00094 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta1" doxytag="NLMISC::CRect::CRect" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CRect::CRect </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor with a single 2d point. Build a rectangle with width and height = 0.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00053">53</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00054 {
+00055 <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>=<a class="code" href="a04223.html#a572">x</a>;
+00056 <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>=<a class="code" href="a04223.html#a573">y</a>;
+00057 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>=0;
+00058 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>=0;
+00059 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CRecta0" doxytag="NLMISC::CRect::bottom" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::bottom </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the higher Y coordinate of the box + 1.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00089">89</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>.
+<p>
+<div class="fragment"><pre>00090 {
+00091 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>+(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>;
+00092 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta4" doxytag="NLMISC::CRect::extend" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CRect::extend </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Extend the box for including the point which coordinates are passed in parameter.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06319.html#l00035">35</a> of file <a class="el" href="a06319.html">rect.cpp</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+<div class="fragment"><pre>00036 {
+00037 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a>&lt;<a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>)
+00038 {
+00039 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>+=(<a class="code" href="a04558.html#a11">uint32</a>)(<a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>-<a class="code" href="a04223.html#a572">x</a>);
+00040 <a class="code" href="a04223.html#a572">x</a>=<a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>;
+00041 }
+00042 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a>&gt;=(<a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>+(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>))
+00043 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>=(<a class="code" href="a04558.html#a11">uint32</a>)(<a class="code" href="a04223.html#a572">x</a>-<a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>+1);
+00044 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a573">y</a>&lt;<a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>)
+00045 {
+00046 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>+=(<a class="code" href="a04558.html#a11">uint32</a>)(<a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>-<a class="code" href="a04223.html#a573">y</a>);
+00047 <a class="code" href="a04223.html#a573">y</a>=<a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>;
+00048 }
+00049 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a573">y</a>&gt;=(<a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>+(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>))
+00050 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>=(<a class="code" href="a04558.html#a11">uint32</a>)(<a class="code" href="a04223.html#a573">y</a>-<a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>+1);
+00051 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta5" doxytag="NLMISC::CRect::getXCenter" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::getXCenter </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Compute the x center of the rectangle.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00095">95</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+<div class="fragment"><pre>00096 {
+00097 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>+(<a class="code" href="a04558.html#a10">sint32</a>)(<a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>&gt;&gt;1);
+00098 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta6" doxytag="NLMISC::CRect::getYCenter" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::getYCenter </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Compute the y center of the rectangle.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00101">101</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+<div class="fragment"><pre>00102 {
+00103 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>+(<a class="code" href="a04558.html#a10">sint32</a>)(<a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>&gt;&gt;1);
+00104 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta7" doxytag="NLMISC::CRect::left" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::left </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the lower X coordinate of the box.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00071">71</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+<div class="fragment"><pre>00072 {
+00073 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>;
+00074 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta8" doxytag="NLMISC::CRect::right" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::right </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the higher X coordinate of the box + 1.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00077">77</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>.
+<p>
+<div class="fragment"><pre>00078 {
+00079 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>+(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>;
+00080 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta9" doxytag="NLMISC::CRect::set" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CRect::set </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x0</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y0</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x1</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y1</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set from 2 2d points.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06319.html#l00065">65</a> of file <a class="el" href="a06319.html">rect.cpp</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+Referenced by <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
+<p>
+<div class="fragment"><pre>00066 {
+00067 <span class="keywordflow">if</span> (x0 &lt; x1)
+00068 {
+00069 <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a> = x0;
+00070 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a> = x1 - x0;
+00071 }
+00072 <span class="keywordflow">else</span>
+00073 {
+00074 <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a> = x1;
+00075 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a> = y0 - y1;
+00076 }
+00077
+00078 <span class="keywordflow">if</span> (y0 &lt; y1)
+00079 {
+00080 <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a> = y0;
+00081 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a> = y1 - y0;
+00082 }
+00083 <span class="keywordflow">else</span>
+00084 {
+00085 <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a> = y1;
+00086 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a> = y0 - y1;
+00087 }
+00088 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta10" doxytag="NLMISC::CRect::setWH" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CRect::setWH </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>width</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>height</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set from a 2d point, a width and a height.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06319.html#l00055">55</a> of file <a class="el" href="a06319.html">rect.cpp</a>.
+<p>
+References <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05646.html#l01013">width</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a06319.html#l00091">CRect()</a>.
+<p>
+<div class="fragment"><pre>00056 {
+00057 <a class="code" href="a03319.html#NLMISC_1_1CRecto2">X</a>=<a class="code" href="a04223.html#a572">x</a>;
+00058 <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>=<a class="code" href="a04223.html#a573">y</a>;
+00059 <a class="code" href="a03319.html#NLMISC_1_1CRecto1">Width</a>=<a class="code" href="a04223.html#a632">width</a>;
+00060 <a class="code" href="a03319.html#NLMISC_1_1CRecto0">Height</a>=<a class="code" href="a04223.html#a633">height</a>;
+00061 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecta11" doxytag="NLMISC::CRect::top" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> NLMISC::CRect::top </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the lower Y coordinate of the box.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00083">83</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00099">sint32</a>.
+<p>
+<div class="fragment"><pre>00084 {
+00085 <span class="keywordflow">return</span> <a class="code" href="a03319.html#NLMISC_1_1CRecto3">Y</a>;
+00086 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CRecto0" doxytag="NLMISC::CRect::Height" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03319.html#NLMISC_1_1CRecto0">NLMISC::CRect::Height</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Height of the rect.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00116">116</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a05642.html#l02164">NL3D::CDriverGL::getBuffer()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, <a class="el" href="a05642.html#l02157">NL3D::CDriverGL::getZBuffer()</a>, <a class="el" href="a05642.html#l02143">NL3D::CDriverGL::getZBufferPart()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecto1" doxytag="NLMISC::CRect::Width" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03319.html#NLMISC_1_1CRecto1">NLMISC::CRect::Width</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Width of the rect.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00113">113</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a05642.html#l02164">NL3D::CDriverGL::getBuffer()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, <a class="el" href="a05642.html#l02157">NL3D::CDriverGL::getZBuffer()</a>, <a class="el" href="a05642.html#l02143">NL3D::CDriverGL::getZBufferPart()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecto2" doxytag="NLMISC::CRect::X" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a03319.html#NLMISC_1_1CRecto2">NLMISC::CRect::X</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Lower X coordinate of the rect.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00107">107</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, <a class="el" href="a05642.html#l02143">NL3D::CDriverGL::getZBufferPart()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CRecto3" doxytag="NLMISC::CRect::Y" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a03319.html#NLMISC_1_1CRecto3">NLMISC::CRect::Y</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Lower Y coordinate of the rect.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06320.html#l00110">110</a> of file <a class="el" href="a06320.html">rect.h</a>.
+<p>
+Referenced by <a class="el" href="a05642.html#l02111">NL3D::CDriverGL::clipRect()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, <a class="el" href="a05642.html#l02143">NL3D::CDriverGL::getZBufferPart()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06320.html">rect.h</a><li><a class="el" href="a06319.html">rect.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:31:21 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>