source: OGRE/trunk/ogrenew/Docs/api/html/classOgre_1_1EdgeListBuilder.html @ 657

Revision 657, 33.1 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1<html>
2<head>
3<title>Ogre::EdgeListBuilder class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.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">Class&nbsp;List</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">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>Ogre::EdgeListBuilder Class Reference</h1>General utility class for building edge lists for geometry. 
11<a href="#_details">More...</a>
12<p>
13<code>#include &lt;<a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>&gt;</code>
14<p>
15<a href="classOgre_1_1EdgeListBuilder-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
16<tr><td></td></tr>
17<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera0">EdgeListBuilder</a> ()</td></tr>
19
20<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera1">~EdgeListBuilder</a> ()</td></tr>
21
22<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera2">addVertexData</a> (const <a class="el" href="classOgre_1_1VertexData.html">VertexData</a> *vertexData)</td></tr>
23
24<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a set of vertex geometry data to the edge builder.  <a href="#Ogre_1_1EdgeListBuildera2"></a><br><br></td></tr>
25<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera3">addIndexData</a> (const <a class="el" href="classOgre_1_1IndexData.html">IndexData</a> *indexData, size_t vertexSet=0, <a class="el" href="classOgre_1_1RenderOperation.html#Ogre_1_1RenderOperationw6">RenderOperation::OperationType</a> opType=RenderOperation::OT_TRIANGLE_LIST)</td></tr>
26
27<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a set of index geometry data to the edge builder.  <a href="#Ogre_1_1EdgeListBuildera3"></a><br><br></td></tr>
28<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeData.html">EdgeData</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera4">build</a> (void)</td></tr>
29
30<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Builds the edge information based on the information built up so far.  <a href="#Ogre_1_1EdgeListBuildera4"></a><br><br></td></tr>
31<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuildera5">log</a> (<a class="el" href="classOgre_1_1Log.html">Log</a> *l)</td></tr>
32
33<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Debugging method.  <a href="#Ogre_1_1EdgeListBuildera5"></a><br><br></td></tr>
34<tr><td colspan=2><br><h2>Protected Types</h2></td></tr>
35<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; const <br>
36<a class="el" href="classOgre_1_1VertexData.html">VertexData</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">VertexDataList</a></td></tr>
37
38<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">GeometryList</a></td></tr>
39
40<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html">CommonVertex</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">CommonVertexList</a></td></tr>
41
42<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="classOgre_1_1Vector3.html">Vector3</a>,<br>
43 size_t, <a class="el" href="structOgre_1_1EdgeListBuilder_1_1vectorLess.html">vectorLess</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">CommonVertexMap</a></td></tr>
44
45<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Map for identifying common vertices.  <a href="#Ogre_1_1EdgeListBuilderx3"></a><br><br></td></tr>
46<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::multimap&lt; std::pair&lt;<br>
47 size_t, size_t &gt;, std::pair&lt;<br>
48 size_t, size_t &gt; &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">EdgeMap</a></td></tr>
49
50<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Edge map, used to connect edges.  <a href="#Ogre_1_1EdgeListBuilderx4"></a><br><br></td></tr>
51<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
52<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderb0">buildTrianglesEdges</a> (const <a class="el" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a> &amp;geometry)</td></tr>
53
54<tr><td class="memItemLeft" nowrap align=right valign=top>size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderb1">findOrCreateCommonVertex</a> (const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;vec, size_t vertexSet, size_t indexSet, size_t originalIndex)</td></tr>
55
56<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Finds an existing common vertex, or inserts a new one.  <a href="#Ogre_1_1EdgeListBuilderb1"></a><br><br></td></tr>
57<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderb2">connectOrCreateEdge</a> (size_t vertexSet, size_t triangleIndex, size_t vertIndex0, size_t vertIndex1, size_t sharedVertIndex0, size_t sharedVertIndex1)</td></tr>
58
59<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Connect existing edge or create a new edge - utility method during building.  <a href="#Ogre_1_1EdgeListBuilderb2"></a><br><br></td></tr>
60<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
61<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">GeometryList</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp0">mGeometryList</a></td></tr>
62
63<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">VertexDataList</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp1">mVertexDataList</a></td></tr>
64
65<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">CommonVertexList</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp2">mVertices</a></td></tr>
66
67<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeData.html">EdgeData</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp3">mEdgeData</a></td></tr>
68
69<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">CommonVertexMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp4">mCommonVertexMap</a></td></tr>
70
71<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">EdgeMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp5">mEdgeMap</a></td></tr>
72
73</table>
74<hr><a name="_details"></a><h2>Detailed Description</h2>
75General utility class for building edge lists for geometry.
76<p>
77<dl compact><dt><b>Remarks:</b></dt><dd>You can add multiple sets of vertex and index data to build and edge list. Edges will be built between the various sets as well as within sets; this allows you to use a model which is built from multiple SubMeshes each using separate index and (optionally) vertex data and still get the same connectivity information. It's important to note that the indexes for the edge will be constrained to a single vertex buffer though (this is required in order to render the edge). </dd></dl>
78
79<p>
80
81<p>
82Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00130">130</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.<hr><h2>Member Typedef Documentation</h2>
83<a class="anchor" name="Ogre_1_1EdgeListBuilderx2" doxytag="Ogre::EdgeListBuilder::CommonVertexList" ></a><p>
84<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
85  <tr>
86    <td class="mdRow">
87      <table cellpadding="0" cellspacing="0" border="0">
88        <tr>
89          <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="structOgre_1_1EdgeListBuilder_1_1CommonVertex.html">CommonVertex</a>&gt; <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">Ogre::EdgeListBuilder::CommonVertexList</a><code> [protected]</code>
90      </table>
91    </td>
92  </tr>
93</table>
94<table cellspacing=5 cellpadding=0 border=0>
95  <tr>
96    <td>
97      &nbsp;
98    </td>
99    <td>
100
101<p>
102
103<p>
104Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00207">207</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
105  </tr>
106</table>
107<a class="anchor" name="Ogre_1_1EdgeListBuilderx3" doxytag="Ogre::EdgeListBuilder::CommonVertexMap" ></a><p>
108<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
109  <tr>
110    <td class="mdRow">
111      <table cellpadding="0" cellspacing="0" border="0">
112        <tr>
113          <td class="md" nowrap valign="top"> typedef std::map&lt;<a class="el" href="classOgre_1_1Vector3.html">Vector3</a>, size_t, <a class="el" href="structOgre_1_1EdgeListBuilder_1_1vectorLess.html">vectorLess</a>&gt; <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">Ogre::EdgeListBuilder::CommonVertexMap</a><code> [protected]</code>
114      </table>
115    </td>
116  </tr>
117</table>
118<table cellspacing=5 cellpadding=0 border=0>
119  <tr>
120    <td>
121      &nbsp;
122    </td>
123    <td>
124
125<p>
126Map for identifying common vertices.
127<p>
128
129<p>
130Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00214">214</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
131  </tr>
132</table>
133<a class="anchor" name="Ogre_1_1EdgeListBuilderx4" doxytag="Ogre::EdgeListBuilder::EdgeMap" ></a><p>
134<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
135  <tr>
136    <td class="mdRow">
137      <table cellpadding="0" cellspacing="0" border="0">
138        <tr>
139          <td class="md" nowrap valign="top"> typedef std::multimap&lt; std::pair&lt;size_t, size_t&gt;, std::pair&lt;size_t, size_t&gt; &gt; <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">Ogre::EdgeListBuilder::EdgeMap</a><code> [protected]</code>
140      </table>
141    </td>
142  </tr>
143</table>
144<table cellspacing=5 cellpadding=0 border=0>
145  <tr>
146    <td>
147      &nbsp;
148    </td>
149    <td>
150
151<p>
152Edge map, used to connect edges.
153<p>
154Note we allow many triangles on an edge, after connected an existing edge, we will remove it and never used again.
155<p>
156Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00219">219</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
157  </tr>
158</table>
159<a class="anchor" name="Ogre_1_1EdgeListBuilderx1" doxytag="Ogre::EdgeListBuilder::GeometryList" ></a><p>
160<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
161  <tr>
162    <td class="mdRow">
163      <table cellpadding="0" cellspacing="0" border="0">
164        <tr>
165          <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a>&gt; <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">Ogre::EdgeListBuilder::GeometryList</a><code> [protected]</code>
166      </table>
167    </td>
168  </tr>
169</table>
170<table cellspacing=5 cellpadding=0 border=0>
171  <tr>
172    <td>
173      &nbsp;
174    </td>
175    <td>
176
177<p>
178
179<p>
180Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00206">206</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
181  </tr>
182</table>
183<a class="anchor" name="Ogre_1_1EdgeListBuilderx0" doxytag="Ogre::EdgeListBuilder::VertexDataList" ></a><p>
184<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
185  <tr>
186    <td class="mdRow">
187      <table cellpadding="0" cellspacing="0" border="0">
188        <tr>
189          <td class="md" nowrap valign="top"> typedef std::vector&lt;const <a class="el" href="classOgre_1_1VertexData.html">VertexData</a>*&gt; <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">Ogre::EdgeListBuilder::VertexDataList</a><code> [protected]</code>
190      </table>
191    </td>
192  </tr>
193</table>
194<table cellspacing=5 cellpadding=0 border=0>
195  <tr>
196    <td>
197      &nbsp;
198    </td>
199    <td>
200
201<p>
202
203<p>
204Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00205">205</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
205  </tr>
206</table>
207<hr><h2>Constructor &amp; Destructor Documentation</h2>
208<a class="anchor" name="Ogre_1_1EdgeListBuildera0" doxytag="Ogre::EdgeListBuilder::EdgeListBuilder" ></a><p>
209<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
210  <tr>
211    <td class="mdRow">
212      <table cellpadding="0" cellspacing="0" border="0">
213        <tr>
214          <td class="md" nowrap valign="top"> Ogre::EdgeListBuilder::EdgeListBuilder </td>
215          <td class="md" valign="top">(&nbsp;</td>
216          <td class="mdname1" valign="top" nowrap>          </td>
217          <td class="md" valign="top">&nbsp;)&nbsp;</td>
218          <td class="md" nowrap></td>
219        </tr>
220
221      </table>
222    </td>
223  </tr>
224</table>
225<table cellspacing=5 cellpadding=0 border=0>
226  <tr>
227    <td>
228      &nbsp;
229    </td>
230    <td>
231
232<p>
233    </td>
234  </tr>
235</table>
236<a class="anchor" name="Ogre_1_1EdgeListBuildera1" doxytag="Ogre::EdgeListBuilder::~EdgeListBuilder" ></a><p>
237<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
238  <tr>
239    <td class="mdRow">
240      <table cellpadding="0" cellspacing="0" border="0">
241        <tr>
242          <td class="md" nowrap valign="top"> virtual Ogre::EdgeListBuilder::~<a class="el" href="classOgre_1_1EdgeListBuilder.html">EdgeListBuilder</a> </td>
243          <td class="md" valign="top">(&nbsp;</td>
244          <td class="mdname1" valign="top" nowrap>          </td>
245          <td class="md" valign="top">&nbsp;)&nbsp;</td>
246          <td class="md" nowrap><code> [virtual]</code></td>
247        </tr>
248
249      </table>
250    </td>
251  </tr>
252</table>
253<table cellspacing=5 cellpadding=0 border=0>
254  <tr>
255    <td>
256      &nbsp;
257    </td>
258    <td>
259
260<p>
261    </td>
262  </tr>
263</table>
264<hr><h2>Member Function Documentation</h2>
265<a class="anchor" name="Ogre_1_1EdgeListBuildera3" doxytag="Ogre::EdgeListBuilder::addIndexData" ></a><p>
266<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
267  <tr>
268    <td class="mdRow">
269      <table cellpadding="0" cellspacing="0" border="0">
270        <tr>
271          <td class="md" nowrap valign="top"> void Ogre::EdgeListBuilder::addIndexData </td>
272          <td class="md" valign="top">(&nbsp;</td>
273          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1IndexData.html">IndexData</a> *&nbsp;</td>
274          <td class="mdname" nowrap> <em>indexData</em>, </td>
275        </tr>
276        <tr>
277          <td class="md" nowrap align="right"></td>
278          <td></td>
279          <td class="md" nowrap>size_t&nbsp;</td>
280          <td class="mdname" nowrap> <em>vertexSet</em> = 0, </td>
281        </tr>
282        <tr>
283          <td class="md" nowrap align="right"></td>
284          <td></td>
285          <td class="md" nowrap><a class="el" href="classOgre_1_1RenderOperation.html#Ogre_1_1RenderOperationw6">RenderOperation::OperationType</a>&nbsp;</td>
286          <td class="mdname" nowrap> <em>opType</em> = RenderOperation::OT_TRIANGLE_LIST</td>
287        </tr>
288        <tr>
289          <td></td>
290          <td class="md">)&nbsp;</td>
291          <td class="md" colspan="2"></td>
292        </tr>
293
294      </table>
295    </td>
296  </tr>
297</table>
298<table cellspacing=5 cellpadding=0 border=0>
299  <tr>
300    <td>
301      &nbsp;
302    </td>
303    <td>
304
305<p>
306Add a set of index geometry data to the edge builder.
307<p>
308<dl compact><dt><b>Remarks:</b></dt><dd>You must add at least one set of index data to the builder before invoking the build method. </dd></dl>
309<dl compact><dt><b>Parameters:</b></dt><dd>
310  <table border="0" cellspacing="2" cellpadding="0">
311    <tr><td valign=top><em>indexData</em>&nbsp;</td><td>The index information which describes the triangles. </td></tr>
312    <tr><td valign=top><em>vertexSet</em>&nbsp;</td><td>The vertex data set this index data refers to; you only need to alter this if you have added multiple sets of vertices </td></tr>
313    <tr><td valign=top><em>opType</em>&nbsp;</td><td>The operation type used to render these indexes. Only triangle types are supported (no point or line types) </td></tr>
314  </table>
315</dl>
316    </td>
317  </tr>
318</table>
319<a class="anchor" name="Ogre_1_1EdgeListBuildera2" doxytag="Ogre::EdgeListBuilder::addVertexData" ></a><p>
320<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
321  <tr>
322    <td class="mdRow">
323      <table cellpadding="0" cellspacing="0" border="0">
324        <tr>
325          <td class="md" nowrap valign="top"> void Ogre::EdgeListBuilder::addVertexData </td>
326          <td class="md" valign="top">(&nbsp;</td>
327          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1VertexData.html">VertexData</a> *&nbsp;</td>
328          <td class="mdname1" valign="top" nowrap> <em>vertexData</em>          </td>
329          <td class="md" valign="top">&nbsp;)&nbsp;</td>
330          <td class="md" nowrap></td>
331        </tr>
332
333      </table>
334    </td>
335  </tr>
336</table>
337<table cellspacing=5 cellpadding=0 border=0>
338  <tr>
339    <td>
340      &nbsp;
341    </td>
342    <td>
343
344<p>
345Add a set of vertex geometry data to the edge builder.
346<p>
347<dl compact><dt><b>Remarks:</b></dt><dd>You must add at least one set of vertex data to the builder before invoking the build method. </dd></dl>
348    </td>
349  </tr>
350</table>
351<a class="anchor" name="Ogre_1_1EdgeListBuildera4" doxytag="Ogre::EdgeListBuilder::build" ></a><p>
352<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
353  <tr>
354    <td class="mdRow">
355      <table cellpadding="0" cellspacing="0" border="0">
356        <tr>
357          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeData.html">EdgeData</a>* Ogre::EdgeListBuilder::build </td>
358          <td class="md" valign="top">(&nbsp;</td>
359          <td class="md" nowrap valign="top">void&nbsp;</td>
360          <td class="mdname1" valign="top" nowrap>          </td>
361          <td class="md" valign="top">&nbsp;)&nbsp;</td>
362          <td class="md" nowrap></td>
363        </tr>
364
365      </table>
366    </td>
367  </tr>
368</table>
369<table cellspacing=5 cellpadding=0 border=0>
370  <tr>
371    <td>
372      &nbsp;
373    </td>
374    <td>
375
376<p>
377Builds the edge information based on the information built up so far.
378<p>
379<dl compact><dt><b>Remarks:</b></dt><dd>The caller takes responsibility for deleting the returned structure. </dd></dl>
380    </td>
381  </tr>
382</table>
383<a class="anchor" name="Ogre_1_1EdgeListBuilderb0" doxytag="Ogre::EdgeListBuilder::buildTrianglesEdges" ></a><p>
384<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
385  <tr>
386    <td class="mdRow">
387      <table cellpadding="0" cellspacing="0" border="0">
388        <tr>
389          <td class="md" nowrap valign="top"> void Ogre::EdgeListBuilder::buildTrianglesEdges </td>
390          <td class="md" valign="top">(&nbsp;</td>
391          <td class="md" nowrap valign="top">const <a class="el" href="structOgre_1_1EdgeListBuilder_1_1Geometry.html">Geometry</a> &amp;&nbsp;</td>
392          <td class="mdname1" valign="top" nowrap> <em>geometry</em>          </td>
393          <td class="md" valign="top">&nbsp;)&nbsp;</td>
394          <td class="md" nowrap><code> [protected]</code></td>
395        </tr>
396
397      </table>
398    </td>
399  </tr>
400</table>
401<table cellspacing=5 cellpadding=0 border=0>
402  <tr>
403    <td>
404      &nbsp;
405    </td>
406    <td>
407
408<p>
409    </td>
410  </tr>
411</table>
412<a class="anchor" name="Ogre_1_1EdgeListBuilderb2" doxytag="Ogre::EdgeListBuilder::connectOrCreateEdge" ></a><p>
413<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
414  <tr>
415    <td class="mdRow">
416      <table cellpadding="0" cellspacing="0" border="0">
417        <tr>
418          <td class="md" nowrap valign="top"> void Ogre::EdgeListBuilder::connectOrCreateEdge </td>
419          <td class="md" valign="top">(&nbsp;</td>
420          <td class="md" nowrap valign="top">size_t&nbsp;</td>
421          <td class="mdname" nowrap> <em>vertexSet</em>, </td>
422        </tr>
423        <tr>
424          <td class="md" nowrap align="right"></td>
425          <td></td>
426          <td class="md" nowrap>size_t&nbsp;</td>
427          <td class="mdname" nowrap> <em>triangleIndex</em>, </td>
428        </tr>
429        <tr>
430          <td class="md" nowrap align="right"></td>
431          <td></td>
432          <td class="md" nowrap>size_t&nbsp;</td>
433          <td class="mdname" nowrap> <em>vertIndex0</em>, </td>
434        </tr>
435        <tr>
436          <td class="md" nowrap align="right"></td>
437          <td></td>
438          <td class="md" nowrap>size_t&nbsp;</td>
439          <td class="mdname" nowrap> <em>vertIndex1</em>, </td>
440        </tr>
441        <tr>
442          <td class="md" nowrap align="right"></td>
443          <td></td>
444          <td class="md" nowrap>size_t&nbsp;</td>
445          <td class="mdname" nowrap> <em>sharedVertIndex0</em>, </td>
446        </tr>
447        <tr>
448          <td class="md" nowrap align="right"></td>
449          <td></td>
450          <td class="md" nowrap>size_t&nbsp;</td>
451          <td class="mdname" nowrap> <em>sharedVertIndex1</em></td>
452        </tr>
453        <tr>
454          <td></td>
455          <td class="md">)&nbsp;</td>
456          <td class="md" colspan="2"><code> [protected]</code></td>
457        </tr>
458
459      </table>
460    </td>
461  </tr>
462</table>
463<table cellspacing=5 cellpadding=0 border=0>
464  <tr>
465    <td>
466      &nbsp;
467    </td>
468    <td>
469
470<p>
471Connect existing edge or create a new edge - utility method during building.
472<p>
473    </td>
474  </tr>
475</table>
476<a class="anchor" name="Ogre_1_1EdgeListBuilderb1" doxytag="Ogre::EdgeListBuilder::findOrCreateCommonVertex" ></a><p>
477<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
478  <tr>
479    <td class="mdRow">
480      <table cellpadding="0" cellspacing="0" border="0">
481        <tr>
482          <td class="md" nowrap valign="top"> size_t Ogre::EdgeListBuilder::findOrCreateCommonVertex </td>
483          <td class="md" valign="top">(&nbsp;</td>
484          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;&nbsp;</td>
485          <td class="mdname" nowrap> <em>vec</em>, </td>
486        </tr>
487        <tr>
488          <td class="md" nowrap align="right"></td>
489          <td></td>
490          <td class="md" nowrap>size_t&nbsp;</td>
491          <td class="mdname" nowrap> <em>vertexSet</em>, </td>
492        </tr>
493        <tr>
494          <td class="md" nowrap align="right"></td>
495          <td></td>
496          <td class="md" nowrap>size_t&nbsp;</td>
497          <td class="mdname" nowrap> <em>indexSet</em>, </td>
498        </tr>
499        <tr>
500          <td class="md" nowrap align="right"></td>
501          <td></td>
502          <td class="md" nowrap>size_t&nbsp;</td>
503          <td class="mdname" nowrap> <em>originalIndex</em></td>
504        </tr>
505        <tr>
506          <td></td>
507          <td class="md">)&nbsp;</td>
508          <td class="md" colspan="2"><code> [protected]</code></td>
509        </tr>
510
511      </table>
512    </td>
513  </tr>
514</table>
515<table cellspacing=5 cellpadding=0 border=0>
516  <tr>
517    <td>
518      &nbsp;
519    </td>
520    <td>
521
522<p>
523Finds an existing common vertex, or inserts a new one.
524<p>
525    </td>
526  </tr>
527</table>
528<a class="anchor" name="Ogre_1_1EdgeListBuildera5" doxytag="Ogre::EdgeListBuilder::log" ></a><p>
529<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
530  <tr>
531    <td class="mdRow">
532      <table cellpadding="0" cellspacing="0" border="0">
533        <tr>
534          <td class="md" nowrap valign="top"> void Ogre::EdgeListBuilder::log </td>
535          <td class="md" valign="top">(&nbsp;</td>
536          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Log.html">Log</a> *&nbsp;</td>
537          <td class="mdname1" valign="top" nowrap> <em>l</em>          </td>
538          <td class="md" valign="top">&nbsp;)&nbsp;</td>
539          <td class="md" nowrap></td>
540        </tr>
541
542      </table>
543    </td>
544  </tr>
545</table>
546<table cellspacing=5 cellpadding=0 border=0>
547  <tr>
548    <td>
549      &nbsp;
550    </td>
551    <td>
552
553<p>
554Debugging method.
555<p>
556    </td>
557  </tr>
558</table>
559<hr><h2>Member Data Documentation</h2>
560<a class="anchor" name="Ogre_1_1EdgeListBuilderp4" doxytag="Ogre::EdgeListBuilder::mCommonVertexMap" ></a><p>
561<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
562  <tr>
563    <td class="mdRow">
564      <table cellpadding="0" cellspacing="0" border="0">
565        <tr>
566          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx3">CommonVertexMap</a> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp4">Ogre::EdgeListBuilder::mCommonVertexMap</a><code> [protected]</code>
567      </table>
568    </td>
569  </tr>
570</table>
571<table cellspacing=5 cellpadding=0 border=0>
572  <tr>
573    <td>
574      &nbsp;
575    </td>
576    <td>
577
578<p>
579
580<p>
581Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00215">215</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
582  </tr>
583</table>
584<a class="anchor" name="Ogre_1_1EdgeListBuilderp3" doxytag="Ogre::EdgeListBuilder::mEdgeData" ></a><p>
585<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
586  <tr>
587    <td class="mdRow">
588      <table cellpadding="0" cellspacing="0" border="0">
589        <tr>
590          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeData.html">EdgeData</a>* <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp3">Ogre::EdgeListBuilder::mEdgeData</a><code> [protected]</code>
591      </table>
592    </td>
593  </tr>
594</table>
595<table cellspacing=5 cellpadding=0 border=0>
596  <tr>
597    <td>
598      &nbsp;
599    </td>
600    <td>
601
602<p>
603
604<p>
605Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00212">212</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
606  </tr>
607</table>
608<a class="anchor" name="Ogre_1_1EdgeListBuilderp5" doxytag="Ogre::EdgeListBuilder::mEdgeMap" ></a><p>
609<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
610  <tr>
611    <td class="mdRow">
612      <table cellpadding="0" cellspacing="0" border="0">
613        <tr>
614          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx4">EdgeMap</a> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp5">Ogre::EdgeListBuilder::mEdgeMap</a><code> [protected]</code>
615      </table>
616    </td>
617  </tr>
618</table>
619<table cellspacing=5 cellpadding=0 border=0>
620  <tr>
621    <td>
622      &nbsp;
623    </td>
624    <td>
625
626<p>
627
628<p>
629Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00220">220</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
630  </tr>
631</table>
632<a class="anchor" name="Ogre_1_1EdgeListBuilderp0" doxytag="Ogre::EdgeListBuilder::mGeometryList" ></a><p>
633<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
634  <tr>
635    <td class="mdRow">
636      <table cellpadding="0" cellspacing="0" border="0">
637        <tr>
638          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx1">GeometryList</a> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp0">Ogre::EdgeListBuilder::mGeometryList</a><code> [protected]</code>
639      </table>
640    </td>
641  </tr>
642</table>
643<table cellspacing=5 cellpadding=0 border=0>
644  <tr>
645    <td>
646      &nbsp;
647    </td>
648    <td>
649
650<p>
651
652<p>
653Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00209">209</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
654  </tr>
655</table>
656<a class="anchor" name="Ogre_1_1EdgeListBuilderp1" doxytag="Ogre::EdgeListBuilder::mVertexDataList" ></a><p>
657<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
658  <tr>
659    <td class="mdRow">
660      <table cellpadding="0" cellspacing="0" border="0">
661        <tr>
662          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx0">VertexDataList</a> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp1">Ogre::EdgeListBuilder::mVertexDataList</a><code> [protected]</code>
663      </table>
664    </td>
665  </tr>
666</table>
667<table cellspacing=5 cellpadding=0 border=0>
668  <tr>
669    <td>
670      &nbsp;
671    </td>
672    <td>
673
674<p>
675
676<p>
677Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00210">210</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
678  </tr>
679</table>
680<a class="anchor" name="Ogre_1_1EdgeListBuilderp2" doxytag="Ogre::EdgeListBuilder::mVertices" ></a><p>
681<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
682  <tr>
683    <td class="mdRow">
684      <table cellpadding="0" cellspacing="0" border="0">
685        <tr>
686          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderx2">CommonVertexList</a> <a class="el" href="classOgre_1_1EdgeListBuilder.html#Ogre_1_1EdgeListBuilderp2">Ogre::EdgeListBuilder::mVertices</a><code> [protected]</code>
687      </table>
688    </td>
689  </tr>
690</table>
691<table cellspacing=5 cellpadding=0 border=0>
692  <tr>
693    <td>
694      &nbsp;
695    </td>
696    <td>
697
698<p>
699
700<p>
701Definition at line <a class="el" href="OgreEdgeListBuilder_8h-source.html#l00211">211</a> of file <a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a>.    </td>
702  </tr>
703</table>
704<hr>The documentation for this class was generated from the following file:<ul>
705<li><a class="el" href="OgreEdgeListBuilder_8h-source.html">OgreEdgeListBuilder.h</a></ul>
706<hr>
707<p>
708Copyright &copy; 2000-2005 by The OGRE Team<br />
709<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
710This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
711                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
712                <Work rdf:about="">
713                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
714        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
715                </Work>
716                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
717
718Last modified Sun Feb 12 13:00:21 2006
719</p>
720</body>
721</html>
Note: See TracBrowser for help on using the repository browser.