1 | <html> |
---|
2 | <head> |
---|
3 | <title>Ogre::RotationalSpline 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 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">Class List</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">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>Ogre::RotationalSpline Class Reference</h1>This class interpolates orientations (rotations) along a spline using derivatives of quaternions. |
---|
11 | <a href="#_details">More...</a> |
---|
12 | <p> |
---|
13 | <code>#include <<a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>></code> |
---|
14 | <p> |
---|
15 | <a href="classOgre_1_1RotationalSpline-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> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea0">RotationalSpline</a> ()</td></tr> |
---|
19 | |
---|
20 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea1">~RotationalSpline</a> ()</td></tr> |
---|
21 | |
---|
22 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea2">addPoint</a> (const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &p)</td></tr> |
---|
23 | |
---|
24 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a control point to the end of the spline. <a href="#Ogre_1_1RotationalSplinea2"></a><br><br></td></tr> |
---|
25 | <tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea3">getPoint</a> (unsigned short index) const </td></tr> |
---|
26 | |
---|
27 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the detail of one of the control points of the spline. <a href="#Ogre_1_1RotationalSplinea3"></a><br><br></td></tr> |
---|
28 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned short </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea4">getNumPoints</a> (void) const </td></tr> |
---|
29 | |
---|
30 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of control points in the spline. <a href="#Ogre_1_1RotationalSplinea4"></a><br><br></td></tr> |
---|
31 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea5">clear</a> (void)</td></tr> |
---|
32 | |
---|
33 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clears all the points in the spline. <a href="#Ogre_1_1RotationalSplinea5"></a><br><br></td></tr> |
---|
34 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea6">updatePoint</a> (unsigned short index, const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &value)</td></tr> |
---|
35 | |
---|
36 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Updates a single point in the spline. <a href="#Ogre_1_1RotationalSplinea6"></a><br><br></td></tr> |
---|
37 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea7">interpolate</a> (<a class="el" href="namespaceOgre.html#a465">Real</a> t, bool useShortestPath=true)</td></tr> |
---|
38 | |
---|
39 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an interpolated point based on a parametric value over the whole series. <a href="#Ogre_1_1RotationalSplinea7"></a><br><br></td></tr> |
---|
40 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea8">interpolate</a> (unsigned int fromIndex, <a class="el" href="namespaceOgre.html#a465">Real</a> t, bool useShortestPath=true)</td></tr> |
---|
41 | |
---|
42 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interpolates a single segment of the spline given a parametric value. <a href="#Ogre_1_1RotationalSplinea8"></a><br><br></td></tr> |
---|
43 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea9">setAutoCalculate</a> (bool autoCalc)</td></tr> |
---|
44 | |
---|
45 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Tells the spline whether it should automatically calculate tangents on demand as points are added. <a href="#Ogre_1_1RotationalSplinea9"></a><br><br></td></tr> |
---|
46 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea10">recalcTangents</a> (void)</td></tr> |
---|
47 | |
---|
48 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Recalculates the tangents associated with this spline. <a href="#Ogre_1_1RotationalSplinea10"></a><br><br></td></tr> |
---|
49 | <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> |
---|
50 | <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep0">mAutoCalc</a></td></tr> |
---|
51 | |
---|
52 | <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep1">mPoints</a></td></tr> |
---|
53 | |
---|
54 | <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep2">mTangents</a></td></tr> |
---|
55 | |
---|
56 | </table> |
---|
57 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
58 | This class interpolates orientations (rotations) along a spline using derivatives of quaternions. |
---|
59 | <p> |
---|
60 | <dl compact><dt><b>Remarks:</b></dt><dd>Like the <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> class, this class is about interpolating values smoothly over a spline. Whilst <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> deals with positions (the normal sense we think about splines), this class interpolates orientations. The theory is identical, except we're now in 4-dimensional space instead of 3. </dd></dl> |
---|
61 | <dl compact><dt><b></b></dt><dd>In positional splines, we use the points and tangents on those points to generate control points for the spline. In this case, we use quaternions and derivatives of the quaternions (i.e. the rate and direction of change at each point). This is the same as <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> since a tangent is a derivative of a position. We effectively generate an extra quaternion in between each actual quaternion which when take with the original quaternion forms the 'tangent' of that quaternion. </dd></dl> |
---|
62 | |
---|
63 | <p> |
---|
64 | |
---|
65 | <p> |
---|
66 | Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00048">48</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> |
---|
67 | <a class="anchor" name="Ogre_1_1RotationalSplinea0" doxytag="Ogre::RotationalSpline::RotationalSpline" ></a><p> |
---|
68 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
69 | <tr> |
---|
70 | <td class="mdRow"> |
---|
71 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
72 | <tr> |
---|
73 | <td class="md" nowrap valign="top"> Ogre::RotationalSpline::RotationalSpline </td> |
---|
74 | <td class="md" valign="top">( </td> |
---|
75 | <td class="mdname1" valign="top" nowrap> </td> |
---|
76 | <td class="md" valign="top"> ) </td> |
---|
77 | <td class="md" nowrap></td> |
---|
78 | </tr> |
---|
79 | |
---|
80 | </table> |
---|
81 | </td> |
---|
82 | </tr> |
---|
83 | </table> |
---|
84 | <table cellspacing=5 cellpadding=0 border=0> |
---|
85 | <tr> |
---|
86 | <td> |
---|
87 | |
---|
88 | </td> |
---|
89 | <td> |
---|
90 | |
---|
91 | <p> |
---|
92 | </td> |
---|
93 | </tr> |
---|
94 | </table> |
---|
95 | <a class="anchor" name="Ogre_1_1RotationalSplinea1" doxytag="Ogre::RotationalSpline::~RotationalSpline" ></a><p> |
---|
96 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
97 | <tr> |
---|
98 | <td class="mdRow"> |
---|
99 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
100 | <tr> |
---|
101 | <td class="md" nowrap valign="top"> Ogre::RotationalSpline::~<a class="el" href="classOgre_1_1RotationalSpline.html">RotationalSpline</a> </td> |
---|
102 | <td class="md" valign="top">( </td> |
---|
103 | <td class="mdname1" valign="top" nowrap> </td> |
---|
104 | <td class="md" valign="top"> ) </td> |
---|
105 | <td class="md" nowrap></td> |
---|
106 | </tr> |
---|
107 | |
---|
108 | </table> |
---|
109 | </td> |
---|
110 | </tr> |
---|
111 | </table> |
---|
112 | <table cellspacing=5 cellpadding=0 border=0> |
---|
113 | <tr> |
---|
114 | <td> |
---|
115 | |
---|
116 | </td> |
---|
117 | <td> |
---|
118 | |
---|
119 | <p> |
---|
120 | </td> |
---|
121 | </tr> |
---|
122 | </table> |
---|
123 | <hr><h2>Member Function Documentation</h2> |
---|
124 | <a class="anchor" name="Ogre_1_1RotationalSplinea2" doxytag="Ogre::RotationalSpline::addPoint" ></a><p> |
---|
125 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
126 | <tr> |
---|
127 | <td class="mdRow"> |
---|
128 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
129 | <tr> |
---|
130 | <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::addPoint </td> |
---|
131 | <td class="md" valign="top">( </td> |
---|
132 | <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> & </td> |
---|
133 | <td class="mdname1" valign="top" nowrap> <em>p</em> </td> |
---|
134 | <td class="md" valign="top"> ) </td> |
---|
135 | <td class="md" nowrap></td> |
---|
136 | </tr> |
---|
137 | |
---|
138 | </table> |
---|
139 | </td> |
---|
140 | </tr> |
---|
141 | </table> |
---|
142 | <table cellspacing=5 cellpadding=0 border=0> |
---|
143 | <tr> |
---|
144 | <td> |
---|
145 | |
---|
146 | </td> |
---|
147 | <td> |
---|
148 | |
---|
149 | <p> |
---|
150 | Adds a control point to the end of the spline. |
---|
151 | <p> |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | </table> |
---|
155 | <a class="anchor" name="Ogre_1_1RotationalSplinea5" doxytag="Ogre::RotationalSpline::clear" ></a><p> |
---|
156 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
157 | <tr> |
---|
158 | <td class="mdRow"> |
---|
159 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
160 | <tr> |
---|
161 | <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::clear </td> |
---|
162 | <td class="md" valign="top">( </td> |
---|
163 | <td class="md" nowrap valign="top">void </td> |
---|
164 | <td class="mdname1" valign="top" nowrap> </td> |
---|
165 | <td class="md" valign="top"> ) </td> |
---|
166 | <td class="md" nowrap></td> |
---|
167 | </tr> |
---|
168 | |
---|
169 | </table> |
---|
170 | </td> |
---|
171 | </tr> |
---|
172 | </table> |
---|
173 | <table cellspacing=5 cellpadding=0 border=0> |
---|
174 | <tr> |
---|
175 | <td> |
---|
176 | |
---|
177 | </td> |
---|
178 | <td> |
---|
179 | |
---|
180 | <p> |
---|
181 | Clears all the points in the spline. |
---|
182 | <p> |
---|
183 | </td> |
---|
184 | </tr> |
---|
185 | </table> |
---|
186 | <a class="anchor" name="Ogre_1_1RotationalSplinea4" doxytag="Ogre::RotationalSpline::getNumPoints" ></a><p> |
---|
187 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
188 | <tr> |
---|
189 | <td class="mdRow"> |
---|
190 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
191 | <tr> |
---|
192 | <td class="md" nowrap valign="top"> unsigned short Ogre::RotationalSpline::getNumPoints </td> |
---|
193 | <td class="md" valign="top">( </td> |
---|
194 | <td class="md" nowrap valign="top">void </td> |
---|
195 | <td class="mdname1" valign="top" nowrap> </td> |
---|
196 | <td class="md" valign="top"> ) </td> |
---|
197 | <td class="md" nowrap> const</td> |
---|
198 | </tr> |
---|
199 | |
---|
200 | </table> |
---|
201 | </td> |
---|
202 | </tr> |
---|
203 | </table> |
---|
204 | <table cellspacing=5 cellpadding=0 border=0> |
---|
205 | <tr> |
---|
206 | <td> |
---|
207 | |
---|
208 | </td> |
---|
209 | <td> |
---|
210 | |
---|
211 | <p> |
---|
212 | Gets the number of control points in the spline. |
---|
213 | <p> |
---|
214 | </td> |
---|
215 | </tr> |
---|
216 | </table> |
---|
217 | <a class="anchor" name="Ogre_1_1RotationalSplinea3" doxytag="Ogre::RotationalSpline::getPoint" ></a><p> |
---|
218 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
219 | <tr> |
---|
220 | <td class="mdRow"> |
---|
221 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
222 | <tr> |
---|
223 | <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>& Ogre::RotationalSpline::getPoint </td> |
---|
224 | <td class="md" valign="top">( </td> |
---|
225 | <td class="md" nowrap valign="top">unsigned short </td> |
---|
226 | <td class="mdname1" valign="top" nowrap> <em>index</em> </td> |
---|
227 | <td class="md" valign="top"> ) </td> |
---|
228 | <td class="md" nowrap> const</td> |
---|
229 | </tr> |
---|
230 | |
---|
231 | </table> |
---|
232 | </td> |
---|
233 | </tr> |
---|
234 | </table> |
---|
235 | <table cellspacing=5 cellpadding=0 border=0> |
---|
236 | <tr> |
---|
237 | <td> |
---|
238 | |
---|
239 | </td> |
---|
240 | <td> |
---|
241 | |
---|
242 | <p> |
---|
243 | Gets the detail of one of the control points of the spline. |
---|
244 | <p> |
---|
245 | </td> |
---|
246 | </tr> |
---|
247 | </table> |
---|
248 | <a class="anchor" name="Ogre_1_1RotationalSplinea8" doxytag="Ogre::RotationalSpline::interpolate" ></a><p> |
---|
249 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
250 | <tr> |
---|
251 | <td class="mdRow"> |
---|
252 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
253 | <tr> |
---|
254 | <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> Ogre::RotationalSpline::interpolate </td> |
---|
255 | <td class="md" valign="top">( </td> |
---|
256 | <td class="md" nowrap valign="top">unsigned int </td> |
---|
257 | <td class="mdname" nowrap> <em>fromIndex</em>, </td> |
---|
258 | </tr> |
---|
259 | <tr> |
---|
260 | <td class="md" nowrap align="right"></td> |
---|
261 | <td></td> |
---|
262 | <td class="md" nowrap><a class="el" href="namespaceOgre.html#a465">Real</a> </td> |
---|
263 | <td class="mdname" nowrap> <em>t</em>, </td> |
---|
264 | </tr> |
---|
265 | <tr> |
---|
266 | <td class="md" nowrap align="right"></td> |
---|
267 | <td></td> |
---|
268 | <td class="md" nowrap>bool </td> |
---|
269 | <td class="mdname" nowrap> <em>useShortestPath</em> = true</td> |
---|
270 | </tr> |
---|
271 | <tr> |
---|
272 | <td></td> |
---|
273 | <td class="md">) </td> |
---|
274 | <td class="md" colspan="2"></td> |
---|
275 | </tr> |
---|
276 | |
---|
277 | </table> |
---|
278 | </td> |
---|
279 | </tr> |
---|
280 | </table> |
---|
281 | <table cellspacing=5 cellpadding=0 border=0> |
---|
282 | <tr> |
---|
283 | <td> |
---|
284 | |
---|
285 | </td> |
---|
286 | <td> |
---|
287 | |
---|
288 | <p> |
---|
289 | Interpolates a single segment of the spline given a parametric value. |
---|
290 | <p> |
---|
291 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
292 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
293 | <tr><td valign=top><em>fromIndex</em> </td><td>The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 </td></tr> |
---|
294 | <tr><td valign=top><em>t</em> </td><td>Parametric value </td></tr> |
---|
295 | <tr><td valign=top><em>useShortestPath</em> </td><td>Defines if rotation should take the shortest possible path </td></tr> |
---|
296 | </table> |
---|
297 | </dl> |
---|
298 | </td> |
---|
299 | </tr> |
---|
300 | </table> |
---|
301 | <a class="anchor" name="Ogre_1_1RotationalSplinea7" doxytag="Ogre::RotationalSpline::interpolate" ></a><p> |
---|
302 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
303 | <tr> |
---|
304 | <td class="mdRow"> |
---|
305 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
306 | <tr> |
---|
307 | <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> Ogre::RotationalSpline::interpolate </td> |
---|
308 | <td class="md" valign="top">( </td> |
---|
309 | <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a465">Real</a> </td> |
---|
310 | <td class="mdname" nowrap> <em>t</em>, </td> |
---|
311 | </tr> |
---|
312 | <tr> |
---|
313 | <td class="md" nowrap align="right"></td> |
---|
314 | <td></td> |
---|
315 | <td class="md" nowrap>bool </td> |
---|
316 | <td class="mdname" nowrap> <em>useShortestPath</em> = true</td> |
---|
317 | </tr> |
---|
318 | <tr> |
---|
319 | <td></td> |
---|
320 | <td class="md">) </td> |
---|
321 | <td class="md" colspan="2"></td> |
---|
322 | </tr> |
---|
323 | |
---|
324 | </table> |
---|
325 | </td> |
---|
326 | </tr> |
---|
327 | </table> |
---|
328 | <table cellspacing=5 cellpadding=0 border=0> |
---|
329 | <tr> |
---|
330 | <td> |
---|
331 | |
---|
332 | </td> |
---|
333 | <td> |
---|
334 | |
---|
335 | <p> |
---|
336 | Returns an interpolated point based on a parametric value over the whole series. |
---|
337 | <p> |
---|
338 | <dl compact><dt><b>Remarks:</b></dt><dd>Given a t value between 0 and 1 representing the parametric distance along the whole length of the spline, this method returns an interpolated point. </dd></dl> |
---|
339 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
340 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
341 | <tr><td valign=top><em>t</em> </td><td>Parametric value. </td></tr> |
---|
342 | <tr><td valign=top><em>useShortestPath</em> </td><td>Defines if rotation should take the shortest possible path </td></tr> |
---|
343 | </table> |
---|
344 | </dl> |
---|
345 | </td> |
---|
346 | </tr> |
---|
347 | </table> |
---|
348 | <a class="anchor" name="Ogre_1_1RotationalSplinea10" doxytag="Ogre::RotationalSpline::recalcTangents" ></a><p> |
---|
349 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
350 | <tr> |
---|
351 | <td class="mdRow"> |
---|
352 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
353 | <tr> |
---|
354 | <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::recalcTangents </td> |
---|
355 | <td class="md" valign="top">( </td> |
---|
356 | <td class="md" nowrap valign="top">void </td> |
---|
357 | <td class="mdname1" valign="top" nowrap> </td> |
---|
358 | <td class="md" valign="top"> ) </td> |
---|
359 | <td class="md" nowrap></td> |
---|
360 | </tr> |
---|
361 | |
---|
362 | </table> |
---|
363 | </td> |
---|
364 | </tr> |
---|
365 | </table> |
---|
366 | <table cellspacing=5 cellpadding=0 border=0> |
---|
367 | <tr> |
---|
368 | <td> |
---|
369 | |
---|
370 | </td> |
---|
371 | <td> |
---|
372 | |
---|
373 | <p> |
---|
374 | Recalculates the tangents associated with this spline. |
---|
375 | <p> |
---|
376 | <dl compact><dt><b>Remarks:</b></dt><dd>If you tell the spline not to update on demand by calling setAutoCalculate(false) then you must call this after completing your updates to the spline points. </dd></dl> |
---|
377 | </td> |
---|
378 | </tr> |
---|
379 | </table> |
---|
380 | <a class="anchor" name="Ogre_1_1RotationalSplinea9" doxytag="Ogre::RotationalSpline::setAutoCalculate" ></a><p> |
---|
381 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
382 | <tr> |
---|
383 | <td class="mdRow"> |
---|
384 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
385 | <tr> |
---|
386 | <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::setAutoCalculate </td> |
---|
387 | <td class="md" valign="top">( </td> |
---|
388 | <td class="md" nowrap valign="top">bool </td> |
---|
389 | <td class="mdname1" valign="top" nowrap> <em>autoCalc</em> </td> |
---|
390 | <td class="md" valign="top"> ) </td> |
---|
391 | <td class="md" nowrap></td> |
---|
392 | </tr> |
---|
393 | |
---|
394 | </table> |
---|
395 | </td> |
---|
396 | </tr> |
---|
397 | </table> |
---|
398 | <table cellspacing=5 cellpadding=0 border=0> |
---|
399 | <tr> |
---|
400 | <td> |
---|
401 | |
---|
402 | </td> |
---|
403 | <td> |
---|
404 | |
---|
405 | <p> |
---|
406 | Tells the spline whether it should automatically calculate tangents on demand as points are added. |
---|
407 | <p> |
---|
408 | <dl compact><dt><b>Remarks:</b></dt><dd>The spline calculates tangents at each point automatically based on the input points. Normally it does this every time a point changes. However, if you have a lot of points to add in one go, you probably don't want to incur this overhead and would prefer to defer the calculation until you are finished setting all the points. You can do this by calling this method with a parameter of 'false'. Just remember to manually call the recalcTangents method when you are done. </dd></dl> |
---|
409 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
410 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
411 | <tr><td valign=top><em>autoCalc</em> </td><td>If true, tangents are calculated for you whenever a point changes. If false, you must call reclacTangents to recalculate them when it best suits. </td></tr> |
---|
412 | </table> |
---|
413 | </dl> |
---|
414 | </td> |
---|
415 | </tr> |
---|
416 | </table> |
---|
417 | <a class="anchor" name="Ogre_1_1RotationalSplinea6" doxytag="Ogre::RotationalSpline::updatePoint" ></a><p> |
---|
418 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
419 | <tr> |
---|
420 | <td class="mdRow"> |
---|
421 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
422 | <tr> |
---|
423 | <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::updatePoint </td> |
---|
424 | <td class="md" valign="top">( </td> |
---|
425 | <td class="md" nowrap valign="top">unsigned short </td> |
---|
426 | <td class="mdname" nowrap> <em>index</em>, </td> |
---|
427 | </tr> |
---|
428 | <tr> |
---|
429 | <td class="md" nowrap align="right"></td> |
---|
430 | <td></td> |
---|
431 | <td class="md" nowrap>const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> & </td> |
---|
432 | <td class="mdname" nowrap> <em>value</em></td> |
---|
433 | </tr> |
---|
434 | <tr> |
---|
435 | <td></td> |
---|
436 | <td class="md">) </td> |
---|
437 | <td class="md" colspan="2"></td> |
---|
438 | </tr> |
---|
439 | |
---|
440 | </table> |
---|
441 | </td> |
---|
442 | </tr> |
---|
443 | </table> |
---|
444 | <table cellspacing=5 cellpadding=0 border=0> |
---|
445 | <tr> |
---|
446 | <td> |
---|
447 | |
---|
448 | </td> |
---|
449 | <td> |
---|
450 | |
---|
451 | <p> |
---|
452 | Updates a single point in the spline. |
---|
453 | <p> |
---|
454 | <dl compact><dt><b>Remarks:</b></dt><dd>This point must already exist in the spline. </dd></dl> |
---|
455 | </td> |
---|
456 | </tr> |
---|
457 | </table> |
---|
458 | <hr><h2>Member Data Documentation</h2> |
---|
459 | <a class="anchor" name="Ogre_1_1RotationalSplinep0" doxytag="Ogre::RotationalSpline::mAutoCalc" ></a><p> |
---|
460 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
461 | <tr> |
---|
462 | <td class="mdRow"> |
---|
463 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
464 | <tr> |
---|
465 | <td class="md" nowrap valign="top"> bool <a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep0">Ogre::RotationalSpline::mAutoCalc</a><code> [protected]</code> |
---|
466 | </table> |
---|
467 | </td> |
---|
468 | </tr> |
---|
469 | </table> |
---|
470 | <table cellspacing=5 cellpadding=0 border=0> |
---|
471 | <tr> |
---|
472 | <td> |
---|
473 | |
---|
474 | </td> |
---|
475 | <td> |
---|
476 | |
---|
477 | <p> |
---|
478 | |
---|
479 | <p> |
---|
480 | Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00111">111</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>. </td> |
---|
481 | </tr> |
---|
482 | </table> |
---|
483 | <a class="anchor" name="Ogre_1_1RotationalSplinep1" doxytag="Ogre::RotationalSpline::mPoints" ></a><p> |
---|
484 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
485 | <tr> |
---|
486 | <td class="mdRow"> |
---|
487 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
488 | <tr> |
---|
489 | <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>> <a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep1">Ogre::RotationalSpline::mPoints</a><code> [protected]</code> |
---|
490 | </table> |
---|
491 | </td> |
---|
492 | </tr> |
---|
493 | </table> |
---|
494 | <table cellspacing=5 cellpadding=0 border=0> |
---|
495 | <tr> |
---|
496 | <td> |
---|
497 | |
---|
498 | </td> |
---|
499 | <td> |
---|
500 | |
---|
501 | <p> |
---|
502 | |
---|
503 | <p> |
---|
504 | Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">115</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>. </td> |
---|
505 | </tr> |
---|
506 | </table> |
---|
507 | <a class="anchor" name="Ogre_1_1RotationalSplinep2" doxytag="Ogre::RotationalSpline::mTangents" ></a><p> |
---|
508 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
509 | <tr> |
---|
510 | <td class="mdRow"> |
---|
511 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
512 | <tr> |
---|
513 | <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>> <a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinep2">Ogre::RotationalSpline::mTangents</a><code> [protected]</code> |
---|
514 | </table> |
---|
515 | </td> |
---|
516 | </tr> |
---|
517 | </table> |
---|
518 | <table cellspacing=5 cellpadding=0 border=0> |
---|
519 | <tr> |
---|
520 | <td> |
---|
521 | |
---|
522 | </td> |
---|
523 | <td> |
---|
524 | |
---|
525 | <p> |
---|
526 | |
---|
527 | <p> |
---|
528 | Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00116">116</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>. </td> |
---|
529 | </tr> |
---|
530 | </table> |
---|
531 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
532 | <li><a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a></ul> |
---|
533 | <hr> |
---|
534 | <p> |
---|
535 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
536 | <!--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/> |
---|
537 | This 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/> |
---|
538 | <!--/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#"> |
---|
539 | <Work rdf:about=""> |
---|
540 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
541 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
542 | </Work> |
---|
543 | <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> --> |
---|
544 | |
---|
545 | Last modified Sun Mar 12 14:43:01 2006 |
---|
546 | </p> |
---|
547 | </body> |
---|
548 | </html> |
---|