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

Revision 964, 19.9 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: FUtils/FUDaeEnum.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>FUtils/FUDaeEnum.h</h1><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="l00012"></a>00012 <span class="preprocessor">#ifndef _FU_DAE_ENUM_H_</span>
34<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define _FU_DAE_ENUM_H_</span>
35<a name="l00014"></a>00014 <span class="preprocessor"></span>
36<a name="l00015"></a>00015 <span class="comment">// Animation curve interpolation function</span>
37<a name="l00016"></a>00016 <span class="comment">// Defaults to the STEP interpolation by definition in COLLADA.</span>
38<a name="l00017"></a>00017 <span class="comment">// BEZIER is the more common interpolation type</span>
39<a name="l00018"></a>00018 <span class="keyword">namespace </span>FUDaeInterpolation
40<a name="l00019"></a>00019 {
41<a name="l00020"></a>00020 <span class="keyword">enum</span> <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef574">Interpolation</a>
42<a name="l00021"></a>00021     {
43<a name="l00022"></a>00022         STEP = 0, <span class="comment">//equivalent to no interpolation</span>
44<a name="l00023"></a>00023         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5745c836ca4b0b89b6072da3526393d561c">LINEAR</a>,
45<a name="l00024"></a>00024         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef574684294fc4a30dbb28f490752a2e3c057">BEZIER</a>,
46<a name="l00025"></a>00025
47<a name="l00026"></a>00026         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
48<a name="l00027"></a>00027 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = STEP,
49<a name="l00028"></a>00028     };
50<a name="l00029"></a>00029
51<a name="l00030"></a>00030 FCOLLADA_EXPORT <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef574">Interpolation</a> FromString(<span class="keyword">const</span> string&amp; value);
52<a name="l00031"></a>00031 <span class="keyword">const</span> <span class="keywordtype">char</span>* ToString(<span class="keyword">const</span> <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef574">Interpolation</a>&amp; value);
53<a name="l00032"></a>00032 };
54<a name="l00033"></a>00033
55<a name="l00034"></a>00034 <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FUDaeInterpolation::Interpolation&gt;</a> <a class="code" href="classvector.html">FUDaeInterpolationList</a>;
56<a name="l00035"></a>00035
57<a name="l00036"></a>00036 <span class="comment">// COLLADA generic degree function. Used by lights and the profile_COMMON materials.</span>
58<a name="l00037"></a>00037 <span class="keyword">namespace </span>FUDaeFunction
59<a name="l00038"></a>00038 {
60<a name="l00039"></a>00039 <span class="keyword">enum</span> Function
61<a name="l00040"></a>00040     {
62<a name="l00041"></a>00041         CONSTANT = 0,
63<a name="l00042"></a>00042         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5745c836ca4b0b89b6072da3526393d561c">LINEAR</a>,
64<a name="l00043"></a>00043         QUADRATIC,
65<a name="l00044"></a>00044
66<a name="l00045"></a>00045         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
67<a name="l00046"></a>00046 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = CONSTANT,
68<a name="l00047"></a>00047     };
69<a name="l00048"></a>00048
70<a name="l00049"></a>00049 FCOLLADA_EXPORT Function FromString(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
71<a name="l00050"></a>00050 <span class="keyword">inline</span> Function FromString(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> FromString(value.c_str()); }
72<a name="l00051"></a>00051 };
73<a name="l00052"></a>00052
74<a name="l00053"></a>00053
75<a name="l00054"></a>00054 <span class="comment">// Material texture channels. Used by profile_common materials to assign textures to channels/slots</span>
76<a name="l00055"></a>00055 <span class="comment">// Multi-texturing is done by assigning more than one texture per slot.</span>
77<a name="l00056"></a>00056 <span class="comment">// Defaults to diffuse texture slot</span>
78<a name="l00057"></a>00057 <span class="preprocessor">#undef TRANSPARENT // Win32: GDI stupidely defines this in the global namespace</span>
79<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="keyword">namespace </span>FUDaeTextureChannel
80<a name="l00059"></a>00059 {
81<a name="l00060"></a>00060 <span class="keyword">enum</span> Channel
82<a name="l00061"></a>00061     {
83<a name="l00062"></a>00062         AMBIENT = 0,
84<a name="l00063"></a>00063         BUMP,
85<a name="l00064"></a>00064         DIFFUSE,
86<a name="l00065"></a>00065         DISPLACEMENT,
87<a name="l00066"></a>00066         EMISSION,
88<a name="l00067"></a>00067         FILTER,
89<a name="l00068"></a>00068         OPACITY,
90<a name="l00069"></a>00069         REFLECTION,
91<a name="l00070"></a>00070         REFRACTION,
92<a name="l00071"></a>00071         SHININESS,
93<a name="l00072"></a>00072         SPECULAR,
94<a name="l00073"></a>00073         SPECULAR_LEVEL,
95<a name="l00074"></a>00074         TRANSPARENT,
96<a name="l00075"></a>00075
97<a name="l00076"></a>00076         COUNT,
98<a name="l00077"></a>00077         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
99<a name="l00078"></a>00078 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = DIFFUSE,
100<a name="l00079"></a>00079     };
101<a name="l00080"></a>00080
102<a name="l00081"></a>00081 FCOLLADA_EXPORT Channel FromString(<span class="keyword">const</span> string&amp; value);
103<a name="l00082"></a>00082 };
104<a name="l00083"></a>00083
105<a name="l00084"></a>00084 <span class="comment">// Morph controller method</span>
106<a name="l00085"></a>00085 <span class="comment">// NORMALIZED implies that the morph targets all have absolute vertex positions</span>
107<a name="l00086"></a>00086 <span class="comment">// RELATIVE implies that the morph targets have relative vertex positions</span>
108<a name="l00087"></a>00087 <span class="comment">//</span>
109<a name="l00088"></a>00088 <span class="comment">// Whether the vertex position is relative or absolute is irrelevant,</span>
110<a name="l00089"></a>00089 <span class="comment">// as long as you use the correct weight generation function:</span>
111<a name="l00090"></a>00090 <span class="comment">// NORMALIZED: base_weight = 1.0f - SUM(weight[t])</span>
112<a name="l00091"></a>00091 <span class="comment">// RELATIVE: base_weight = 1.0f</span>
113<a name="l00092"></a>00092 <span class="comment">// and position[k] = SUM(weight[t][k] * position[t][k])</span>
114<a name="l00093"></a>00093 <span class="preprocessor">#undef RELATIVE // Win32: GDI stupidely defines this in the global namespace</span>
115<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="keyword">namespace </span>FUDaeMorphMethod
116<a name="l00095"></a>00095 {
117<a name="l00096"></a>00096 <span class="keyword">enum</span> Method
118<a name="l00097"></a>00097     {
119<a name="l00098"></a>00098         NORMALIZED = 0,
120<a name="l00099"></a>00099         RELATIVE,
121<a name="l00100"></a>00100
122<a name="l00101"></a>00101         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
123<a name="l00102"></a>00102 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = NORMALIZED,
124<a name="l00103"></a>00103     };
125<a name="l00104"></a>00104
126<a name="l00105"></a>00105 FCOLLADA_EXPORT Method FromString(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
127<a name="l00106"></a>00106 FCOLLADA_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span>* ToString(Method method);
128<a name="l00107"></a>00107 <span class="keyword">inline</span> Method FromString(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> FromString(value.c_str()); }
129<a name="l00108"></a>00108 };
130<a name="l00109"></a>00109
131<a name="l00110"></a>00110 <span class="comment">// Maya uses the infinity to determine what happens outside an animation curve</span>
132<a name="l00111"></a>00111 <span class="comment">// Intentionally matches the MFnAnimCurve::InfinityType enum</span>
133<a name="l00112"></a>00112 <span class="keyword">namespace </span>FUDaeInfinity
134<a name="l00113"></a>00113 {
135<a name="l00114"></a>00114 <span class="keyword">enum</span> Infinity
136<a name="l00115"></a>00115     {
137<a name="l00116"></a>00116         CONSTANT = 0,
138<a name="l00117"></a>00117         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5745c836ca4b0b89b6072da3526393d561c">LINEAR</a>,
139<a name="l00118"></a>00118         CYCLE,
140<a name="l00119"></a>00119         CYCLE_RELATIVE,
141<a name="l00120"></a>00120         OSCILLATE,
142<a name="l00121"></a>00121
143<a name="l00122"></a>00122         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
144<a name="l00123"></a>00123 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = CONSTANT
145<a name="l00124"></a>00124     };
146<a name="l00125"></a>00125
147<a name="l00126"></a>00126 FCOLLADA_EXPORT Infinity FromString(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
148<a name="l00127"></a>00127 FCOLLADA_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span>* ToString(Infinity infinity);
149<a name="l00128"></a>00128 <span class="keyword">inline</span> Infinity FromString(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> FromString(value.c_str()); }
150<a name="l00129"></a>00129 };
151<a name="l00130"></a>00130
152<a name="l00131"></a>00131 <span class="comment">// Maya uses the blend mode for texturing purposes</span>
153<a name="l00132"></a>00132 <span class="comment">// Intentionally matches the equivalent Maya enum</span>
154<a name="l00133"></a>00133 <span class="preprocessor">#undef IN</span>
155<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#undef OUT</span>
156<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#undef DIFFERENCE</span>
157<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="keyword">namespace </span>FUDaeBlendMode
158<a name="l00137"></a>00137 {
159<a name="l00138"></a>00138 <span class="keyword">enum</span> Mode
160<a name="l00139"></a>00139     {
161<a name="l00140"></a>00140         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5749e271c68b0c77d4319f9735c2a15078a">NONE</a>,
162<a name="l00141"></a>00141         OVER,
163<a name="l00142"></a>00142         IN,
164<a name="l00143"></a>00143         OUT,
165<a name="l00144"></a>00144         ADD,
166<a name="l00145"></a>00145         SUBSTRACT,
167<a name="l00146"></a>00146         MULTIPLY,
168<a name="l00147"></a>00147         DIFFERENCE,
169<a name="l00148"></a>00148         LIGHTEN,
170<a name="l00149"></a>00149         DARKEN,
171<a name="l00150"></a>00150         SATURATE,
172<a name="l00151"></a>00151         DESATURATE,
173<a name="l00152"></a>00152         ILLUMINATE,
174<a name="l00153"></a>00153
175<a name="l00154"></a>00154         <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a>,
176<a name="l00155"></a>00155 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5744782e8db793e9b6dfda9435728864c0b">DEFAULT</a> = <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef5749e271c68b0c77d4319f9735c2a15078a">NONE</a>,
177<a name="l00156"></a>00156     };
178<a name="l00157"></a>00157
179<a name="l00158"></a>00158 FCOLLADA_EXPORT Mode FromString(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
180<a name="l00159"></a>00159 FCOLLADA_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span>* ToString(Mode mode);
181<a name="l00160"></a>00160 <span class="keyword">inline</span> Mode FromString(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> FromString(value.c_str()); }
182<a name="l00161"></a>00161 }
183<a name="l00162"></a>00162
184<a name="l00163"></a>00163 <span class="comment">// Geometry Input Semantics</span>
185<a name="l00164"></a>00164 <span class="comment">// Found in the &lt;mesh&gt;&lt;vertices&gt;, &lt;mesh&gt;&lt;polygons&gt;...</span>
186<a name="l00165"></a>00165 <span class="keyword">namespace </span>FUDaeGeometryInput
187<a name="l00166"></a>00166 {
188<a name="l00167"></a>00167 <span class="keyword">enum</span> Semantic
189<a name="l00168"></a>00168     {
190<a name="l00169"></a>00169         POSITION = 0,
191<a name="l00170"></a>00170         VERTEX,
192<a name="l00171"></a>00171         NORMAL,
193<a name="l00172"></a>00172         GEOTANGENT,
194<a name="l00173"></a>00173         GEOBINORMAL,
195<a name="l00174"></a>00174         TEXCOORD,
196<a name="l00175"></a>00175         TEXTANGENT,
197<a name="l00176"></a>00176         TEXBINORMAL,
198<a name="l00177"></a>00177         UV,
199<a name="l00178"></a>00178         COLOR,
200<a name="l00179"></a>00179         EXTRA, <span class="comment">// Maya-specific, used for blind data</span>
201<a name="l00180"></a>00180
202<a name="l00181"></a>00181 <a class="code" href="namespace_f_m_interpolation.html#fe8916659987ea9cf18951bc5a3ef57480fbd3c6714aefd4d33b734f0258b6b2">UNKNOWN</a> = -1,
203<a name="l00182"></a>00182     };
204<a name="l00183"></a>00183 <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;Semantic&gt;</a> SemanticList;
205<a name="l00184"></a>00184
206<a name="l00185"></a>00185 FCOLLADA_EXPORT Semantic FromString(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
207<a name="l00186"></a>00186 FCOLLADA_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span>* ToString(Semantic semantic);
208<a name="l00187"></a>00187 <span class="keyword">inline</span> Semantic FromString(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> FromString(value.c_str()); }
209<a name="l00188"></a>00188 }
210<a name="l00189"></a>00189
211<a name="l00191"></a><a class="code" href="namespace_f_u_dae_profile_type.html">00191</a> <span class="keyword">namespace </span>FUDaeProfileType
212<a name="l00192"></a>00192 {
213<a name="l00194"></a><a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79">00194</a>     <span class="keyword">enum</span> <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79">Type</a>
214<a name="l00195"></a>00195     {
215<a name="l00196"></a>00196         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79d2fb9414b1d238a825aeda1372b26f73">CG</a>,
216<a name="l00197"></a>00197         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a7903f09168ae46c4530fa846b65aa530c0">HLSL</a>,
217<a name="l00198"></a>00198         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a797b4565c07ede3e0b9f758e04a365b25a">GLSL</a>,
218<a name="l00199"></a>00199         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79d50a4f1509ee1cfabdf8832d6f5ab3ec">GLES</a>,
219<a name="l00200"></a>00200         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79d8aa33a3586c77ac1163a8840cf2ac38">COMMON</a>,
220<a name="l00202"></a><a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a792f867276427b55b3b1fbe431943af7d3">00202</a>         <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a792f867276427b55b3b1fbe431943af7d3">UNKNOWN</a>
221<a name="l00203"></a>00203     };
222<a name="l00204"></a>00204
223<a name="l00209"></a>00209 FCOLLADA_EXPORT <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79">Type</a> <a class="code" href="namespace_f_u_dae_profile_type.html#da4366b94ef7f8e716d1aef37bb60b86">FromString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);
224<a name="l00210"></a><a class="code" href="namespace_f_u_dae_profile_type.html#5910d1b7b7e99ebff4d889580213c1ab">00210</a>     <span class="keyword">inline</span> <a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79">Type</a> <a class="code" href="namespace_f_u_dae_profile_type.html#da4366b94ef7f8e716d1aef37bb60b86">FromString</a>(<span class="keyword">const</span> string&amp; value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_dae_profile_type.html#da4366b94ef7f8e716d1aef37bb60b86">FromString</a>(value.c_str()); }
225<a name="l00216"></a>00216 FCOLLADA_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespace_f_u_dae_profile_type.html#ee540af361ed92501526c67d23d77940">ToString</a>(<a class="code" href="namespace_f_u_dae_profile_type.html#c10ea253a7a141708de2324a929f8a79">Type</a> type);
226<a name="l00217"></a>00217 }
227<a name="l00218"></a>00218
228<a name="l00219"></a>00219 <span class="preprocessor">#endif // _FU_DAE_ENUM_H_</span>
229<a name="l00220"></a>00220 <span class="preprocessor"></span>
230</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
231<a href="http://www.doxygen.org/index.html">
232<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
233</body>
234</html>
Note: See TracBrowser for help on using the repository browser.