diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02807.html | 587 |
1 files changed, 587 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02807.html b/docs/doxygen/nel/a02807.html new file mode 100644 index 00000000..49986961 --- /dev/null +++ b/docs/doxygen/nel/a02807.html @@ -0,0 +1,587 @@ +<!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: NL3D::CLodCharacterShapeBank 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CLodCharacterShapeBank Class Reference</h1><code>#include <<a class="el" href="a05940.html">lod_character_shape_bank.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +A Bank of <a class="el" href="a02801.html">CLodCharacterShape</a>. Can contains at max 65536 shapes. You must call <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_1">compile()</a> after changing the shape bank. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00044">44</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.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> </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanka0">CLodCharacterShapeBank</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CLodCharacterShapeBanka0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanka1">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">serial <a href="#NL3D_1_1CLodCharacterShapeBanka1"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">build process</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_0">addShape</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Just add a shape to the bank. Use <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_4">getShapeFullAcces()</a> to fill it. return id of the shape. <a href="#NL3D_1_1CLodCharacterShapeBankz356_0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_1">compile</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_2">getNumShapes</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get number of shape. This is also the MaxID+1. <a href="#NL3D_1_1CLodCharacterShapeBankz356_2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02801.html">CLodCharacterShape</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_3">getShape</a> (<a class="el" href="a04558.html#a11">uint32</a> shapeId) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a const ref on a shape. Ptr not valid after <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_0">addShape()</a>. NULL if not found. <a href="#NL3D_1_1CLodCharacterShapeBankz356_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02801.html">CLodCharacterShape</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_4">getShapeFullAcces</a> (<a class="el" href="a04558.html#a11">uint32</a> shapeId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_5">getShapeIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_6">reset</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">reset the shapeBank <a href="#NL3D_1_1CLodCharacterShapeBankz356_6"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef TStrIdMap::const_iterator </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky0">CstItStrIdMap</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef TStrIdMap::iterator </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky1">ItStrIdMap</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map< std::string,<br> + <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky2">TStrIdMap</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Map name To Id. <a href="#NL3D_1_1CLodCharacterShapeBanky2"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a02801.html">CLodCharacterShape</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Array of shape. <a href="#NL3D_1_1CLodCharacterShapeBankr0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky2">TStrIdMap</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Map of shape id. <a href="#NL3D_1_1CLodCharacterShapeBankr1"></a><br><br></td></tr> +</table> +<hr><h2>Member Typedef Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBanky0" doxytag="NL3D::CLodCharacterShapeBank::CstItStrIdMap" ></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"> typedef TStrIdMap::const_iterator <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky0">NL3D::CLodCharacterShapeBank::CstItStrIdMap</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00093">93</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBanky1" doxytag="NL3D::CLodCharacterShapeBank::ItStrIdMap" ></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"> typedef TStrIdMap::iterator <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky1">NL3D::CLodCharacterShapeBank::ItStrIdMap</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00092">92</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBanky2" doxytag="NL3D::CLodCharacterShapeBank::TStrIdMap" ></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"> typedef std::map<std::string, <a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky2">NL3D::CLodCharacterShapeBank::TStrIdMap</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Map name To Id. +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00091">91</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBanka0" doxytag="NL3D::CLodCharacterShapeBank::CLodCharacterShapeBank" ></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"> NL3D::CLodCharacterShapeBank::CLodCharacterShapeBank </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00041">41</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +<div class="fragment"><pre>00042 { +00043 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_0" doxytag="NL3D::CLodCharacterShapeBank::addShape" ></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> NL3D::CLodCharacterShapeBank::addShape </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Just add a shape to the bank. Use <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_4">getShapeFullAcces()</a> to fill it. return id of the shape. +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00053">53</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00054 { +00055 <span class="comment">// Alloc a new shape</span> +00056 <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.resize(<a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size()+1); +00057 +00058 <span class="keywordflow">return</span> <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size()-1; +00059 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_1" doxytag="NL3D::CLodCharacterShapeBank::compile" ></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"> bool NL3D::CLodCharacterShapeBank::compile </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +re-compile the shape Bank. This must be called after changing a shape, or after adding all your shapes. It return false if same names have been found, but it is still correctly builded. +<p> +Definition at line <a class="el" href="a05939.html#l00090">90</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00091 { +00092 <span class="keywordtype">bool</span> error= <span class="keyword">false</span>; +00093 +00094 <span class="comment">// clear the map</span> +00095 <a class="code" href="a05378.html#a381">contReset</a>(_ShapeMap); +00096 +00097 <span class="comment">// build the map</span> +00098 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0; i<<a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size(); i++) +00099 { +00100 <span class="keyword">const</span> string &name= <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>[i].getName(); +00101 <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky1">ItStrIdMap</a> it= <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a>.find(name); +00102 <span class="keywordflow">if</span>(it == <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a>.end()) +00103 <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a>.insert(make_pair(name, i)); +00104 <span class="keywordflow">else</span> +00105 { +00106 error= <span class="keyword">true</span>; +00107 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"Found a CLod with same name in the bank: %s"</span>, name.c_str()); +00108 } +00109 } +00110 +00111 <span class="keywordflow">return</span> error; +00112 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_2" doxytag="NL3D::CLodCharacterShapeBank::getNumShapes" ></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#a15">uint</a> NL3D::CLodCharacterShapeBank::getNumShapes </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get number of shape. This is also the MaxID+1. +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00115">115</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00116 { +00117 <span class="keywordflow">return</span> <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size(); +00118 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_3" doxytag="NL3D::CLodCharacterShapeBank::getShape" ></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"> const <a class="el" href="a02801.html">CLodCharacterShape</a> * NL3D::CLodCharacterShapeBank::getShape </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>shapeId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a const ref on a shape. Ptr not valid after <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_0">addShape()</a>. NULL if not found. +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00072">72</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05935.html#l00194">NL3D::CLodCharacterManager::getShape()</a>. +<p> +<div class="fragment"><pre>00073 { +00074 <span class="keywordflow">if</span>(shapeId >= <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size()) +00075 <span class="keywordflow">return</span> NULL; +00076 <span class="keywordflow">else</span> +00077 <span class="keywordflow">return</span> &<a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>[shapeId]; +00078 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_4" doxytag="NL3D::CLodCharacterShapeBank::getShapeFullAcces" ></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="a02801.html">CLodCharacterShape</a> * NL3D::CLodCharacterShapeBank::getShapeFullAcces </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>shapeId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a ptr on a shape. Ptr not valid after <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_0">addShape()</a>. NULL if not found May be used for example to replace the shape +<p> +Definition at line <a class="el" href="a05939.html#l00081">81</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00082 { +00083 <span class="keywordflow">if</span>(shapeId >= <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>.size()) +00084 <span class="keywordflow">return</span> NULL; +00085 <span class="keywordflow">else</span> +00086 <span class="keywordflow">return</span> &<a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">_ShapeArray</a>[shapeId]; +00087 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_5" doxytag="NL3D::CLodCharacterShapeBank::getShapeIdByName" ></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> NL3D::CLodCharacterShapeBank::getShapeIdByName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a shapeId by its name. -1 if not found. Possible Values are in 0-65535 Call valid only if <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankz356_1">compile()</a> has been correctly called +<p> +Definition at line <a class="el" href="a05939.html#l00062">62</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00063 { +00064 <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBanky0">CstItStrIdMap</a> it= <a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a>.find(name); +00065 <span class="keywordflow">if</span>(it==<a class="code" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">_ShapeMap</a>.end()) +00066 <span class="keywordflow">return</span> -1; +00067 <span class="keywordflow">else</span> +00068 <span class="keywordflow">return</span> it->second; +00069 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankz356_6" doxytag="NL3D::CLodCharacterShapeBank::reset" ></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 NL3D::CLodCharacterShapeBank::reset </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +reset the shapeBank +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00046">46</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>. +<p> +<div class="fragment"><pre>00047 { +00048 <a class="code" href="a05378.html#a381">contReset</a>(_ShapeArray); +00049 <a class="code" href="a05378.html#a381">contReset</a>(_ShapeMap); +00050 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBanka1" doxytag="NL3D::CLodCharacterShapeBank::serial" ></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 NL3D::CLodCharacterShapeBank::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +serial +<p> + +<p> +Definition at line <a class="el" href="a05939.html#l00121">121</a> of file <a class="el" href="a05939.html">lod_character_shape_bank.cpp</a>. +<p> +References <a class="el" href="a05940.html#l00099">_ShapeArray</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, and <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>. +<p> +<div class="fragment"><pre>00122 { +00123 (<span class="keywordtype">void</span>)f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(0); +00124 +00125 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_ShapeArray); +00126 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_ShapeMap); +00127 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankr0" doxytag="NL3D::CLodCharacterShapeBank::_ShapeArray" ></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"> std::vector<<a class="el" href="a02801.html">CLodCharacterShape</a>> <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr0">NL3D::CLodCharacterShapeBank::_ShapeArray</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Array of shape. +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00099">99</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.h</a>. +<p> +Referenced by <a class="el" href="a05939.html#l00053">addShape()</a>, <a class="el" href="a05939.html#l00090">compile()</a>, <a class="el" href="a05939.html#l00115">getNumShapes()</a>, <a class="el" href="a05939.html#l00072">getShape()</a>, <a class="el" href="a05939.html#l00081">getShapeFullAcces()</a>, <a class="el" href="a05939.html#l00046">reset()</a>, and <a class="el" href="a05939.html#l00121">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLodCharacterShapeBankr1" doxytag="NL3D::CLodCharacterShapeBank::_ShapeMap" ></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="a02807.html#NL3D_1_1CLodCharacterShapeBanky2">TStrIdMap</a> <a class="el" href="a02807.html#NL3D_1_1CLodCharacterShapeBankr1">NL3D::CLodCharacterShapeBank::_ShapeMap</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Map of shape id. +<p> + +<p> +Definition at line <a class="el" href="a05940.html#l00102">102</a> of file <a class="el" href="a05940.html">lod_character_shape_bank.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05940.html">lod_character_shape_bank.h</a><li><a class="el" href="a05939.html">lod_character_shape_bank.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:50:01 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> |