aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/chain_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/chain_8h-source.html')
-rw-r--r--docs/doxygen/nel/chain_8h-source.html337
1 files changed, 337 insertions, 0 deletions
diff --git a/docs/doxygen/nel/chain_8h-source.html b/docs/doxygen/nel/chain_8h-source.html
new file mode 100644
index 00000000..ec0d6fea
--- /dev/null
+++ b/docs/doxygen/nel/chain_8h-source.html
@@ -0,0 +1,337 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>chain.h</h1><a href="chain_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_CHAIN_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_CHAIN_H</font>
+00028 <font class="preprocessor"></font>
+00029 <font class="preprocessor">#include &lt;vector&gt;</font>
+00030 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="vector_8h.html">nel/misc/vector.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="vector__2s_8h.html">pacs/vector_2s.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="file_8h.html">nel/misc/file.h</a>"</font>
+00034
+00035 <font class="keyword">namespace </font>NLPACS
+00036 {
+00037 <font class="keyword">class </font>COrderedChain;
+00038
+<a name="l00048"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html">00048</a> <font class="keyword">class </font>COrderedChain3f
+00049 {
+00050 <font class="keyword">protected</font>:
+<a name="l00051"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#l0">00051</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1COrderedChain3f.html#l0">CChain</a>;
+<a name="l00052"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#l1">00052</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1COrderedChain3f.html#l1">CRetrievableSurface</a>;
+00053
+<a name="l00055"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">00055</a> std::vector&lt;NLMISC::CVector&gt; <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>;
+00056
+<a name="l00058"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#n1">00058</a> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n1">_Forward</a>;
+00059
+<a name="l00061"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#n2">00061</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n2">_ParentId</a>;
+00062
+<a name="l00064"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#n3">00064</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n3">_IndexInParent</a>;
+00065
+00066 <font class="keyword">public</font>:
+<a name="l00068"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a0">00068</a> <font class="keyword">const</font> std::vector&lt;NLMISC::CVector&gt; &amp;<a class="code" href="classNLPACS_1_1COrderedChain3f.html#a0">getVertices</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>; }
+00069
+<a name="l00071"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a1">00071</a> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a1">isForward</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n1">_Forward</a>; }
+00072
+<a name="l00074"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a2">00074</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a2">getParentId</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n2">_ParentId</a>; }
+00075
+<a name="l00077"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a3">00077</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a3">getIndexInParent</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n3">_IndexInParent</a>; }
+00078
+<a name="l00080"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a4">00080</a> <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;<a class="code" href="classNLPACS_1_1COrderedChain3f.html#a4">operator[] </a>(uint n)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>[n]; }
+00081
+00083 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a5">unpack</a>(<font class="keyword">const</font> COrderedChain &amp;ochain);
+00084
+<a name="l00086"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a6">00086</a> <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a6">translate</a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;translation)
+00087 {
+00088 uint i;
+00089 <font class="keywordflow">for</font> (i=0; i&lt;<a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>.size(); ++i)
+00090 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>[i] += translation;
+00091 }
+00092
+00093 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain3f.html#a7">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f);
+00094 };
+00095
+<a name="l00107"></a><a class="code" href="classNLPACS_1_1COrderedChain.html">00107</a> <font class="keyword">class </font>COrderedChain
+00108 {
+00109 <font class="keyword">protected</font>:
+<a name="l00110"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#l0">00110</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1COrderedChain.html#l0">CChain</a>;
+<a name="l00111"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#l1">00111</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1COrderedChain.html#l1">CRetrievableSurface</a>;
+00112
+<a name="l00114"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n0">00114</a> std::vector&lt;CVector2s&gt; <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>;
+00115
+<a name="l00117"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n1">00117</a> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n1">_Forward</a>;
+00118
+<a name="l00120"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n2">00120</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain.html#n2">_ParentId</a>;
+00121
+<a name="l00123"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n3">00123</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain.html#n3">_IndexInParent</a>;
+00124
+<a name="l00126"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n4">00126</a> <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n4">_Length</a>;
+00127
+<a name="l00129"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#n5">00129</a> CVector2s <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>, <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>;
+00130
+00131 <font class="keyword">public</font>:
+<a name="l00133"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a0">00133</a> <font class="keyword">const</font> std::vector&lt;CVector2s&gt; &amp;<a class="code" href="classNLPACS_1_1COrderedChain.html#a0">getVertices</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>; }
+00134
+<a name="l00136"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a1">00136</a> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a1">isForward</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n1">_Forward</a>; }
+00137
+<a name="l00139"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a2">00139</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain.html#a2">getParentId</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n2">_ParentId</a>; }
+00140
+<a name="l00142"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a3">00142</a> uint16 <a class="code" href="classNLPACS_1_1COrderedChain.html#a3">getIndexInParent</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n3">_IndexInParent</a>; }
+00143
+<a name="l00145"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a4">00145</a> <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a4">getLength</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n4">_Length</a>; }
+00146
+<a name="l00148"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a5">00148</a> <font class="keyword">const</font> CVector2s &amp;<a class="code" href="classNLPACS_1_1COrderedChain.html#a5">operator[] </a>(uint n)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[n]; }
+00149
+<a name="l00151"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a6">00151</a> <font class="keyword">const</font> CVector2s &amp;<a class="code" href="classNLPACS_1_1COrderedChain.html#a6">getMin</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>; };
+00152
+<a name="l00154"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a7">00154</a> <font class="keyword">const</font> CVector2s &amp;<a class="code" href="classNLPACS_1_1COrderedChain.html#a7">getMax</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>; };
+00155
+00156
+00158 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a8">translate</a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;translation);
+00159
+<a name="l00161"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a9">00161</a> <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a9">pack</a>(<font class="keyword">const</font> COrderedChain3f &amp;chain)
+00162 {
+00163 uint i;
+00164 <font class="keyword">const</font> std::vector&lt;NLMISC::CVector&gt; &amp;vertices = chain.getVertices();
+00165 <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>.resize(vertices.size());
+00166 <a class="code" href="classNLPACS_1_1COrderedChain.html#n1">_Forward</a> = chain.isForward();
+00167 <a class="code" href="classNLPACS_1_1COrderedChain.html#n2">_ParentId</a> = chain.getParentId();
+00168 <a class="code" href="classNLPACS_1_1COrderedChain.html#n3">_IndexInParent</a> = chain.getIndexInParent();
+00169 <font class="keywordflow">for</font> (i=0; i&lt;vertices.size(); ++i)
+00170 {
+00171 <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[i] = CVector2s(vertices[i]);
+00172 <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>.minof(<a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>, <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[i]);
+00173 <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>.maxof(<a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>, <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[i]);
+00174 }
+00175 }
+00176
+<a name="l00178"></a><a class="code" href="classNLPACS_1_1COrderedChain.html#a10">00178</a> <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a10">computeMinMax</a>()
+00179 {
+00180 <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a> = <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a> = CVector2s(0, 0);
+00181
+00182 <font class="keywordflow">if</font> (<a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>.empty())
+00183 <font class="keywordflow">return</font>;
+00184
+00185 <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a> = <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a> = <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[0];
+00186 uint i;
+00187 <font class="keywordflow">for</font> (i=1; i&lt;<a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>.size(); ++i)
+00188 {
+00189 <a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>.minof(<a class="code" href="classNLPACS_1_1COrderedChain.html#n5">_Min</a>, <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[i]);
+00190 <a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>.maxof(<a class="code" href="classNLPACS_1_1COrderedChain.html#n6">_Max</a>, <a class="code" href="classNLPACS_1_1COrderedChain.html#n0">_Vertices</a>[i]);
+00191 }
+00192 }
+00193
+00195 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a11">traverse</a>(sint from, sint to, <font class="keywordtype">bool</font> forward, std::vector&lt;CVector2s&gt; &amp;path) <font class="keyword">const</font>;
+00196
+00198 <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a12">distance</a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;position) <font class="keyword">const</font>;
+00199
+00201 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1COrderedChain.html#a13">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f);
+00202 };
+00203
+<a name="l00210"></a><a class="code" href="classNLPACS_1_1CChain.html">00210</a> <font class="keyword">class </font>CChain
+00211 {
+00212 <font class="keyword">protected</font>:
+<a name="l00213"></a><a class="code" href="classNLPACS_1_1CChain.html#l0">00213</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1CChain.html#l0">CRetrievableSurface</a>;
+<a name="l00214"></a><a class="code" href="classNLPACS_1_1CChain.html#l1">00214</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLPACS_1_1CChain.html#l1">CLocalRetriever</a>;
+00215
+<a name="l00217"></a><a class="code" href="classNLPACS_1_1CChain.html#n0">00217</a> std::vector&lt;uint16&gt; <a class="code" href="classNLPACS_1_1CChain.html#n0">_SubChains</a>;
+00218
+<a name="l00220"></a><a class="code" href="classNLPACS_1_1CChain.html#n1">00220</a> sint32 <a class="code" href="classNLPACS_1_1CChain.html#n1">_Left</a>;
+00221
+<a name="l00223"></a><a class="code" href="classNLPACS_1_1CChain.html#n2">00223</a> sint32 <a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>;
+00224
+<a name="l00226"></a><a class="code" href="classNLPACS_1_1CChain.html#n3">00226</a> uint16 <a class="code" href="classNLPACS_1_1CChain.html#n3">_StartTip</a>;
+<a name="l00227"></a><a class="code" href="classNLPACS_1_1CChain.html#n4">00227</a> uint16 <a class="code" href="classNLPACS_1_1CChain.html#n4">_StopTip</a>;
+00228
+<a name="l00230"></a><a class="code" href="classNLPACS_1_1CChain.html#n5">00230</a> <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CChain.html#n5">_Length</a>;
+00231
+<a name="l00232"></a><a class="code" href="classNLPACS_1_1CChain.html#n7">00232</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#n6">_LeftLoop</a>, <a class="code" href="classNLPACS_1_1CChain.html#n7">_LeftLoopIndex</a>;
+<a name="l00233"></a><a class="code" href="classNLPACS_1_1CChain.html#n9">00233</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#n8">_RightLoop</a>, <a class="code" href="classNLPACS_1_1CChain.html#n9">_RightLoopIndex</a>;
+00234
+00235 <font class="keyword">protected</font>:
+00237 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b0">make</a>(<font class="keyword">const</font> std::vector&lt;NLMISC::CVector&gt; &amp;vertices, sint32 left, sint32 right, std::vector&lt;COrderedChain&gt; &amp;chains, uint16 thisId,
+00238 std::vector&lt;COrderedChain3f&gt; &amp;fullChains);
+00239
+<a name="l00240"></a><a class="code" href="classNLPACS_1_1CChain.html#b1">00240</a> <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b1">setLoopIndexes</a>(sint32 surface, uint loop, uint loopIndex)
+00241 {
+00242 <font class="keywordflow">if</font> (<a class="code" href="classNLPACS_1_1CChain.html#n1">_Left</a> == surface)
+00243 {
+00244 <a class="code" href="classNLPACS_1_1CChain.html#n6">_LeftLoop</a> = loop;
+00245 <a class="code" href="classNLPACS_1_1CChain.html#n7">_LeftLoopIndex</a> = loopIndex;
+00246 }
+00247 <font class="keywordflow">else</font>
+00248 {
+00249 <a class="code" href="classNLPACS_1_1CChain.html#n8">_RightLoop</a> = loop;
+00250 <a class="code" href="classNLPACS_1_1CChain.html#n9">_RightLoopIndex</a> = loopIndex;
+00251 }
+00252 }
+00253
+<a name="l00254"></a><a class="code" href="classNLPACS_1_1CChain.html#b2">00254</a> <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b2">setBorderChainIndex</a>(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>) { <a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a> = <a class="code" href="classNLPACS_1_1CChain.html#d1">convertBorderChainId</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>); }
+00255
+00256 <font class="keyword">public</font>:
+00257
+<a name="l00259"></a><a class="code" href="classNLPACS_1_1CChain.html#a0">00259</a> <a class="code" href="classNLPACS_1_1CChain.html#a0">CChain</a>() : <a class="code" href="classNLPACS_1_1CChain.html#n1">_Left</a>(-1), <a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>(-1), <a class="code" href="classNLPACS_1_1CChain.html#n3">_StartTip</a>(0xffff), <a class="code" href="classNLPACS_1_1CChain.html#n4">_StopTip</a>(0xffff), <a class="code" href="classNLPACS_1_1CChain.html#n5">_Length</a>(0.0f),
+00260 <a class="code" href="classNLPACS_1_1CChain.html#n6">_LeftLoop</a>(0), <a class="code" href="classNLPACS_1_1CChain.html#n7">_LeftLoopIndex</a>(0), <a class="code" href="classNLPACS_1_1CChain.html#n8">_RightLoop</a>(0), <a class="code" href="classNLPACS_1_1CChain.html#n9">_RightLoopIndex</a>(0) {}
+00261
+<a name="l00263"></a><a class="code" href="classNLPACS_1_1CChain.html#a1">00263</a> <font class="keyword">const</font> std::vector&lt;uint16&gt; &amp;<a class="code" href="classNLPACS_1_1CChain.html#a1">getSubChains</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n0">_SubChains</a>; }
+00264
+<a name="l00266"></a><a class="code" href="classNLPACS_1_1CChain.html#a2">00266</a> uint16 <a class="code" href="classNLPACS_1_1CChain.html#a2">getSubChain</a>(uint n)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n0">_SubChains</a>[n]; }
+00267
+<a name="l00269"></a><a class="code" href="classNLPACS_1_1CChain.html#a3">00269</a> sint32 <a class="code" href="classNLPACS_1_1CChain.html#a3">getLeft</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n1">_Left</a>; }
+<a name="l00270"></a><a class="code" href="classNLPACS_1_1CChain.html#a4">00270</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#a4">getLeftLoop</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n6">_LeftLoop</a>; }
+<a name="l00271"></a><a class="code" href="classNLPACS_1_1CChain.html#a5">00271</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#a5">getLeftLoopIndex</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n7">_LeftLoopIndex</a>; }
+00272
+<a name="l00274"></a><a class="code" href="classNLPACS_1_1CChain.html#a6">00274</a> sint32 <a class="code" href="classNLPACS_1_1CChain.html#a6">getRight</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>; }
+<a name="l00275"></a><a class="code" href="classNLPACS_1_1CChain.html#a7">00275</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#a7">getRightLoop</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n8">_RightLoop</a>; }
+<a name="l00276"></a><a class="code" href="classNLPACS_1_1CChain.html#a8">00276</a> uint8 <a class="code" href="classNLPACS_1_1CChain.html#a8">getRightLoopIndex</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n9">_RightLoopIndex</a>; }
+00277
+<a name="l00279"></a><a class="code" href="classNLPACS_1_1CChain.html#a9">00279</a> <font class="keywordtype">float</font> <a class="code" href="classNLPACS_1_1CChain.html#a9">getLength</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n5">_Length</a>; }
+00280
+<a name="l00282"></a><a class="code" href="classNLPACS_1_1CChain.html#a10">00282</a> sint32 <a class="code" href="classNLPACS_1_1CChain.html#a10">getBorderChainIndex</a>()<font class="keyword"> const</font>
+00283 <font class="keyword"> </font>{
+00284 <font class="keywordflow">return</font> (<a class="code" href="classNLPACS_1_1CChain.html#d0">isBorderChainId</a>(<a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>)) ? <a class="code" href="classNLPACS_1_1CChain.html#d1">convertBorderChainId</a>(<a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>) : -1;
+00285 }
+00286
+<a name="l00288"></a><a class="code" href="classNLPACS_1_1CChain.html#d0">00288</a> <font class="keyword">static</font> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CChain.html#d0">isBorderChainId</a>(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>) { <font class="keywordflow">return</font> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> &lt;= -256; }
+00289
+<a name="l00291"></a><a class="code" href="classNLPACS_1_1CChain.html#d1">00291</a> <font class="keyword">static</font> sint32 <a class="code" href="classNLPACS_1_1CChain.html#d1">convertBorderChainId</a>(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>) { <font class="keywordflow">return</font> -(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>+256); }
+00292
+<a name="l00294"></a><a class="code" href="classNLPACS_1_1CChain.html#a11">00294</a> <font class="keywordtype">bool</font> <a class="code" href="classNLPACS_1_1CChain.html#a11">isBorderChain</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#d0">isBorderChainId</a>(<a class="code" href="classNLPACS_1_1CChain.html#n2">_Right</a>); }
+00295
+<a name="l00297"></a><a class="code" href="classNLPACS_1_1CChain.html#d2">00297</a> <font class="keyword">static</font> sint32 <a class="code" href="classNLPACS_1_1CChain.html#d2">getDummyBorderChainId</a>() { <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#d1">convertBorderChainId</a>(0); }
+00298
+<a name="l00300"></a><a class="code" href="classNLPACS_1_1CChain.html#a12">00300</a> uint16 <a class="code" href="classNLPACS_1_1CChain.html#a12">getStartTip</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n3">_StartTip</a>; }
+00301
+<a name="l00303"></a><a class="code" href="classNLPACS_1_1CChain.html#a13">00303</a> uint16 <a class="code" href="classNLPACS_1_1CChain.html#a13">getStopTip</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLPACS_1_1CChain.html#n4">_StopTip</a>; }
+00304
+00306 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#a14">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f);
+00307
+00308 <font class="keyword">protected</font>:
+00310 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b3">unify</a>(std::vector&lt;COrderedChain&gt; &amp;ochains);
+00311
+00313 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b4">setStartVector</a>(<font class="keyword">const</font> CVector2s &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>, std::vector&lt;COrderedChain&gt; &amp;ochains);
+00314
+00316 <font class="keywordtype">void</font> <a class="code" href="classNLPACS_1_1CChain.html#b5">setStopVector</a>(<font class="keyword">const</font> CVector2s &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>, std::vector&lt;COrderedChain&gt; &amp;ochains);
+00317
+00319 CVector2s <a class="code" href="classNLPACS_1_1CChain.html#b6">getStartVector</a>(std::vector&lt;COrderedChain&gt; &amp;ochains);
+00320
+00321 <font class="comment">//</font>
+00322 CVector2s <a class="code" href="classNLPACS_1_1CChain.html#b7">getStopVector</a>(std::vector&lt;COrderedChain&gt; &amp;ochains);
+00323 };
+00324
+00325
+00326
+00327
+00328
+00329 <font class="comment">//</font>
+<a name="l00330"></a><a class="code" href="classNLPACS_1_1COrderedChain3f.html#a5">00330</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> COrderedChain3f::unpack(<font class="keyword">const</font> COrderedChain &amp;chain)
+00331 {
+00332 uint i, mx;
+00333 <font class="keyword">const</font> std::vector&lt;CVector2s&gt; &amp;vertices = chain.getVertices();
+00334 mx = <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>.size();
+00335 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>.resize(vertices.size());
+00336 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n1">_Forward</a> = chain.isForward();
+00337 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n2">_ParentId</a> = chain.getParentId();
+00338 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n3">_IndexInParent</a> = chain.getIndexInParent();
+00339 <font class="keywordflow">for</font> (i=0; i&lt;vertices.size(); ++i)
+00340 {
+00341 <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>[i] = vertices[i].unpack3f(i &gt;= mx ? 0.0f : <a class="code" href="classNLPACS_1_1COrderedChain3f.html#n0">_Vertices</a>[i].<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>);
+00342 }
+00343 }
+00344
+00345 }; <font class="comment">// NLPACS</font>
+00346
+00347 <font class="preprocessor">#endif // NL_CHAIN_H</font>
+00348 <font class="preprocessor"></font>
+00349 <font class="comment">/* End of chain.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>