source: OGRE/trunk/ogrenew/Docs/api/html/OgreAnimationTrack_8h-source.html @ 692

Revision 692, 26.3 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>OgreAnimationTrack.h Source File - 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>OgreAnimationTrack.h</h1><a href="OgreAnimationTrack_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">    (Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025
3500026 <span class="preprocessor">#ifndef __AnimationTrack_H__</span>
3600027 <span class="preprocessor"></span><span class="preprocessor">#define __AnimationTrack_H__</span>
3700028 <span class="preprocessor"></span>
3800029 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3900030 <span class="preprocessor">#include "<a class="code" href="OgreSimpleSpline_8h.html">OgreSimpleSpline.h</a>"</span>
4000031 <span class="preprocessor">#include "<a class="code" href="OgreRotationalSpline_8h.html">OgreRotationalSpline.h</a>"</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreKeyFrame_8h.html">OgreKeyFrame.h</a>"</span>
4200033 <span class="preprocessor">#include "<a class="code" href="OgreAnimable_8h.html">OgreAnimable.h</a>"</span>
4300034 <span class="preprocessor">#include "<a class="code" href="OgrePose_8h.html">OgrePose.h</a>"</span>
4400035
4500036 <span class="keyword">namespace </span>Ogre
4600037 {
47<a name="l00057"></a><a class="code" href="classOgre_1_1AnimationTrack.html">00057</a>     <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> AnimationTrack
4800058     {
4900059     <span class="keyword">public</span>:
5000061         AnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle);
5100062
5200063         <span class="keyword">virtual</span> ~AnimationTrack();
5300064
54<a name="l00066"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTracka16">00066</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getHandle(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mHandle; }
5500067
5600069         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getNumKeyFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
5700070
5800072         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* getKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
5900073
6000095         <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getKeyFramesAtTime(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>** keyFrame1, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>** keyFrame2,
6100096             <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>* firstKeyIndex = 0) <span class="keyword">const</span>;
6200097
6300105         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos);
6400106
6500108         <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index);
6600109
6700111         <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllKeyFrames(<span class="keywordtype">void</span>);
6800112
6900113
7000123         <span class="keyword">virtual</span> <span class="keywordtype">void</span> getInterpolatedKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timeIndex, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* kf) <span class="keyword">const</span> = 0;
7100124
7200134         <span class="keyword">virtual</span> <span class="keywordtype">void</span> apply(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>,
7300135             <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f) = 0;
7400136
75<a name="l00139"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTracka23">00139</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> _keyFrameDataChanged(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{}
7600140
77<a name="l00145"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1NumericAnimationTracka17">00145</a>         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasNonZeroKeyFrames(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }
7800146
79<a name="l00148"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1NumericAnimationTracka18">00148</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> optimise(<span class="keywordtype">void</span>) {}
8000149
8100150     <span class="keyword">protected</span>:
82<a name="l00151"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackx0">00151</a>         <span class="keyword">typedef</span> std::vector&lt;KeyFrame*&gt; <a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackx0">KeyFrameList</a>;
83<a name="l00152"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackp3">00152</a>         <a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackx0">KeyFrameList</a> mKeyFrames;
84<a name="l00153"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackp4">00153</a>         <a class="code" href="namespaceOgre.html#a465">Real</a> mMaxKeyFrameTime;
85<a name="l00154"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackp5">00154</a>         <a class="code" href="classOgre_1_1Animation.html">Animation</a>* mParent;
86<a name="l00155"></a><a class="code" href="classOgre_1_1AnimationTrack.html#Ogre_1_1VertexAnimationTrackp6">00155</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> mHandle;
8700156
8800158         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time) = 0;
8900159
9000160
9100161     };
9200162
93<a name="l00165"></a><a class="code" href="classOgre_1_1NumericAnimationTrack.html">00165</a>     <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> NumericAnimationTrack : <span class="keyword">public</span> AnimationTrack
9400166     {
9500167     <span class="keyword">public</span>:
9600169         NumericAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle);
9700171         NumericAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle,
9800172             <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>&amp; target);
9900173
10000181         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1NumericKeyFrame.html">NumericKeyFrame</a>* createNumericKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos);
10100182
10200184         <span class="keywordtype">void</span> getInterpolatedKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timeIndex, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* kf) <span class="keyword">const</span>;
10300185
10400187         <span class="keywordtype">void</span> apply(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>,
10500188             <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f);
10600189
10700198         <span class="keywordtype">void</span> applyToAnimable(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>&amp; anim, <a class="code" href="namespaceOgre.html#a465">Real</a> timePos,
10800199             <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f);
10900200
11000202         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>&amp; getAssociatedAnimable(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
11100203
11200206         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setAssociatedAnimable(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>&amp; val);
11300207
11400209         <a class="code" href="classOgre_1_1NumericKeyFrame.html">NumericKeyFrame</a>* getNumericKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
11500210
11600211
11700212     <span class="keyword">protected</span>:
118<a name="l00214"></a><a class="code" href="classOgre_1_1NumericAnimationTrack.html#Ogre_1_1NumericAnimationTrackp0">00214</a>         <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a> mTargetAnim;
11900215
12000217         <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time);
12100218
12200219
12300220     };
12400221
125<a name="l00224"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html">00224</a>     <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> NodeAnimationTrack : <span class="keyword">public</span> AnimationTrack
12600225     {
12700226     <span class="keyword">public</span>:
12800228         NodeAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle);
12900230         NodeAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle,
13000231             <a class="code" href="classOgre_1_1Node.html">Node</a>* targetNode);
13100239         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1TransformKeyFrame.html">TransformKeyFrame</a>* createNodeKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos);
13200241         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Node.html">Node</a>* getAssociatedNode(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
13300242
13400244         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setAssociatedNode(<a class="code" href="classOgre_1_1Node.html">Node</a>* node);
13500245
13600247         <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyToNode(<a class="code" href="classOgre_1_1Node.html">Node</a>* node, <a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0,
13700248             <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>, <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f);
13800249
13900251         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setUseShortestRotationPath(<span class="keywordtype">bool</span> useShortestPath);
14000252
14100254         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getUseShortestRotationPath() <span class="keyword">const</span>;
14200255
14300257         <span class="keywordtype">void</span> getInterpolatedKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timeIndex, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* kf) <span class="keyword">const</span>;
14400258
14500260         <span class="keywordtype">void</span> apply(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>,
14600261             <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f);
14700262
14800264         <span class="keywordtype">void</span> _keyFrameDataChanged(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
14900265
15000267         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1TransformKeyFrame.html">TransformKeyFrame</a>* getNodeKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
15100268
15200269
15300274         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasNonZeroKeyFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15400275
15500277         <span class="keyword">virtual</span> <span class="keywordtype">void</span> optimise(<span class="keywordtype">void</span>);
15600278
15700279     <span class="keyword">protected</span>:
15800281         <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time);
15900282         <span class="comment">// Flag indicating we need to rebuild the splines next time</span>
16000283         <span class="keyword">virtual</span> <span class="keywordtype">void</span> buildInterpolationSplines(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16100284
162<a name="l00285"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp0">00285</a>         <a class="code" href="classOgre_1_1Node.html">Node</a>* mTargetNode;
16300286         <span class="comment">// Prebuilt splines, must be mutable since lazy-update in const method</span>
164<a name="l00287"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp1">00287</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mSplineBuildNeeded;
165<a name="l00288"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp2">00288</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> mPositionSpline;
166<a name="l00289"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp3">00289</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> mScaleSpline;
167<a name="l00290"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp4">00290</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1RotationalSpline.html">RotationalSpline</a> mRotationSpline;
168<a name="l00292"></a><a class="code" href="classOgre_1_1NodeAnimationTrack.html#Ogre_1_1NodeAnimationTrackp5">00292</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mUseShortestRotationPath ;
16900293
17000294
17100295     };
17200296
173<a name="l00355"></a><a class="code" href="namespaceOgre.html#a630">00355</a>     <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a630">VertexAnimationType</a>
17400356     {
17500358         <a class="code" href="namespaceOgre.html#a630a6">VAT_NONE</a> = 0,
17600360         <a class="code" href="namespaceOgre.html#a630a7">VAT_MORPH</a> = 1,
17700362         <a class="code" href="namespaceOgre.html#a630a8">VAT_POSE</a> = 2
17800363     };
17900364
180<a name="l00368"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html">00368</a>     <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> VertexAnimationTrack : <span class="keyword">public</span> AnimationTrack
18100369     {
18200370     <span class="keyword">public</span>:
183<a name="l00372"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTrackw2">00372</a>         <span class="keyword">enum</span> TargetMode
18400373         {
18500375             TM_SOFTWARE,
18600378             TM_HARDWARE
18700379         };
18800381         VertexAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle, VertexAnimationType animType);
18900383         VertexAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle, VertexAnimationType animType,
19000384             <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetData, TargetMode target = TM_SOFTWARE);
19100385
192<a name="l00387"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka2">00387</a>         <a class="code" href="namespaceOgre.html#a630">VertexAnimationType</a> getAnimationType(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAnimationType; }
19300388
19400396         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1VertexMorphKeyFrame.html">VertexMorphKeyFrame</a>* createVertexMorphKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos);
19500397
19600400         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1VertexPoseKeyFrame.html">VertexPoseKeyFrame</a>* createVertexPoseKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos);
19700401
198<a name="l00405"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka5">00405</a>         <span class="keywordtype">void</span> getInterpolatedKeyFrame(<a class="code" href="namespaceOgre.html#a465">Real</a> timeIndex, <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* kf)<span class="keyword"> const </span>{}
19900406
20000408         <span class="keywordtype">void</span> apply(<a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>,
20100409             <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f);
20200410
20300413         <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyToVertexData(<a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* data,
20400414             <a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0,
20500415             <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a464">PoseList</a>* poseList = 0);
20600416
20700417
20800419         <a class="code" href="classOgre_1_1VertexMorphKeyFrame.html">VertexMorphKeyFrame</a>* getVertexMorphKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
20900420
21000422         <a class="code" href="classOgre_1_1VertexPoseKeyFrame.html">VertexPoseKeyFrame</a>* getVertexPoseKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
21100423
212<a name="l00425"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka10">00425</a>         <span class="keywordtype">void</span> setAssociatedVertexData(<a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* data) { mTargetVertexData = data; }
213<a name="l00427"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka11">00427</a>         <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* getAssociatedVertexData(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTargetVertexData; }
21400428
215<a name="l00430"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka12">00430</a>         <span class="keywordtype">void</span> setTargetMode(TargetMode m) { mTargetMode = m; }
216<a name="l00432"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTracka13">00432</a>         TargetMode getTargetMode(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTargetMode; }
21700433
21800438         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasNonZeroKeyFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
21900439
22000441         <span class="keyword">virtual</span> <span class="keywordtype">void</span> optimise(<span class="keywordtype">void</span>);
22100442
22200443
22300444     <span class="keyword">protected</span>:
224<a name="l00446"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTrackp0">00446</a>         <a class="code" href="namespaceOgre.html#a630">VertexAnimationType</a> mAnimationType;
225<a name="l00448"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTrackp1">00448</a>         <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* mTargetVertexData;
226<a name="l00450"></a><a class="code" href="classOgre_1_1VertexAnimationTrack.html#Ogre_1_1VertexAnimationTrackp2">00450</a>         TargetMode mTargetMode;
22700451
22800453         <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time);
22900454
23000456         <span class="keywordtype">void</span> applyPoseToVertexData(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Pose.html">Pose</a>* pose, <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* data, <a class="code" href="namespaceOgre.html#a465">Real</a> influence);
23100457
23200458
23300459     };
23400460
23500461
23600462 }
23700463
23800464 <span class="preprocessor">#endif</span>
239</pre></div><hr>
240<p>
241Copyright &copy; 2000-2005 by The OGRE Team<br />
242<!--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/>
243This 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/>
244                <!--/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#">
245                <Work rdf:about="">
246                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
247        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
248                </Work>
249                <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> -->
250
251Last modified Sun Mar 12 14:37:36 2006
252</p>
253</body>
254</html>
Note: See TracBrowser for help on using the repository browser.