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

Revision 964, 29.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: FCDocument/FCDTexture.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/FCDTexture.h</h1><a href="_f_c_d_texture_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_TEXTURE_H_</span>
34<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_TEXTURE_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_entity_8h.html">FCDocument/FCDEntity.h</a>"</span>
37<a name="l00021"></a>00021 <span class="preprocessor">#include "FUtils/FUDaeEnum.h"</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_effect_parameter.html">FCDEffectParameter</a>;
41<a name="l00025"></a>00025 <span class="keyword">class </span><a class="code" href="class_f_c_d_effect_parameter_int.html">FCDEffectParameterInt</a>;
42<a name="l00026"></a>00026 <span class="keyword">class </span><a class="code" href="class_f_c_d_effect_parameter_list.html">FCDEffectParameterList</a>;
43<a name="l00027"></a>00027 <span class="keyword">class </span><a class="code" href="class_f_c_d_image.html">FCDImage</a>;
44<a name="l00028"></a>00028
45<a name="l00046"></a><a class="code" href="class_f_c_d_texture.html">00046</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_texture.html">FCDTexture</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_entity.html">FCDEntity</a>
46<a name="l00047"></a>00047 {
47<a name="l00048"></a>00048 <span class="keyword">private</span>:
48<a name="l00049"></a>00049     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
49<a name="l00050"></a>00050
50<a name="l00051"></a>00051     FUDaeTextureChannel::Channel textureChannel; <span class="comment">// COLLADA 1.3 backward compatibility</span>
51<a name="l00052"></a>00052     <a class="code" href="class_f_c_d_image.html">FCDImage</a>* image;
52<a name="l00053"></a>00053     string subId;
53<a name="l00054"></a>00054
54<a name="l00055"></a>00055     <span class="comment">// Always preset, this parameter hold the map channel/uv set index</span>
55<a name="l00056"></a>00056     <a class="code" href="class_f_c_d_effect_parameter_int.html">FCDEffectParameterInt</a>* set;
56<a name="l00057"></a>00057
57<a name="l00058"></a>00058     <span class="comment">// Texture color multiplier</span>
58<a name="l00059"></a>00059 <span class="keywordtype">float</span> multiplier; <span class="comment">// Max-specific</span>
59<a name="l00060"></a>00060
60<a name="l00061"></a>00061     <span class="comment">// Placement parameters. Yes, there's a ton of them [Maya-only]</span>
61<a name="l00062"></a>00062 <span class="keywordtype">bool</span> hasProjection3D;
62<a name="l00063"></a>00063 <span class="keywordtype">bool</span> hasPlacement2D;
63<a name="l00064"></a>00064     FUDaeBlendMode::Mode blendMode;
64<a name="l00065"></a>00065
65<a name="l00066"></a>00066     <span class="comment">// 2D placement [Maya-only]</span>
66<a name="l00067"></a>00067 <span class="keywordtype">float</span> wrapU, wrapV, mirrorU, mirrorV, stagger, fast; <span class="comment">// animated, but should really be booleans</span>
67<a name="l00068"></a>00068 <span class="keywordtype">float</span> coverageU, coverageV, translateFrameU, translateFrameV, rotateFrame;
68<a name="l00069"></a>00069 <span class="keywordtype">float</span> repeatU, repeatV, offsetU, offsetV, rotateUV, noiseU, noiseV;
69<a name="l00070"></a>00070
70<a name="l00071"></a>00071     <span class="comment">// 3D projection [Maya-only]</span>
71<a name="l00072"></a>00072 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> projectionMatrix;
72<a name="l00073"></a>00073     fstring projectionType;
73<a name="l00074"></a>00074
74<a name="l00075"></a>00075 <span class="keyword">public</span>:
75<a name="l00079"></a>00079     <a class="code" href="class_f_c_d_texture.html">FCDTexture</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document);
76<a name="l00080"></a>00080
77<a name="l00083"></a>00083 <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_texture.html">FCDTexture</a>();
78<a name="l00084"></a>00084
79<a name="l00089"></a><a class="code" href="class_f_c_d_texture.html#e102500d840fa145c37cd05aa2f2d6c0">00089</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> TEXTURE; }
80<a name="l00090"></a>00090
81<a name="l00096"></a><a class="code" href="class_f_c_d_texture.html#202f15f6a691d2cbc43f4fec257c76bb">00096</a>     FUDaeTextureChannel::Channel GetTextureChannel()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> textureChannel; }
82<a name="l00097"></a>00097
83<a name="l00101"></a><a class="code" href="class_f_c_d_texture.html#673c45380da9b69a37ad7a4a02676653">00101</a>     <a class="code" href="class_f_c_d_image.html">FCDImage</a>* GetImage() { <span class="keywordflow">return</span> image; }
84<a name="l00102"></a><a class="code" href="class_f_c_d_texture.html#9050e26a4d7146f620fc142b9e5686eb">00102</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_image.html">FCDImage</a>* GetImage()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> image; }
85<a name="l00106"></a><a class="code" href="class_f_c_d_texture.html#eb258593652b88fff877fff1ef8012d3">00106</a>     <span class="keywordtype">void</span> SetImage(<a class="code" href="class_f_c_d_image.html">FCDImage</a>* _image) { image = _image; }
86<a name="l00107"></a>00107
87<a name="l00111"></a><a class="code" href="class_f_c_d_texture.html#4235750360d60f3fd8b1007743d7122b">00111</a>     <a class="code" href="class_f_c_d_effect_parameter_int.html">FCDEffectParameterInt</a>* GetSet() { <span class="keywordflow">return</span> set; }
88<a name="l00112"></a><a class="code" href="class_f_c_d_texture.html#00cee43e86f98b9d150240a81ca75c21">00112</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_effect_parameter_int.html">FCDEffectParameterInt</a>* GetSet()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> set; }
89<a name="l00117"></a><a class="code" href="class_f_c_d_texture.html#9e04161eb5ed58c3e9866eca4fb73f07">00117</a>     FUDaeBlendMode::Mode GetBlendMode()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> blendMode; }
90<a name="l00118"></a>00118
91<a name="l00122"></a><a class="code" href="class_f_c_d_texture.html#bbef0ecbaf88a5a56f1df439a6dbb5bf">00122</a>     <span class="keywordtype">void</span> SetBlendMode(FUDaeBlendMode::Mode mode) { blendMode = mode; }
92<a name="l00123"></a>00123
93<a name="l00126"></a><a class="code" href="class_f_c_d_texture.html#67bd0f6a0d6cc60a3cbbb3e8fa8e7eda">00126</a>     <span class="keyword">const</span> string&amp; GetSubId()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> subId; }
94<a name="l00127"></a>00127
95<a name="l00130"></a><a class="code" href="class_f_c_d_texture.html#86ee543fa08c56aca9c13cd8cf9087e0">00130</a>     <span class="keywordtype">void</span> SetSubId(<span class="keyword">const</span> string&amp; _subId) { subId = _subId; }
96<a name="l00131"></a>00131
97<a name="l00137"></a><a class="code" href="class_f_c_d_texture.html#08f22a67b215970002b19a5d639d8f36">00137</a>     <span class="keywordtype">float</span>&amp; GetMultiplier() { <span class="keywordflow">return</span> multiplier; }
98<a name="l00138"></a><a class="code" href="class_f_c_d_texture.html#a9e233c16cfbc0e315edf7172e3d7831">00138</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetMultiplier()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> multiplier; }
99<a name="l00144"></a><a class="code" href="class_f_c_d_texture.html#832bb05c17cf0a5af277211bed1ff6cb">00144</a>     <span class="keywordtype">void</span> SetMultiplier(<span class="keywordtype">float</span> _multiplier) { multiplier = _multiplier; }
100<a name="l00145"></a>00145
101<a name="l00149"></a><a class="code" href="class_f_c_d_texture.html#205f639d3b3081e470164e3341447e0a">00149</a>     <span class="keywordtype">bool</span> HasPlacement2D()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasPlacement2D; }
102<a name="l00150"></a>00150
103<a name="l00152"></a>00152 <span class="keywordtype">void</span> ClearPlacement2D();
104<a name="l00153"></a>00153
105<a name="l00158"></a><a class="code" href="class_f_c_d_texture.html#a6c93de7a5849e7468c36cc2f90eda25">00158</a>     <span class="keywordtype">float</span>&amp; GetWrapU() { <span class="keywordflow">return</span> wrapU; }
106<a name="l00159"></a><a class="code" href="class_f_c_d_texture.html#bbee24120509beb922a0fa70e65db999">00159</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetWrapU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> wrapU; }
107<a name="l00164"></a><a class="code" href="class_f_c_d_texture.html#4db6a8fd6f7411f95a64e40973b6fc7e">00164</a>     <span class="keywordtype">void</span> SetWrapU(<span class="keywordtype">bool</span> _wrapU) { wrapU = _wrapU ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
108<a name="l00165"></a>00165
109<a name="l00170"></a><a class="code" href="class_f_c_d_texture.html#7d09d543afb541f2c5764b7fc5c8c56f">00170</a>     <span class="keywordtype">float</span>&amp; GetWrapV() { <span class="keywordflow">return</span> wrapV; }
110<a name="l00171"></a><a class="code" href="class_f_c_d_texture.html#6641f347c903b08b6f92eb7643710b28">00171</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetWrapV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> wrapV; }
111<a name="l00176"></a><a class="code" href="class_f_c_d_texture.html#057e71237585b3782a414b8b40a7adc9">00176</a>     <span class="keywordtype">void</span> SetWrapV(<span class="keywordtype">bool</span> _wrapV) { wrapV = _wrapV ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
112<a name="l00177"></a>00177
113<a name="l00182"></a><a class="code" href="class_f_c_d_texture.html#d5ab6a253743a0dd2e082ed7d70035d8">00182</a>     <span class="keywordtype">float</span>&amp; GetMirrorU() { <span class="keywordflow">return</span> mirrorU; }
114<a name="l00183"></a><a class="code" href="class_f_c_d_texture.html#bc57715a39c1d5f56596582c9e39cced">00183</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetMirrorU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mirrorU; }
115<a name="l00188"></a><a class="code" href="class_f_c_d_texture.html#0c00e023b56369dd9e1ec9e02a0cab67">00188</a>     <span class="keywordtype">void</span> SetMirrorU(<span class="keywordtype">bool</span> _mirrorU) { mirrorU = _mirrorU ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
116<a name="l00189"></a>00189
117<a name="l00194"></a><a class="code" href="class_f_c_d_texture.html#215c72ae667757f6c39b5c8165be15c0">00194</a>     <span class="keywordtype">float</span>&amp; GetMirrorV() { <span class="keywordflow">return</span> mirrorV; }
118<a name="l00195"></a><a class="code" href="class_f_c_d_texture.html#8aeb4757b89bfcfb74d0f8de75c012c6">00195</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetMirrorV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mirrorV; }
119<a name="l00200"></a><a class="code" href="class_f_c_d_texture.html#77abaf13407dbd9c02343d224060b873">00200</a>     <span class="keywordtype">void</span> SetMirrorV(<span class="keywordtype">bool</span> _mirrorV) { mirrorV = _mirrorV ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
120<a name="l00201"></a>00201
121<a name="l00206"></a><a class="code" href="class_f_c_d_texture.html#338a4703f5b52842a18defd6be7d20a4">00206</a>     <span class="keywordtype">float</span>&amp; GetStagger() { <span class="keywordflow">return</span> stagger; }
122<a name="l00207"></a><a class="code" href="class_f_c_d_texture.html#ce2b8339bda3df88a011e75cd5183fd3">00207</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetStagger()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> stagger; }
123<a name="l00212"></a><a class="code" href="class_f_c_d_texture.html#0c0b401a6f970b2d7602a811f7ba1afe">00212</a>     <span class="keywordtype">void</span> SetStagger(<span class="keywordtype">bool</span> _stagger) { stagger = _stagger ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
124<a name="l00213"></a>00213
125<a name="l00219"></a><a class="code" href="class_f_c_d_texture.html#378f55750e9ccc6c07fc390738219bb7">00219</a>     <span class="keywordtype">float</span>&amp; GetFast() { <span class="keywordflow">return</span> fast; }
126<a name="l00220"></a><a class="code" href="class_f_c_d_texture.html#2e00969364275783cc77c7ce8fd4558c">00220</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetFast()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fast; }
127<a name="l00226"></a><a class="code" href="class_f_c_d_texture.html#36ae6c1b0960312ff7df603e244a7ac5">00226</a>     <span class="keywordtype">void</span> SetFast(<span class="keywordtype">bool</span> _fast) { fast = _fast ? 1.0f : 0.0f; hasPlacement2D = <span class="keyword">true</span>; }
128<a name="l00227"></a>00227
129<a name="l00233"></a><a class="code" href="class_f_c_d_texture.html#36b982779246f2224112ec7e597744d5">00233</a>     <span class="keywordtype">float</span>&amp; GetCoverageU() { <span class="keywordflow">return</span> coverageU; }
130<a name="l00234"></a><a class="code" href="class_f_c_d_texture.html#c130a92a4b28fec55e49285005b01e78">00234</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetCoverageU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> coverageU; }
131<a name="l00239"></a><a class="code" href="class_f_c_d_texture.html#d8178e2b7feb4bb4612d1e6d364b9da5">00239</a>     <span class="keywordtype">void</span> SetCoverageU(<span class="keywordtype">float</span> _coverageU) { coverageU = _coverageU; hasPlacement2D = <span class="keyword">true</span>; }
132<a name="l00240"></a>00240
133<a name="l00246"></a><a class="code" href="class_f_c_d_texture.html#716f74b63ed5c3a2c808cd7789ee15c2">00246</a>     <span class="keywordtype">float</span>&amp; GetCoverageV() { <span class="keywordflow">return</span> coverageV; }
134<a name="l00247"></a><a class="code" href="class_f_c_d_texture.html#d3cf6ae35cc89dd1f2843eaac780156b">00247</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetCoverageV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> coverageV; }
135<a name="l00252"></a><a class="code" href="class_f_c_d_texture.html#29b5003cc4e5bb29a00f71098fda4775">00252</a>     <span class="keywordtype">void</span> SetCoverageV(<span class="keywordtype">float</span> _coverageV) { coverageV = _coverageV; hasPlacement2D = <span class="keyword">true</span>; }
136<a name="l00253"></a>00253
137<a name="l00259"></a><a class="code" href="class_f_c_d_texture.html#e0e7d9f3193658202a62857bb2f091b7">00259</a>     <span class="keywordtype">float</span>&amp; GetTranslateFrameU() { <span class="keywordflow">return</span> translateFrameU; }
138<a name="l00260"></a><a class="code" href="class_f_c_d_texture.html#1a757f3a27b0cb8f3435e2a56137086a">00260</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetTranslateFrameU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> translateFrameU; }
139<a name="l00266"></a><a class="code" href="class_f_c_d_texture.html#812ad6bfedee3fbe909c9818821c7707">00266</a>     <span class="keywordtype">void</span> SetTranslateFrameU(<span class="keywordtype">float</span> _translateFrameU) { translateFrameU = _translateFrameU; hasPlacement2D = <span class="keyword">true</span>; }
140<a name="l00267"></a>00267
141<a name="l00273"></a><a class="code" href="class_f_c_d_texture.html#6ba555e06d4d60b3adce23668d59ebd3">00273</a>     <span class="keywordtype">float</span>&amp; GetTranslateFrameV() { <span class="keywordflow">return</span> translateFrameV; }
142<a name="l00274"></a><a class="code" href="class_f_c_d_texture.html#708ae308ac331a0b64e8f2c067d4e1f0">00274</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetTranslateFrameV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> translateFrameV; }
143<a name="l00280"></a><a class="code" href="class_f_c_d_texture.html#5dea23d829f199d7f67fbfdbb43dba6b">00280</a>     <span class="keywordtype">void</span> SetTranslateFrameV(<span class="keywordtype">float</span> _translateFrameV) { translateFrameV = _translateFrameV; hasPlacement2D = <span class="keyword">true</span>; }
144<a name="l00281"></a>00281
145<a name="l00287"></a><a class="code" href="class_f_c_d_texture.html#f5853358fe3618f3ebffb5074be3f706">00287</a>     <span class="keywordtype">float</span>&amp; GetRotateFrame() { <span class="keywordflow">return</span> rotateFrame; }
146<a name="l00288"></a><a class="code" href="class_f_c_d_texture.html#8017881e2b96a49adbde189e849f2f92">00288</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetRotateFrame()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rotateFrame; }
147<a name="l00294"></a><a class="code" href="class_f_c_d_texture.html#4dad22c4bd1483b6c128bb31cf32248f">00294</a>     <span class="keywordtype">void</span> SetRotateFrame(<span class="keywordtype">float</span> _rotateFrame) { rotateFrame = _rotateFrame; hasPlacement2D = <span class="keyword">true</span>; }
148<a name="l00295"></a>00295
149<a name="l00299"></a><a class="code" href="class_f_c_d_texture.html#4f2655f755866c63e09ba1c441696e7b">00299</a>     <span class="keywordtype">float</span>&amp; GetRepeatU() { <span class="keywordflow">return</span> repeatU; }
150<a name="l00300"></a><a class="code" href="class_f_c_d_texture.html#a30d2ce5144c0a5335b3147b366a77b9">00300</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetRepeatU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> repeatU; }
151<a name="l00305"></a><a class="code" href="class_f_c_d_texture.html#db1357a570c225db6e0c29b8f2bdc130">00305</a>     <span class="keywordtype">void</span> SetRepeatU(<span class="keywordtype">float</span> _repeatU) { repeatU = _repeatU; hasPlacement2D = <span class="keyword">true</span>; }
152<a name="l00306"></a>00306
153<a name="l00310"></a><a class="code" href="class_f_c_d_texture.html#b43a058a9b337efdfc44fdcd857abafb">00310</a>     <span class="keywordtype">float</span>&amp; GetRepeatV() { <span class="keywordflow">return</span> repeatV; }
154<a name="l00311"></a><a class="code" href="class_f_c_d_texture.html#99da2fe12331d466c9d65a94f72807e2">00311</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetRepeatV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> repeatV; }
155<a name="l00316"></a><a class="code" href="class_f_c_d_texture.html#5b57b12e5ad9d365c07cdccf8c19ac9d">00316</a>     <span class="keywordtype">void</span> SetRepeatV(<span class="keywordtype">float</span> _repeatV) { repeatV = _repeatV; hasPlacement2D = <span class="keyword">true</span>; }
156<a name="l00317"></a>00317
157<a name="l00321"></a><a class="code" href="class_f_c_d_texture.html#ab18926069bb9bac213594849d58cba4">00321</a>     <span class="keywordtype">float</span>&amp; GetOffsetU() { <span class="keywordflow">return</span> offsetU; }
158<a name="l00322"></a><a class="code" href="class_f_c_d_texture.html#f90ef5f7af4fe4249d3ab76371ec7ecb">00322</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetOffsetU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> offsetU; }
159<a name="l00327"></a><a class="code" href="class_f_c_d_texture.html#e1de03ea111f57dbe1c20c51202e7847">00327</a>     <span class="keywordtype">void</span> SetOffsetU(<span class="keywordtype">float</span> _offsetU) { offsetU = _offsetU; hasPlacement2D = <span class="keyword">true</span>; }
160<a name="l00328"></a>00328
161<a name="l00332"></a><a class="code" href="class_f_c_d_texture.html#ad1fdeab8e0acdb0772d593233dec632">00332</a>     <span class="keywordtype">float</span>&amp; GetOffsetV() { <span class="keywordflow">return</span> offsetV; }
162<a name="l00333"></a><a class="code" href="class_f_c_d_texture.html#23e91345dc30ad06e19c4fe41681b3f4">00333</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetOffsetV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> offsetV; }
163<a name="l00338"></a><a class="code" href="class_f_c_d_texture.html#f26249ad8769ff5f5f64b4c3a59dec7c">00338</a>     <span class="keywordtype">void</span> SetOffsetV(<span class="keywordtype">float</span> _offsetV) { offsetV = _offsetV; hasPlacement2D = <span class="keyword">true</span>; }
164<a name="l00339"></a>00339
165<a name="l00343"></a><a class="code" href="class_f_c_d_texture.html#cecb6e3ce8042e805485f768518bfbf0">00343</a>     <span class="keywordtype">float</span>&amp; GetRotateUV() { <span class="keywordflow">return</span> rotateUV; }
166<a name="l00344"></a><a class="code" href="class_f_c_d_texture.html#26db2333de8f1e413b220b5d8a47f7e3">00344</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetRotateUV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rotateUV; }
167<a name="l00349"></a><a class="code" href="class_f_c_d_texture.html#99c14d69e4707d9f0bf79525835182b1">00349</a>     <span class="keywordtype">void</span> SetRotateUV(<span class="keywordtype">float</span> _rotateUV) { rotateUV = _rotateUV; hasPlacement2D = <span class="keyword">true</span>; }
168<a name="l00350"></a>00350
169<a name="l00354"></a><a class="code" href="class_f_c_d_texture.html#e9ba2f7fcc41f6ff0f38becfff21eb96">00354</a>     <span class="keywordtype">float</span>&amp; GetNoiseU() { <span class="keywordflow">return</span> noiseU; }
170<a name="l00355"></a><a class="code" href="class_f_c_d_texture.html#030e977c5d9ab6486991b4eb45aa7c19">00355</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetNoiseU()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> noiseU; }
171<a name="l00360"></a><a class="code" href="class_f_c_d_texture.html#aa4f80eb5ff8b806784bfe5585b73627">00360</a>     <span class="keywordtype">void</span> SetNoiseU(<span class="keywordtype">float</span> _noiseU) { noiseU = _noiseU; hasPlacement2D = <span class="keyword">true</span>; }
172<a name="l00361"></a>00361
173<a name="l00365"></a><a class="code" href="class_f_c_d_texture.html#3ea289590be217dbce6f54187a2f37bc">00365</a>     <span class="keywordtype">float</span>&amp; GetNoiseV() { <span class="keywordflow">return</span> noiseV; }
174<a name="l00366"></a><a class="code" href="class_f_c_d_texture.html#f60fc2a44bbc0cef09d897f753f8bdf1">00366</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; GetNoiseV()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> noiseV; }
175<a name="l00371"></a><a class="code" href="class_f_c_d_texture.html#1bbfb6e251eff2af88fa8ba63a3e86b7">00371</a>     <span class="keywordtype">void</span> SetNoiseV(<span class="keywordtype">float</span> _noiseV) { noiseV = _noiseV; hasPlacement2D = <span class="keyword">true</span>; }
176<a name="l00372"></a>00372
177<a name="l00376"></a><a class="code" href="class_f_c_d_texture.html#e5226d1e495409ed3b5fa4fd987f3a83">00376</a>     <span class="keywordtype">bool</span> HasProjection3D()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasProjection3D; }
178<a name="l00377"></a>00377
179<a name="l00379"></a>00379 <span class="keywordtype">void</span> ClearProjection3D();
180<a name="l00380"></a>00380
181<a name="l00385"></a><a class="code" href="class_f_c_d_texture.html#2a44e499859e9c2e8e6d265cb33d6cc7">00385</a>     <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; GetProjectionMatrix() { <span class="keywordflow">return</span> projectionMatrix; }
182<a name="l00386"></a><a class="code" href="class_f_c_d_texture.html#d11a66e8acc5d030fe54e2815a54aa02">00386</a>     <span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; GetProjectionMatrix()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> projectionMatrix; }
183<a name="l00392"></a><a class="code" href="class_f_c_d_texture.html#44d9f31f20f085ebe2288533f593fa95">00392</a>     <span class="keywordtype">void</span> SetProjectionMatrix(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; matrix) { projectionMatrix = matrix; hasProjection3D = <span class="keyword">true</span>; }
184<a name="l00393"></a>00393     
185<a name="l00397"></a><a class="code" href="class_f_c_d_texture.html#dd87bd47dbc8ab5979d54bebe3c1cbfb">00397</a>     <span class="keyword">const</span> fstring&amp; GetProjectionType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> projectionType; }
186<a name="l00398"></a>00398
187<a name="l00402"></a><a class="code" href="class_f_c_d_texture.html#970f24f8f35945e191e277cc144597f0">00402</a>     <span class="keywordtype">void</span> SetProjectionType(<span class="keyword">const</span> fstring&amp; type) { projectionType = type; hasProjection3D = <span class="keyword">true</span>; }
188<a name="l00403"></a>00403
189<a name="l00410"></a>00410 <a class="code" href="class_f_c_d_effect_parameter.html">FCDEffectParameter</a>* FindParameterBySemantic(<span class="keyword">const</span> string&amp; semantic);
190<a name="l00411"></a>00411
191<a name="l00417"></a>00417 <span class="keywordtype">void</span> FindParametersBySemantic(<span class="keyword">const</span> string&amp; semantic, <a class="code" href="class_f_c_d_effect_parameter_list.html">FCDEffectParameterList</a>&amp; parameters);
192<a name="l00418"></a>00418
193<a name="l00423"></a>00423 <span class="keywordtype">void</span> FindParametersByReference(<span class="keyword">const</span> string&amp; reference, <a class="code" href="class_f_c_d_effect_parameter_list.html">FCDEffectParameterList</a>&amp; parameters);
194<a name="l00424"></a>00424
195<a name="l00428"></a>00428     <a class="code" href="class_f_c_d_texture.html">FCDTexture</a>* <a class="code" href="class_f_c_d_entity.html#c1d7dc557e79f42de2b9f951ff3cffcc">Clone</a>();
196<a name="l00429"></a>00429
197<a name="l00434"></a>00434 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromTextureXML(xmlNode* textureNode);
198<a name="l00435"></a>00435
199<a name="l00441"></a>00441 <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* textureNode);
200<a name="l00442"></a>00442
201<a name="l00446"></a>00446 <span class="keyword">virtual</span> xmlNode* <a class="code" href="class_f_c_d_entity.html#b27f0c175c3f8fd7064cde48bcf1d7a0">WriteToXML</a>(xmlNode* parentNode);
202<a name="l00447"></a>00447
203<a name="l00448"></a>00448 <span class="keyword">private</span>:
204<a name="l00449"></a>00449     <span class="comment">// Read in the Maya-specific texture placement parameters and look for a texture projection program</span>
205<a name="l00450"></a>00450 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadPlacementXML(xmlNode* techniqueNode);
206<a name="l00451"></a>00451 };
207<a name="l00452"></a>00452
208<a name="l00453"></a>00453 <span class="preprocessor">#endif // _FCD_TEXTURE_H_</span>
209</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
210<a href="http://www.doxygen.org/index.html">
211<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
212</body>
213</html>
Note: See TracBrowser for help on using the repository browser.