[692] | 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 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>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> |
---|
| 11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
| 13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
| 14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
| 15 | 00006 <span class="comment"></span> |
---|
| 16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
| 17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
| 18 | 00009 <span class="comment"></span> |
---|
| 19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
| 20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
| 21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
| 22 | 00013 <span class="comment">version.</span> |
---|
| 23 | 00014 <span class="comment"></span> |
---|
| 24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
| 25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
| 26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
| 27 | 00018 <span class="comment"></span> |
---|
| 28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
| 29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
| 30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
| 31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
| 32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 33 | 00024 <span class="comment">*/</span> |
---|
| 34 | 00025 |
---|
| 35 | 00026 <span class="preprocessor">#ifndef __AnimationTrack_H__</span> |
---|
| 36 | 00027 <span class="preprocessor"></span><span class="preprocessor">#define __AnimationTrack_H__</span> |
---|
| 37 | 00028 <span class="preprocessor"></span> |
---|
| 38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
| 39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreSimpleSpline_8h.html">OgreSimpleSpline.h</a>"</span> |
---|
| 40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreRotationalSpline_8h.html">OgreRotationalSpline.h</a>"</span> |
---|
| 41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreKeyFrame_8h.html">OgreKeyFrame.h</a>"</span> |
---|
| 42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreAnimable_8h.html">OgreAnimable.h</a>"</span> |
---|
| 43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgrePose_8h.html">OgrePose.h</a>"</span> |
---|
| 44 | 00035 |
---|
| 45 | 00036 <span class="keyword">namespace </span>Ogre |
---|
| 46 | 00037 { |
---|
| 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 |
---|
| 48 | 00058 { |
---|
| 49 | 00059 <span class="keyword">public</span>: |
---|
| 50 | 00061 AnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle); |
---|
| 51 | 00062 |
---|
| 52 | 00063 <span class="keyword">virtual</span> ~AnimationTrack(); |
---|
| 53 | 00064 |
---|
| 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; } |
---|
| 55 | 00067 |
---|
| 56 | 00069 <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>; |
---|
| 57 | 00070 |
---|
| 58 | 00072 <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>; |
---|
| 59 | 00073 |
---|
| 60 | 00095 <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, |
---|
| 61 | 00096 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>* firstKeyIndex = 0) <span class="keyword">const</span>; |
---|
| 62 | 00097 |
---|
| 63 | 00105 <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); |
---|
| 64 | 00106 |
---|
| 65 | 00108 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeKeyFrame(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index); |
---|
| 66 | 00109 |
---|
| 67 | 00111 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllKeyFrames(<span class="keywordtype">void</span>); |
---|
| 68 | 00112 |
---|
| 69 | 00113 |
---|
| 70 | 00123 <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; |
---|
| 71 | 00124 |
---|
| 72 | 00134 <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>, |
---|
| 73 | 00135 <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f) = 0; |
---|
| 74 | 00136 |
---|
| 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>{} |
---|
| 76 | 00140 |
---|
| 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>; } |
---|
| 78 | 00146 |
---|
| 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>) {} |
---|
| 80 | 00149 |
---|
| 81 | 00150 <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<KeyFrame*> <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; |
---|
| 87 | 00156 |
---|
| 88 | 00158 <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; |
---|
| 89 | 00159 |
---|
| 90 | 00160 |
---|
| 91 | 00161 }; |
---|
| 92 | 00162 |
---|
| 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 |
---|
| 94 | 00166 { |
---|
| 95 | 00167 <span class="keyword">public</span>: |
---|
| 96 | 00169 NumericAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle); |
---|
| 97 | 00171 NumericAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle, |
---|
| 98 | 00172 <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>& target); |
---|
| 99 | 00173 |
---|
| 100 | 00181 <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); |
---|
| 101 | 00182 |
---|
| 102 | 00184 <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>; |
---|
| 103 | 00185 |
---|
| 104 | 00187 <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>, |
---|
| 105 | 00188 <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f); |
---|
| 106 | 00189 |
---|
| 107 | 00198 <span class="keywordtype">void</span> applyToAnimable(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>& anim, <a class="code" href="namespaceOgre.html#a465">Real</a> timePos, |
---|
| 108 | 00199 <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f); |
---|
| 109 | 00200 |
---|
| 110 | 00202 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">AnimableValuePtr</a>& getAssociatedAnimable(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
| 111 | 00203 |
---|
| 112 | 00206 <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>& val); |
---|
| 113 | 00207 |
---|
| 114 | 00209 <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>; |
---|
| 115 | 00210 |
---|
| 116 | 00211 |
---|
| 117 | 00212 <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; |
---|
| 119 | 00215 |
---|
| 120 | 00217 <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time); |
---|
| 121 | 00218 |
---|
| 122 | 00219 |
---|
| 123 | 00220 }; |
---|
| 124 | 00221 |
---|
| 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 |
---|
| 126 | 00225 { |
---|
| 127 | 00226 <span class="keyword">public</span>: |
---|
| 128 | 00228 NodeAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle); |
---|
| 129 | 00230 NodeAnimationTrack(<a class="code" href="classOgre_1_1Animation.html">Animation</a>* parent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle, |
---|
| 130 | 00231 <a class="code" href="classOgre_1_1Node.html">Node</a>* targetNode); |
---|
| 131 | 00239 <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); |
---|
| 132 | 00241 <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>; |
---|
| 133 | 00242 |
---|
| 134 | 00244 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setAssociatedNode(<a class="code" href="classOgre_1_1Node.html">Node</a>* node); |
---|
| 135 | 00245 |
---|
| 136 | 00247 <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, |
---|
| 137 | 00248 <span class="keywordtype">bool</span> accumulate = <span class="keyword">false</span>, <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f); |
---|
| 138 | 00249 |
---|
| 139 | 00251 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setUseShortestRotationPath(<span class="keywordtype">bool</span> useShortestPath); |
---|
| 140 | 00252 |
---|
| 141 | 00254 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getUseShortestRotationPath() <span class="keyword">const</span>; |
---|
| 142 | 00255 |
---|
| 143 | 00257 <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>; |
---|
| 144 | 00258 |
---|
| 145 | 00260 <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>, |
---|
| 146 | 00261 <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f); |
---|
| 147 | 00262 |
---|
| 148 | 00264 <span class="keywordtype">void</span> _keyFrameDataChanged(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
| 149 | 00265 |
---|
| 150 | 00267 <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>; |
---|
| 151 | 00268 |
---|
| 152 | 00269 |
---|
| 153 | 00274 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasNonZeroKeyFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
| 154 | 00275 |
---|
| 155 | 00277 <span class="keyword">virtual</span> <span class="keywordtype">void</span> optimise(<span class="keywordtype">void</span>); |
---|
| 156 | 00278 |
---|
| 157 | 00279 <span class="keyword">protected</span>: |
---|
| 158 | 00281 <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time); |
---|
| 159 | 00282 <span class="comment">// Flag indicating we need to rebuild the splines next time</span> |
---|
| 160 | 00283 <span class="keyword">virtual</span> <span class="keywordtype">void</span> buildInterpolationSplines(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
| 161 | 00284 |
---|
| 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; |
---|
| 163 | 00286 <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 ; |
---|
| 169 | 00293 |
---|
| 170 | 00294 |
---|
| 171 | 00295 }; |
---|
| 172 | 00296 |
---|
| 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> |
---|
| 174 | 00356 { |
---|
| 175 | 00358 <a class="code" href="namespaceOgre.html#a630a6">VAT_NONE</a> = 0, |
---|
| 176 | 00360 <a class="code" href="namespaceOgre.html#a630a7">VAT_MORPH</a> = 1, |
---|
| 177 | 00362 <a class="code" href="namespaceOgre.html#a630a8">VAT_POSE</a> = 2 |
---|
| 178 | 00363 }; |
---|
| 179 | 00364 |
---|
| 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 |
---|
| 181 | 00369 { |
---|
| 182 | 00370 <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 |
---|
| 184 | 00373 { |
---|
| 185 | 00375 TM_SOFTWARE, |
---|
| 186 | 00378 TM_HARDWARE |
---|
| 187 | 00379 }; |
---|
| 188 | 00381 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); |
---|
| 189 | 00383 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, |
---|
| 190 | 00384 <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetData, TargetMode target = TM_SOFTWARE); |
---|
| 191 | 00385 |
---|
| 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; } |
---|
| 193 | 00388 |
---|
| 194 | 00396 <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); |
---|
| 195 | 00397 |
---|
| 196 | 00400 <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); |
---|
| 197 | 00401 |
---|
| 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>{} |
---|
| 199 | 00406 |
---|
| 200 | 00408 <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>, |
---|
| 201 | 00409 <a class="code" href="namespaceOgre.html#a465">Real</a> scale = 1.0f); |
---|
| 202 | 00410 |
---|
| 203 | 00413 <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyToVertexData(<a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* data, |
---|
| 204 | 00414 <a class="code" href="namespaceOgre.html#a465">Real</a> timePos, <a class="code" href="namespaceOgre.html#a465">Real</a> weight = 1.0, |
---|
| 205 | 00415 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a464">PoseList</a>* poseList = 0); |
---|
| 206 | 00416 |
---|
| 207 | 00417 |
---|
| 208 | 00419 <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>; |
---|
| 209 | 00420 |
---|
| 210 | 00422 <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>; |
---|
| 211 | 00423 |
---|
| 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; } |
---|
| 214 | 00428 |
---|
| 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; } |
---|
| 217 | 00433 |
---|
| 218 | 00438 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasNonZeroKeyFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
| 219 | 00439 |
---|
| 220 | 00441 <span class="keyword">virtual</span> <span class="keywordtype">void</span> optimise(<span class="keywordtype">void</span>); |
---|
| 221 | 00442 |
---|
| 222 | 00443 |
---|
| 223 | 00444 <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; |
---|
| 227 | 00451 |
---|
| 228 | 00453 <a class="code" href="classOgre_1_1KeyFrame.html">KeyFrame</a>* createKeyFrameImpl(<a class="code" href="namespaceOgre.html#a465">Real</a> time); |
---|
| 229 | 00454 |
---|
| 230 | 00456 <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); |
---|
| 231 | 00457 |
---|
| 232 | 00458 |
---|
| 233 | 00459 }; |
---|
| 234 | 00460 |
---|
| 235 | 00461 |
---|
| 236 | 00462 } |
---|
| 237 | 00463 |
---|
| 238 | 00464 <span class="preprocessor">#endif</span> |
---|
| 239 | </pre></div><hr> |
---|
| 240 | <p> |
---|
| 241 | Copyright © 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/> |
---|
| 243 | 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/> |
---|
| 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 | |
---|
| 251 | Last modified Sun Mar 12 14:37:36 2006 |
---|
| 252 | </p> |
---|
| 253 | </body> |
---|
| 254 | </html> |
---|