source: NonGTP/FCollada/Documentation/_f_c_d_animation_8h-source.html @ 964

Revision 964, 11.2 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FCDocument/FCDAnimation.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FCDocument/FCDAnimation.h</h1><a href="_f_c_d_animation_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc.</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005 <span class="comment">/*</span>
27<a name="l00006"></a>00006 <span class="comment">    Based on the FS Import classes:</span>
28<a name="l00007"></a>00007 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc</span>
29<a name="l00008"></a>00008 <span class="comment">    Copyright (C) 2005-2006 Autodesk Media Entertainment</span>
30<a name="l00009"></a>00009 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
31<a name="l00010"></a>00010 <span class="comment">*/</span>
32<a name="l00011"></a>00011
33<a name="l00017"></a>00017 <span class="preprocessor">#ifndef _FCD_ANIMATION_H_</span>
34<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_ANIMATION_H_</span>
35<a name="l00019"></a>00019 <span class="preprocessor"></span>
36<a name="l00020"></a>00020 <span class="preprocessor">#include "FUtils/FUXmlNodeIdPair.h"</span>
37<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="_f_c_d_entity_8h.html">FCDocument/FCDEntity.h</a>"</span>
38<a name="l00022"></a>00022
39<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="class_f_c_document.html">FCDocument</a>;
40<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>;
41<a name="l00025"></a>00025 <span class="keyword">class </span><a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>;
42<a name="l00026"></a>00026 <span class="keyword">class </span><a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>;
43<a name="l00027"></a><a class="code" href="_f_c_d_animation_8h.html#8badf9d1b6767c22393a32557c8d2d9c">00027</a> <span class="keyword">class </span><a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>;
44<a name="l00028"></a>00028
45<a name="l00029"></a>00029 <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDAnimation*&gt;</a> <a class="code" href="classvector.html">FCDAnimationList</a>;
46<a name="l00030"></a><a class="code" href="_f_c_d_animation_8h.html#137756c6280e82d7cd62034b3f04e11f">00030</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDAnimationChannel*&gt;</a> <a class="code" href="classvector.html">FCDAnimationChannelList</a>;
47<a name="l00031"></a><a class="code" href="_f_c_d_animation_8h.html#07538fbbbc9f4f6be1de9955a18e886a">00031</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDAnimationCurve*&gt;</a> <a class="code" href="classvector.html">FCDAnimationCurveList</a>;
48<a name="l00045"></a><a class="code" href="class_f_c_d_animation.html">00045</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_entity.html">FCDEntity</a>
49<a name="l00046"></a>00046 {
50<a name="l00047"></a>00047 <span class="keyword">private</span>:
51<a name="l00048"></a>00048     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
52<a name="l00049"></a>00049 <a class="code" href="classvector.html">FCDAnimationChannelList</a> channels;
53<a name="l00050"></a>00050 <a class="code" href="classvector.html">FUXmlNodeIdPairList</a> childNodes;
54<a name="l00051"></a>00051 <a class="code" href="classvector.html">FCDAnimationList</a> children;
55<a name="l00052"></a>00052
56<a name="l00053"></a>00053 <span class="keyword">public</span>:
57<a name="l00059"></a>00059     <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document);
58<a name="l00060"></a>00060
59<a name="l00065"></a>00065 <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>();
60<a name="l00066"></a>00066
61<a name="l00070"></a><a class="code" href="class_f_c_d_animation.html#91e3239617da238768340a8bf62b4132">00070</a>     <span class="keyword">virtual</span> Type <a class="code" href="class_f_c_d_entity.html#bfd4312a7124f92364c1e6517c7e60ba">GetType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ANIMATION; }
62<a name="l00071"></a>00071     
63<a name="l00078"></a>00078 <span class="keyword">virtual</span> <a class="code" href="class_f_c_d_entity.html">FCDEntity</a>* <a class="code" href="class_f_c_d_entity.html#90832c3838b2eaf5e5b346052ec2331e">FindDaeId</a>(<span class="keyword">const</span> string&amp; daeId);
64<a name="l00079"></a>00079
65<a name="l00083"></a><a class="code" href="class_f_c_d_animation.html#8682dc213919aacfab23a2b63bb8d935">00083</a>     <span class="keyword">inline</span> size_t GetChildCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children.size(); }
66<a name="l00084"></a>00084
67<a name="l00090"></a><a class="code" href="class_f_c_d_animation.html#e308d048c95ea72df642f06865e37c3c">00090</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* GetChild(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetChildCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> children.at(index); }
68<a name="l00091"></a><a class="code" href="class_f_c_d_animation.html#49937056a91b0676fe3604457c579009">00091</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* GetChild(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetChildCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> children.at(index); }
69<a name="l00095"></a>00095 <span class="keyword">inline</span> <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* <a class="code" href="namespace_f_u_xml_writer.html#66fe48121f1fb959fc118e4046370ee4">AddChild</a>();
70<a name="l00096"></a>00096
71<a name="l00099"></a>00099 <span class="keyword">inline</span> <span class="keywordtype">void</span> ReleaseChild(<a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* animation);
72<a name="l00100"></a>00100
73<a name="l00105"></a>00105 <span class="keywordtype">void</span> FindAnimationChannels(<span class="keyword">const</span> string&amp; pointer, <a class="code" href="classvector.html">FCDAnimationChannelList</a>&amp; targetChannels);
74<a name="l00106"></a>00106
75<a name="l00109"></a><a class="code" href="class_f_c_d_animation.html#ce899d6bc499d07fb65bcdd2c5a7fd3c">00109</a>     size_t GetChannelCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> channels.size(); }
76<a name="l00110"></a>00110
77<a name="l00115"></a><a class="code" href="class_f_c_d_animation.html#09826937c16c3c73bdc9995aa751279c">00115</a>     <a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>* GetChannel(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetChannelCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> channels.at(index); }
78<a name="l00116"></a><a class="code" href="class_f_c_d_animation.html#c406240a1265a474bef985478d925286">00116</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>* GetChannel(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetChannelCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> channels.at(index); }
79<a name="l00120"></a>00120     <a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>* AddChannel();
80<a name="l00121"></a>00121
81<a name="l00124"></a>00124 <span class="keywordtype">void</span> ReleaseChannel(<a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>* channel);
82<a name="l00125"></a>00125
83<a name="l00129"></a>00129 <span class="keywordtype">void</span> GetCurves(<a class="code" href="classvector.html">FCDAnimationCurveList</a>&amp; curves);
84<a name="l00130"></a>00130
85<a name="l00135"></a>00135 <a class="code" href="class_f_u_status.html">FUStatus</a> Link();
86<a name="l00136"></a>00136
87<a name="l00141"></a>00141 <span class="keyword">virtual</span> <a class="code" href="class_f_u_status.html">FUStatus</a> <a class="code" href="class_f_c_d_entity.html#8e32fcc93de76acc4b606db7b5b83890">LoadFromXML</a>(xmlNode* animationNode);
88<a name="l00142"></a>00142
89<a name="l00146"></a>00146 <span class="keyword">virtual</span> xmlNode* <a class="code" href="class_f_c_d_entity.html#b27f0c175c3f8fd7064cde48bcf1d7a0">WriteToXML</a>(xmlNode* parentNode) <span class="keyword">const</span>;
90<a name="l00147"></a>00147
91<a name="l00154"></a>00154 xmlNode* FindChildById(<span class="keyword">const</span> string&amp; <span class="keywordtype">id</span>);
92<a name="l00155"></a>00155
93<a name="l00161"></a>00161 <span class="keywordtype">bool</span> LinkDriver(<a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* animated);
94<a name="l00162"></a>00162 };
95<a name="l00163"></a>00163
96<a name="l00164"></a>00164 <span class="preprocessor">#endif // _FCD_ANIMATION_H_</span>
97</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
98<a href="http://www.doxygen.org/index.html">
99<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
100</body>
101</html>
Note: See TracBrowser for help on using the repository browser.