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

Revision 964, 9.5 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/FCDAnimationChannel.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/FCDAnimationChannel.h</h1><a href="_f_c_d_animation_channel_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_CHANNEL_H_</span>
34<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_ANIMATION_CHANNEL_H_</span>
35<a name="l00019"></a>00019 <span class="preprocessor"></span>
36<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="_f_c_d_object_8h.html">FCDocument/FCDObject.h</a>"</span>
37<a name="l00021"></a>00021
38<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="class_f_c_document.html">FCDocument</a>;
39<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>;
40<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>;
41<a name="l00025"></a><a class="code" href="_f_c_d_animation_channel_8h.html#07538fbbbc9f4f6be1de9955a18e886a">00025</a> <span class="keyword">class </span><a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>;
42<a name="l00026"></a>00026
43<a name="l00028"></a>00028 <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDAnimationCurve*&gt;</a> <a class="code" href="classvector.html">FCDAnimationCurveList</a>;
44<a name="l00029"></a>00029
45<a name="l00038"></a><a class="code" href="class_f_c_d_animation_channel.html">00038</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_object.html">FCDObject</a>
46<a name="l00039"></a>00039 {
47<a name="l00040"></a>00040 <span class="keyword">private</span>:
48<a name="l00041"></a>00041     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
49<a name="l00042"></a>00042     <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* parent;
50<a name="l00043"></a>00043
51<a name="l00044"></a>00044     <span class="comment">// Channel target</span>
52<a name="l00045"></a>00045     string targetPointer;
53<a name="l00046"></a>00046     string targetQualifier;
54<a name="l00047"></a>00047
55<a name="l00048"></a>00048     <span class="comment">// Maya-specific: the driver for this/these curves</span>
56<a name="l00049"></a>00049     string driverPointer;
57<a name="l00050"></a>00050     int32 driverQualifier;
58<a name="l00051"></a>00051
59<a name="l00052"></a>00052 <a class="code" href="classvector.html">FCDAnimationCurveList</a> curves;
60<a name="l00053"></a>00053
61<a name="l00054"></a>00054 <span class="keyword">public</span>:
62<a name="l00059"></a>00059     <a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document, <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* parent);
63<a name="l00060"></a>00060
64<a name="l00063"></a>00063 <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_animation_channel.html">FCDAnimationChannel</a>();
65<a name="l00064"></a>00064     
66<a name="l00067"></a><a class="code" href="class_f_c_d_animation_channel.html#208109679a16dec1f0103cbaa7b28324">00067</a>     <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* GetParent() { <span class="keywordflow">return</span> parent; }
67<a name="l00068"></a><a class="code" href="class_f_c_d_animation_channel.html#984c713570fdcd79242c2b260df91b0c">00068</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* GetParent()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> parent; }
68<a name="l00072"></a><a class="code" href="class_f_c_d_animation_channel.html#fa3c640a2dd9bfe68ea45a5208772af5">00072</a>     <span class="keyword">const</span> <a class="code" href="classvector.html">FCDAnimationCurveList</a>&amp; GetCurves()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> curves; }
69<a name="l00073"></a>00073
70<a name="l00076"></a><a class="code" href="class_f_c_d_animation_channel.html#c1b1e057ebccde60502ea1a12b00f358">00076</a>     size_t GetCurveCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> curves.size(); }
71<a name="l00077"></a>00077
72<a name="l00082"></a><a class="code" href="class_f_c_d_animation_channel.html#6022ce6350b29c74b21f253f779739c4">00082</a>     <a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>* GetCurve(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetCurveCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> curves.at(index); }
73<a name="l00083"></a><a class="code" href="class_f_c_d_animation_channel.html#e6716d448ab360c794901b072e27909c">00083</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>* GetCurve(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; GetCurveCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> curves.at(index); }
74<a name="l00087"></a>00087     <a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>* AddCurve();
75<a name="l00088"></a>00088
76<a name="l00093"></a>00093 <span class="keywordtype">void</span> ReleaseCurve(<a class="code" href="class_f_c_d_animation_curve.html">FCDAnimationCurve</a>* curve);
77<a name="l00094"></a>00094
78<a name="l00099"></a><a class="code" href="class_f_c_d_animation_channel.html#a3cdb2fb7ca73e7f9026251f861edf32">00099</a>     <span class="keyword">const</span> string&amp; GetTargetPointer()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> targetPointer; }
79<a name="l00100"></a>00100
80<a name="l00106"></a><a class="code" href="class_f_c_d_animation_channel.html#db7692a3c78cb4277eb5bfd7aced3bc8">00106</a>     <span class="keyword">const</span> string&amp; GetTargetQualifier()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> targetQualifier; }
81<a name="l00107"></a>00107
82<a name="l00111"></a><a class="code" href="class_f_c_d_animation_channel.html#3bbf9bbc45437d7ab34a2972da6ab784">00111</a>     <span class="keywordtype">void</span> SetTargetPointer(<span class="keyword">const</span> string&amp; p) { targetPointer = p; }
83<a name="l00112"></a>00112
84<a name="l00116"></a>00116 <span class="keywordtype">bool</span> LinkDriver(<a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* animated);
85<a name="l00117"></a>00117
86<a name="l00121"></a>00121 <a class="code" href="class_f_u_status.html">FUStatus</a> CheckDriver();
87<a name="l00122"></a>00122
88<a name="l00127"></a>00127 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromXML(xmlNode* channelNode);
89<a name="l00128"></a>00128
90<a name="l00132"></a>00132 <span class="keywordtype">void</span> WriteToXML(xmlNode* parentNode) <span class="keyword">const</span>;
91<a name="l00133"></a>00133 };
92<a name="l00134"></a>00134
93<a name="l00135"></a>00135 <span class="preprocessor">#endif // _FCD_ANIMATION_CHANNEL_H_</span>
94</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
95<a href="http://www.doxygen.org/index.html">
96<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
97</body>
98</html>
Note: See TracBrowser for help on using the repository browser.