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/FCDocument.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 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 Pages</span></a></li> |
---|
16 | </ul></div> |
---|
17 | <div class="tabs"> |
---|
18 | <ul> |
---|
19 | <li><a href="files.html"><span>File List</span></a></li> |
---|
20 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
21 | </ul></div> |
---|
22 | <h1>FCDocument/FCDocument.h</h1><a href="_f_c_document_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 _FC_DOCUMENT_H_</span> |
---|
34 | <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FC_DOCUMENT_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_u_object_8h.html">FUtils/FUObject.h</a>"</span> |
---|
37 | <a name="l00021"></a>00021 |
---|
38 | <a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">class</span> T> <span class="keyword">class </span><a class="code" href="class_f_c_d_library.html">FCDLibrary</a>; |
---|
39 | <a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">class</span> T> <span class="keyword">class </span><a class="code" href="class_f_u_unique_string_map_t.html">FUUniqueStringMapT</a>; |
---|
40 | <a name="l00024"></a>00024 |
---|
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>00027 <span class="keyword">class </span>FCDAnimationClip; |
---|
44 | <a name="l00028"></a>00028 <span class="keyword">class </span><a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>; |
---|
45 | <a name="l00029"></a>00029 <span class="keyword">class </span>FCDAsset; |
---|
46 | <a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="class_f_c_d_camera.html">FCDCamera</a>; |
---|
47 | <a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="class_f_c_d_controller.html">FCDController</a>; |
---|
48 | <a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="class_f_c_d_effect.html">FCDEffect</a>; |
---|
49 | <a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="class_f_c_d_geometry.html">FCDGeometry</a>; |
---|
50 | <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="class_f_c_d_image.html">FCDImage</a>; |
---|
51 | <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="class_f_c_d_light.html">FCDLight</a>; |
---|
52 | <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="class_f_c_d_material.html">FCDMaterial</a>; |
---|
53 | <a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>; |
---|
54 | <a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="class_f_c_d_object.html">FCDObject</a>; |
---|
55 | <a name="l00039"></a>00039 <span class="keyword">class </span>FCDPhysicsMaterial; |
---|
56 | <a name="l00040"></a>00040 <span class="keyword">class </span>FCDPhysicsModel; |
---|
57 | <a name="l00041"></a>00041 <span class="keyword">class </span>FCDPhysicsSceneNode; |
---|
58 | <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="class_f_c_d_texture.html">FCDTexture</a>; |
---|
59 | <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>; |
---|
60 | <a name="l00044"></a>00044 <span class="keyword">class </span>FUFileManager; |
---|
61 | <a name="l00045"></a>00045 |
---|
62 | <a name="l00050"></a><a class="code" href="class_f_c_d_layer.html">00050</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_layer.html">FCDLayer</a> |
---|
63 | <a name="l00051"></a>00051 { |
---|
64 | <a name="l00052"></a>00052 <span class="keyword">public</span>: |
---|
65 | <a name="l00053"></a><a class="code" href="class_f_c_d_layer.html#030b54a21294a44b4500a0c5be89ae8b">00053</a> string name; |
---|
66 | <a name="l00054"></a><a class="code" href="class_f_c_d_layer.html#63c94e949b25992748a0f334b8eb2a45">00054</a> <a class="code" href="classvector.html">StringList</a> objects; |
---|
67 | <a name="l00055"></a>00055 }; |
---|
68 | <a name="l00056"></a>00056 |
---|
69 | <a name="l00057"></a><a class="code" href="_f_c_document_8h.html#47eca22019a0f2fd2a06464292ae4bd6">00057</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector<FCDMaterial*></a> <a class="code" href="classvector.html">FCDMaterialList</a>; |
---|
70 | <a name="l00058"></a><a class="code" href="_f_c_document_8h.html#2c80e40a522a1d6884a190349e10341a">00058</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector<FCDAnimated*></a> <a class="code" href="classvector.html">FCDAnimatedList</a>; |
---|
71 | <a name="l00059"></a><a class="code" href="_f_c_document_8h.html#137756c6280e82d7cd62034b3f04e11f">00059</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector<FCDAnimationChannel*></a> <a class="code" href="classvector.html">FCDAnimationChannelList</a>; |
---|
72 | <a name="l00060"></a><a class="code" href="_f_c_document_8h.html#cccf4fe3089e780d988dbdf55d3adae0">00060</a> <span class="keyword">typedef</span> <a class="code" href="classmap.html">map<const float*, FCDAnimated*></a> <a class="code" href="classmap.html">FCDAnimatedValueMap</a>; |
---|
73 | <a name="l00061"></a><a class="code" href="_f_c_document_8h.html#9dbcece62b9c249c35027f130fcd3964">00061</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector<FCDLayer*></a> <a class="code" href="classvector.html">FCDLayerList</a>; |
---|
74 | <a name="l00062"></a><a class="code" href="_f_c_document_8h.html#22f2c62e1fc610b7f2b2e1081536578b">00062</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector<FCDObject*></a> <a class="code" href="classvector.html">FCDObjectList</a>; |
---|
75 | <a name="l00064"></a><a class="code" href="_f_c_document_8h.html#57d45e5321165349349287ea97dfb48e">00064</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDAnimation></a> <a class="code" href="class_f_c_d_library.html">FCDAnimationLibrary</a>; |
---|
76 | <a name="l00065"></a><a class="code" href="_f_c_document_8h.html#74bd1908b99bb53fa0254ebca06927b2">00065</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDAnimationClip></a> <a class="code" href="class_f_c_d_library.html">FCDAnimationClipLibrary</a>; |
---|
77 | <a name="l00066"></a><a class="code" href="_f_c_document_8h.html#b6279b6bc21f767b82f149f215cd9992">00066</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDCamera></a> <a class="code" href="class_f_c_d_library.html">FCDCameraLibrary</a>; |
---|
78 | <a name="l00067"></a><a class="code" href="_f_c_document_8h.html#22bf36412fc48661021a1978714fae55">00067</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDController></a> <a class="code" href="class_f_c_d_library.html">FCDControllerLibrary</a>; |
---|
79 | <a name="l00068"></a><a class="code" href="_f_c_document_8h.html#af38e757fdd9d6fafcca17ef083c02a7">00068</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDGeometry></a> <a class="code" href="class_f_c_d_library.html">FCDGeometryLibrary</a>; |
---|
80 | <a name="l00069"></a><a class="code" href="_f_c_document_8h.html#b5559101f03eaa1423ccffec5b325b74">00069</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDImage></a> <a class="code" href="class_f_c_d_library.html">FCDImageLibrary</a>; |
---|
81 | <a name="l00070"></a><a class="code" href="_f_c_document_8h.html#febcd7340edd6cc703ee365f3fdeff54">00070</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDLight></a> <a class="code" href="class_f_c_d_library.html">FCDLightLibrary</a>; |
---|
82 | <a name="l00071"></a><a class="code" href="_f_c_document_8h.html#c2aabfb5e7aa01319379c8600d8c9821">00071</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDSceneNode></a> <a class="code" href="class_f_c_d_library.html">FCDVisualSceneNodeLibrary</a>; |
---|
83 | <a name="l00072"></a><a class="code" href="_f_c_document_8h.html#5fa1b77185800879d9467ae17ecd5cec">00072</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDPhysicsModel></a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsModelLibrary</a>; |
---|
84 | <a name="l00073"></a><a class="code" href="_f_c_document_8h.html#e3bde7521f644a4729b86b21042247f4">00073</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDPhysicsMaterial></a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsMaterialLibrary</a>; |
---|
85 | <a name="l00074"></a><a class="code" href="_f_c_document_8h.html#54d44bf98c184c27fc9dd641628856c9">00074</a> <span class="keyword">typedef</span> <a class="code" href="class_f_c_d_library.html">FCDLibrary<FCDPhysicsSceneNode></a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsSceneLibrary</a>; |
---|
86 | <a name="l00075"></a><a class="code" href="_f_c_document_8h.html#5345e7f7db7cea30b601fd4dd5857a85">00075</a> <span class="keyword">typedef</span> <a class="code" href="class_f_u_unique_string_map_t.html">FUUniqueStringMapT<FUSStringBuilder></a> <a class="code" href="class_f_u_unique_string_map_t.html">FUSUniqueStringMap</a>; |
---|
87 | <a name="l00090"></a><a class="code" href="class_f_c_document.html">00090</a> <span class="keyword">class </span>FCOLLADA_EXPORT FCDocument : <span class="keyword">public</span> <a class="code" href="class_f_u_object_container.html">FUObjectContainer</a> |
---|
88 | <a name="l00091"></a>00091 { |
---|
89 | <a name="l00092"></a>00092 <span class="keyword">private</span>: |
---|
90 | <a name="l00093"></a>00093 FUFileManager* fileManager; |
---|
91 | <a name="l00094"></a>00094 <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* visualSceneRoot; |
---|
92 | <a name="l00095"></a>00095 FCDPhysicsSceneNode* physicsSceneRoot; |
---|
93 | <a name="l00096"></a>00096 <a class="code" href="class_f_u_unique_string_map_t.html">FUSUniqueStringMap</a>* uniqueNameMap; |
---|
94 | <a name="l00097"></a>00097 |
---|
95 | <a name="l00098"></a>00098 <span class="comment">// Document parameters</span> |
---|
96 | <a name="l00099"></a>00099 FCDAsset* asset; |
---|
97 | <a name="l00100"></a>00100 <span class="keywordtype">float</span> lengthUnitWanted, lengthUnitConversion; |
---|
98 | <a name="l00101"></a>00101 <span class="keywordtype">bool</span> hasStartTime, hasEndTime; |
---|
99 | <a name="l00102"></a>00102 <span class="keywordtype">float</span> startTime, endTime; <span class="comment">// Maya-only</span> |
---|
100 | <a name="l00103"></a>00103 <a class="code" href="classvector.html">FCDLayerList</a> layers; <span class="comment">// Maya-only</span> |
---|
101 | <a name="l00104"></a>00104 |
---|
102 | <a name="l00105"></a>00105 <span class="comment">// Parsed and merged libraries</span> |
---|
103 | <a name="l00106"></a>00106 <a class="code" href="class_f_c_d_library.html">FCDAnimationLibrary</a>* animationLibrary; |
---|
104 | <a name="l00107"></a>00107 <a class="code" href="class_f_c_d_library.html">FCDAnimationClipLibrary</a>* animationClipLibrary; |
---|
105 | <a name="l00108"></a>00108 <a class="code" href="class_f_c_d_library.html">FCDCameraLibrary</a>* cameraLibrary; |
---|
106 | <a name="l00109"></a>00109 <a class="code" href="class_f_c_d_library.html">FCDControllerLibrary</a>* controllerLibrary; |
---|
107 | <a name="l00110"></a>00110 <a class="code" href="class_f_c_d_library.html">FCDGeometryLibrary</a>* geometryLibrary; |
---|
108 | <a name="l00111"></a>00111 <a class="code" href="class_f_c_d_library.html">FCDImageLibrary</a>* imageLibrary; |
---|
109 | <a name="l00112"></a>00112 <a class="code" href="class_f_c_d_library.html">FCDLightLibrary</a>* lightLibrary; |
---|
110 | <a name="l00113"></a>00113 <a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>* materialLibrary; |
---|
111 | <a name="l00114"></a>00114 <a class="code" href="class_f_c_d_library.html">FCDPhysicsModelLibrary</a>* physicsModelLibrary; |
---|
112 | <a name="l00115"></a>00115 <a class="code" href="class_f_c_d_library.html">FCDPhysicsMaterialLibrary</a>* physicsMaterialLibrary; |
---|
113 | <a name="l00116"></a>00116 <a class="code" href="class_f_c_d_library.html">FCDPhysicsSceneLibrary</a>* physicsSceneLibrary; |
---|
114 | <a name="l00117"></a>00117 <a class="code" href="class_f_c_d_library.html">FCDVisualSceneNodeLibrary</a>* visualSceneLibrary; |
---|
115 | <a name="l00118"></a>00118 |
---|
116 | <a name="l00119"></a>00119 <span class="comment">// Animated values</span> |
---|
117 | <a name="l00120"></a>00120 <a class="code" href="classvector.html">FCDAnimatedList</a> animatedValues; |
---|
118 | <a name="l00121"></a>00121 <a class="code" href="classmap.html">FCDAnimatedValueMap</a> animatedValueMap; |
---|
119 | <a name="l00122"></a>00122 |
---|
120 | <a name="l00123"></a>00123 <a class="code" href="classvector.html">StringList</a> postCmds; |
---|
121 | <a name="l00124"></a>00124 |
---|
122 | <a name="l00125"></a>00125 <span class="keyword">public</span>: |
---|
123 | <a name="l00127"></a>00127 FCDocument(); |
---|
124 | <a name="l00128"></a>00128 |
---|
125 | <a name="l00130"></a>00130 <span class="keyword">virtual</span> ~FCDocument(); |
---|
126 | <a name="l00131"></a>00131 |
---|
127 | <a name="l00134"></a><a class="code" href="class_f_c_document.html#7bcebf9648d3cd1e0cd1ef797caa5a7c">00134</a> FCDAsset* GetAsset() { <span class="keywordflow">return</span> asset; } |
---|
128 | <a name="l00135"></a><a class="code" href="class_f_c_document.html#170b27aa27d0ac2570a5eecbc133d80b">00135</a> <span class="keyword">const</span> FCDAsset* GetAsset()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> asset; } |
---|
129 | <a name="l00140"></a><a class="code" href="class_f_c_document.html#1d0a8cfe7e696e46c7b76bfe80ea3fc4">00140</a> FUFileManager* GetFileManager() { <span class="keywordflow">return</span> fileManager; } |
---|
130 | <a name="l00141"></a><a class="code" href="class_f_c_document.html#18ba25e6ff8b20da6f3aa244d95f13d9">00141</a> <span class="keyword">const</span> FUFileManager* GetFileManager()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fileManager; } |
---|
131 | <a name="l00145"></a><a class="code" href="class_f_c_document.html#db9a4f759f4ee9ea0ec042feac7b11ec">00145</a> <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* GetVisualSceneRoot() { <span class="keywordflow">return</span> visualSceneRoot; } |
---|
132 | <a name="l00146"></a><a class="code" href="class_f_c_document.html#990d5f2cc63d974ca939fba37a50584c">00146</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* GetVisualSceneRoot()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> visualSceneRoot; } |
---|
133 | <a name="l00150"></a><a class="code" href="class_f_c_document.html#969f0dcd911f96a9a1608b25d28d5fe7">00150</a> FCDPhysicsSceneNode* GetPhysicsSceneRoot() { <span class="keywordflow">return</span> physicsSceneRoot; } |
---|
134 | <a name="l00151"></a><a class="code" href="class_f_c_document.html#5caa8c15ec5d4b3026ac61825c0427f2">00151</a> <span class="keyword">const</span> FCDPhysicsSceneNode* GetPhysicsSceneRoot()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> physicsSceneRoot; } |
---|
135 | <a name="l00155"></a>00155 <span class="keyword">const</span> <a class="code" href="classvector.html">FCDMaterialList</a>& GetMaterialList(); |
---|
136 | <a name="l00156"></a>00156 |
---|
137 | <a name="l00159"></a><a class="code" href="class_f_c_document.html#51087f2b7e207acd9b91593a17a03ece">00159</a> <a class="code" href="class_f_u_unique_string_map_t.html">FUSUniqueStringMap</a>* GetUniqueNameMap() { <span class="keywordflow">return</span> uniqueNameMap; } |
---|
138 | <a name="l00160"></a><a class="code" href="class_f_c_document.html#744ec07e076dd3d407cf86cab133d9da">00160</a> <span class="keyword">const</span> <a class="code" href="class_f_u_unique_string_map_t.html">FUSUniqueStringMap</a>* GetUniqueNameMap()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> uniqueNameMap; } |
---|
139 | <a name="l00165"></a>00165 <span class="keyword">const</span> <a class="code" href="class_f_m_vector3.html">FMVector3</a>& GetUpAxis() <span class="keyword">const</span>; |
---|
140 | <a name="l00166"></a>00166 |
---|
141 | <a name="l00171"></a>00171 <span class="keywordtype">float</span> GetLengthUnit() <span class="keyword">const</span>; |
---|
142 | <a name="l00172"></a>00172 |
---|
143 | <a name="l00176"></a><a class="code" href="class_f_c_document.html#a5ec07aab0ca403dc139f4083f92b5bd">00176</a> <span class="keywordtype">float</span> GetLengthUnitConversion()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lengthUnitConversion; } |
---|
144 | <a name="l00177"></a>00177 |
---|
145 | <a name="l00181"></a><a class="code" href="class_f_c_document.html#c3dbb6bbfe8445399e556abd5ec12b7e">00181</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> SetLengthUnitWanted(<span class="keywordtype">float</span> wantedLengthUnit) { lengthUnitWanted = wantedLengthUnit; } |
---|
146 | <a name="l00182"></a>00182 |
---|
147 | <a name="l00185"></a><a class="code" href="class_f_c_document.html#a0d660d457f7cee9697153c953376b34">00185</a> <span class="keywordtype">bool</span> HasStartTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasStartTime; } |
---|
148 | <a name="l00188"></a><a class="code" href="class_f_c_document.html#a3464ee0cd90d36fa21be0138d9130ac">00188</a> <span class="keywordtype">float</span> GetStartTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> startTime; } |
---|
149 | <a name="l00191"></a><a class="code" href="class_f_c_document.html#2d645ebb0804a98b029f5385fbed4811">00191</a> <span class="keywordtype">void</span> SetStartTime(<span class="keywordtype">float</span> time) { startTime = time; hasStartTime = <span class="keyword">true</span>; } |
---|
150 | <a name="l00192"></a>00192 |
---|
151 | <a name="l00195"></a><a class="code" href="class_f_c_document.html#d6cb1ce5f04d20850096cf698c12d354">00195</a> <span class="keywordtype">bool</span> HasEndTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hasEndTime; } |
---|
152 | <a name="l00198"></a><a class="code" href="class_f_c_document.html#9527edd3502a061aed734aedd4b32db9">00198</a> <span class="keywordtype">float</span> GetEndTime()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> endTime; } |
---|
153 | <a name="l00201"></a><a class="code" href="class_f_c_document.html#8227ef2951a30bc86843d178cddfb9ab">00201</a> <span class="keywordtype">void</span> SetEndTime(<span class="keywordtype">float</span> time) { endTime = time; hasEndTime = <span class="keyword">true</span>; } |
---|
154 | <a name="l00202"></a>00202 |
---|
155 | <a name="l00205"></a><a class="code" href="class_f_c_document.html#4da787bc275a485f677aba9238cebbfc">00205</a> <a class="code" href="classvector.html">FCDLayerList</a>& GetLayers() { <span class="keywordflow">return</span> layers; } |
---|
156 | <a name="l00206"></a><a class="code" href="class_f_c_document.html#08b89768c49a07cdd9319bcc44c9747c">00206</a> <span class="keyword">const</span> <a class="code" href="classvector.html">FCDLayerList</a>& GetLayers()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> layers; } |
---|
157 | <a name="l00210"></a><a class="code" href="class_f_c_document.html#40b60296aad9c67c00e66ff739cea4e3">00210</a> size_t GetLayerCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> layers.size(); } |
---|
158 | <a name="l00211"></a>00211 |
---|
159 | <a name="l00216"></a><a class="code" href="class_f_c_document.html#7cee58d4d66a79a5dc37cc3853f214e6">00216</a> <a class="code" href="class_f_c_d_layer.html">FCDLayer</a>* GetLayer(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index < GetLayerCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> layers.at(index); } |
---|
160 | <a name="l00217"></a>00217 <span class="keyword">const</span> <a class="code" href="class_f_c_d_layer.html">FCDLayer</a>* GetLayer(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index < GetLayerCount(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> layers.at(index); } |
---|
161 | <a name="l00218"></a>00218 |
---|
162 | <a name="l00221"></a>00221 <a class="code" href="class_f_c_d_layer.html">FCDLayer</a>* AddLayer(); |
---|
163 | <a name="l00222"></a>00222 |
---|
164 | <a name="l00225"></a>00225 <span class="keywordtype">void</span> ReleaseLayer(<a class="code" href="class_f_c_d_layer.html">FCDLayer</a>* layer); |
---|
165 | <a name="l00226"></a>00226 |
---|
166 | <a name="l00232"></a><a class="code" href="class_f_c_document.html#c5b574a9a005b903cfc9e65ca73c5b4d">00232</a> <a class="code" href="class_f_c_d_library.html">FCDAnimationLibrary</a>* GetAnimationLibrary() { <span class="keywordflow">return</span> animationLibrary; } |
---|
167 | <a name="l00233"></a><a class="code" href="class_f_c_document.html#83d9efbb207fb3c5269f20f7254649ec">00233</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDAnimationLibrary</a>* GetAnimationLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> animationLibrary; } |
---|
168 | <a name="l00239"></a><a class="code" href="class_f_c_document.html#eaf85fb50ac173806e3835ba41175bed">00239</a> <a class="code" href="class_f_c_d_library.html">FCDAnimationClipLibrary</a>* GetAnimationClipLibrary() { <span class="keywordflow">return</span> animationClipLibrary; } |
---|
169 | <a name="l00240"></a><a class="code" href="class_f_c_document.html#3af1d6254bd19b8f8d607a3d478280f3">00240</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDAnimationClipLibrary</a>* GetAnimationClipLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> animationClipLibrary; } |
---|
170 | <a name="l00245"></a><a class="code" href="class_f_c_document.html#af837a4a0cb4939ad3611ed512a96846">00245</a> <a class="code" href="class_f_c_d_library.html">FCDCameraLibrary</a>* GetCameraLibrary() { <span class="keywordflow">return</span> cameraLibrary; } |
---|
171 | <a name="l00246"></a><a class="code" href="class_f_c_document.html#cabdb9a190f74c63457a5d80b46249ec">00246</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDCameraLibrary</a>* GetCameraLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> cameraLibrary; } |
---|
172 | <a name="l00251"></a><a class="code" href="class_f_c_document.html#7bb386de2a06c190a05c34342f6cc52d">00251</a> <a class="code" href="class_f_c_d_library.html">FCDControllerLibrary</a>* GetControllerLibrary() { <span class="keywordflow">return</span> controllerLibrary; } |
---|
173 | <a name="l00252"></a><a class="code" href="class_f_c_document.html#df1437beef61dff46a556b7ee92b4cd6">00252</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDControllerLibrary</a>* GetControllerLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> controllerLibrary; } |
---|
174 | <a name="l00258"></a><a class="code" href="class_f_c_document.html#315012dd8a8bffb0daac4ecf6043b99c">00258</a> <a class="code" href="class_f_c_d_library.html">FCDGeometryLibrary</a>* GetGeometryLibrary() { <span class="keywordflow">return</span> geometryLibrary; } |
---|
175 | <a name="l00259"></a><a class="code" href="class_f_c_document.html#9034430f7ad47e5722a11ebcf69ece5f">00259</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDGeometryLibrary</a>* GetGeometryLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> geometryLibrary; } |
---|
176 | <a name="l00264"></a><a class="code" href="class_f_c_document.html#4a558a5b2ede6f79c88490bec804c5bf">00264</a> <a class="code" href="class_f_c_d_library.html">FCDImageLibrary</a>* GetImageLibrary() { <span class="keywordflow">return</span> imageLibrary; } |
---|
177 | <a name="l00265"></a><a class="code" href="class_f_c_document.html#441927d7e7e226c5e3bf424dfd82bc36">00265</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDImageLibrary</a>* GetImageLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> imageLibrary; } |
---|
178 | <a name="l00271"></a><a class="code" href="class_f_c_document.html#cc976c699b742a4bc106a7e0ba6ebc78">00271</a> <a class="code" href="class_f_c_d_library.html">FCDLightLibrary</a>* GetLightLibrary() { <span class="keywordflow">return</span> lightLibrary; } |
---|
179 | <a name="l00272"></a><a class="code" href="class_f_c_document.html#1711fd46fb30138ae97465a4ca09eebf">00272</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDLightLibrary</a>* GetLightLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lightLibrary; } |
---|
180 | <a name="l00278"></a><a class="code" href="class_f_c_document.html#2f546dd15f5fa9433dc91151b89a5d0a">00278</a> <a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>* GetMaterialLibrary() { <span class="keywordflow">return</span> materialLibrary; } |
---|
181 | <a name="l00279"></a><a class="code" href="class_f_c_document.html#33ecc4525681f12b3d8fad5acdafa3c6">00279</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>* GetMaterialLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> materialLibrary; } |
---|
182 | <a name="l00285"></a><a class="code" href="class_f_c_document.html#a6569309d2facdbcfdd94e2970edd86c">00285</a> <a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>* GetEffectLibrary() { <span class="keywordflow">return</span> materialLibrary; } |
---|
183 | <a name="l00286"></a><a class="code" href="class_f_c_document.html#dabc30d971e36fa5c35b217f05257f5c">00286</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_material_library.html">FCDMaterialLibrary</a>* GetEffectLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> materialLibrary; } |
---|
184 | <a name="l00295"></a><a class="code" href="class_f_c_document.html#cdbe2f7a0512483cd7ce17e7be7a731f">00295</a> <a class="code" href="class_f_c_d_library.html">FCDVisualSceneNodeLibrary</a>* GetVisualSceneLibrary() { <span class="keywordflow">return</span> visualSceneLibrary; } |
---|
185 | <a name="l00296"></a><a class="code" href="class_f_c_document.html#579d4aa1534ed2c121ef5d96b9070a64">00296</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDVisualSceneNodeLibrary</a>* GetVisualSceneLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> visualSceneLibrary; } |
---|
186 | <a name="l00300"></a><a class="code" href="class_f_c_document.html#fa546a6ec51139a8403eb347e60e324d">00300</a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsModelLibrary</a>* GetPhysicsModelLibrary() { <span class="keywordflow">return</span> physicsModelLibrary; } |
---|
187 | <a name="l00301"></a><a class="code" href="class_f_c_document.html#42cd510b635b0b70b6d0897281bc2bc7">00301</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDPhysicsModelLibrary</a>* GetPhysicsModelLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> physicsModelLibrary; } |
---|
188 | <a name="l00305"></a><a class="code" href="class_f_c_document.html#9113c4ecdce4f1c0386c8840bace0149">00305</a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsMaterialLibrary</a>* GetPhysicsMaterialLibrary() { <span class="keywordflow">return</span> physicsMaterialLibrary; } |
---|
189 | <a name="l00306"></a><a class="code" href="class_f_c_document.html#b44faa0974e38b742b3ee3d98c4fc800">00306</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDPhysicsMaterialLibrary</a>* GetPhysicsMaterialLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> physicsMaterialLibrary; } |
---|
190 | <a name="l00311"></a><a class="code" href="class_f_c_document.html#b305ac355eb6300cc02c30644e55843c">00311</a> <a class="code" href="class_f_c_d_library.html">FCDPhysicsSceneLibrary</a>* GetPhysicsSceneLibrary() { <span class="keywordflow">return</span> physicsSceneLibrary;} |
---|
191 | <a name="l00312"></a><a class="code" href="class_f_c_document.html#109715cb032dca9fef65727596818f82">00312</a> <span class="keyword">const</span> <a class="code" href="class_f_c_d_library.html">FCDPhysicsSceneLibrary</a>* GetPhysicsSceneLibrary()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> physicsSceneLibrary;} |
---|
192 | <a name="l00317"></a>00317 <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* AddVisualScene(); |
---|
193 | <a name="l00318"></a>00318 |
---|
194 | <a name="l00322"></a>00322 FCDPhysicsSceneNode* AddPhysicsScene(); |
---|
195 | <a name="l00323"></a>00323 |
---|
196 | <a name="l00328"></a>00328 <span class="keywordtype">void</span> FindAnimationChannels(<span class="keyword">const</span> string& pointer, <a class="code" href="classvector.html">FCDAnimationChannelList</a>& channels); |
---|
197 | <a name="l00329"></a>00329 |
---|
198 | <a name="l00334"></a>00334 <span class="keywordtype">void</span> FindAnimationChannelsArrayIndices(xmlNode* targetArray, <a class="code" href="classvector.html">Int32List</a>& animatedIndices); |
---|
199 | <a name="l00335"></a>00335 |
---|
200 | <a name="l00340"></a>00340 <a class="code" href="class_f_c_d_animation.html">FCDAnimation</a>* FindAnimation(<span class="keyword">const</span> string& daeId); |
---|
201 | <a name="l00341"></a>00341 |
---|
202 | <a name="l00346"></a>00346 FCDAnimationClip* FindAnimationClip(<span class="keyword">const</span> string& daeId); |
---|
203 | <a name="l00347"></a>00347 |
---|
204 | <a name="l00351"></a>00351 <a class="code" href="class_f_c_d_camera.html">FCDCamera</a>* FindCamera(<span class="keyword">const</span> string& daeId); |
---|
205 | <a name="l00352"></a>00352 |
---|
206 | <a name="l00356"></a>00356 <a class="code" href="class_f_c_d_controller.html">FCDController</a>* FindController(<span class="keyword">const</span> string& daeId); |
---|
207 | <a name="l00357"></a>00357 |
---|
208 | <a name="l00361"></a>00361 <a class="code" href="class_f_c_d_effect.html">FCDEffect</a>* FindEffect(<span class="keyword">const</span> string& daeId); |
---|
209 | <a name="l00362"></a>00362 |
---|
210 | <a name="l00366"></a>00366 <a class="code" href="class_f_c_d_geometry.html">FCDGeometry</a>* FindGeometry(<span class="keyword">const</span> string& daeId); |
---|
211 | <a name="l00367"></a>00367 |
---|
212 | <a name="l00371"></a>00371 <a class="code" href="class_f_c_d_image.html">FCDImage</a>* FindImage(<span class="keyword">const</span> string& daeId); |
---|
213 | <a name="l00372"></a>00372 |
---|
214 | <a name="l00376"></a>00376 <a class="code" href="class_f_c_d_light.html">FCDLight</a>* FindLight(<span class="keyword">const</span> string& daeId); |
---|
215 | <a name="l00377"></a>00377 |
---|
216 | <a name="l00381"></a>00381 <a class="code" href="class_f_c_d_material.html">FCDMaterial</a>* FindMaterial(<span class="keyword">const</span> string& daeId); |
---|
217 | <a name="l00382"></a>00382 |
---|
218 | <a name="l00386"></a>00386 <a class="code" href="class_f_c_d_texture.html">FCDTexture</a>* FindTexture(<span class="keyword">const</span> string& daeId); |
---|
219 | <a name="l00387"></a>00387 |
---|
220 | <a name="l00391"></a>00391 <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* FindVisualScene(<span class="keyword">const</span> string& daeId); |
---|
221 | <a name="l00392"></a>00392 |
---|
222 | <a name="l00396"></a>00396 FCDPhysicsSceneNode* FindPhysicsScene(<span class="keyword">const</span> string& daeId); |
---|
223 | <a name="l00397"></a>00397 |
---|
224 | <a name="l00401"></a>00401 FCDPhysicsMaterial* FindPhysicsMaterial(<span class="keyword">const</span> string& daeId); |
---|
225 | <a name="l00402"></a>00402 |
---|
226 | <a name="l00406"></a>00406 FCDPhysicsModel* FindPhysicsModel(<span class="keyword">const</span> string& daeId); |
---|
227 | <a name="l00407"></a>00407 |
---|
228 | <a name="l00413"></a>00413 <a class="code" href="class_f_c_d_scene_node.html">FCDSceneNode</a>* FindSceneNode(<span class="keyword">const</span> string& daeId); |
---|
229 | <a name="l00414"></a>00414 |
---|
230 | <a name="l00418"></a>00418 <span class="keywordtype">void</span> RegisterAnimatedValue(<a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* animated); |
---|
231 | <a name="l00419"></a>00419 |
---|
232 | <a name="l00423"></a>00423 <span class="keywordtype">void</span> UnregisterAnimatedValue(<a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* animated); |
---|
233 | <a name="l00424"></a>00424 |
---|
234 | <a name="l00430"></a>00430 <span class="keywordtype">bool</span> LinkDriver(<a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* animated); |
---|
235 | <a name="l00431"></a>00431 |
---|
236 | <a name="l00435"></a>00435 <a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* FindAnimatedValue(<span class="keywordtype">float</span>* ptr); |
---|
237 | <a name="l00436"></a>00436 <span class="keyword">const</span> <a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* FindAnimatedValue(<span class="keyword">const</span> <span class="keywordtype">float</span>* ptr) <span class="keyword">const</span>; |
---|
238 | <a name="l00442"></a>00442 <span class="keyword">const</span> <span class="keywordtype">float</span>* FindAnimatedTarget(<span class="keyword">const</span> string& fullyQualifiedTarget); |
---|
239 | <a name="l00443"></a>00443 |
---|
240 | <a name="l00450"></a>00450 <span class="keyword">const</span> <a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>* FindNamedAnimated(<span class="keyword">const</span> string& shader, <span class="keyword">const</span> string& attribute) <span class="keyword">const</span>; |
---|
241 | <a name="l00451"></a>00451 |
---|
242 | <a name="l00455"></a>00455 <span class="keywordtype">bool</span> IsValueAnimated(<span class="keyword">const</span> <span class="keywordtype">float</span>* ptr) <span class="keyword">const</span>; |
---|
243 | <a name="l00456"></a>00456 |
---|
244 | <a name="l00462"></a>00462 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromFile(<span class="keyword">const</span> fstring& filename); |
---|
245 | <a name="l00463"></a>00463 |
---|
246 | <a name="l00471"></a>00471 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromText(<span class="keyword">const</span> fstring& basePath, <span class="keyword">const</span> fchar* text); |
---|
247 | <a name="l00472"></a>00472 |
---|
248 | <a name="l00478"></a>00478 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadDocumentFromXML(xmlNode* colladaNode); |
---|
249 | <a name="l00479"></a>00479 |
---|
250 | <a name="l00486"></a>00486 <a class="code" href="class_f_u_status.html">FUStatus</a> WriteToFile(<span class="keyword">const</span> fstring& filename) <span class="keyword">const</span>; |
---|
251 | <a name="l00487"></a>00487 |
---|
252 | <a name="l00494"></a>00494 <a class="code" href="class_f_u_status.html">FUStatus</a> WriteDocumentToXML(xmlNode* colladaNode) <span class="keyword">const</span>; |
---|
253 | <a name="l00495"></a>00495 |
---|
254 | <a name="l00505"></a>00505 <span class="keywordtype">void</span> WriteAnimatedValueToXML(<span class="keyword">const</span> <span class="keywordtype">float</span>* value, xmlNode* valueNode, <span class="keyword">const</span> <span class="keywordtype">char</span>* wantedSid, int32 arrayElement = -1) <span class="keyword">const</span>; |
---|
255 | <a name="l00506"></a>00506 |
---|
256 | <a name="l00509"></a><a class="code" href="class_f_c_document.html#5b2fc38a9f4b95947ecdad2facbbf8bf">00509</a> <span class="keyword">const</span> <a class="code" href="classvector.html">StringList</a>& GetPostProcessCmds()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> postCmds; } |
---|
257 | <a name="l00510"></a>00510 |
---|
258 | <a name="l00514"></a><a class="code" href="class_f_c_document.html#0c3e5133a6faeab3d07ddfd2c6836230">00514</a> <span class="keyword">const</span> <a class="code" href="classvector.html">FCDAnimatedList</a>& getAnimatedValues() { <span class="keywordflow">return</span> animatedValues; } |
---|
259 | <a name="l00515"></a>00515 }; |
---|
260 | <a name="l00516"></a>00516 |
---|
261 | <a name="l00517"></a>00517 <span class="preprocessor">#endif //_FC_DOCUMENT_H_</span> |
---|
262 | </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by |
---|
263 | <a href="http://www.doxygen.org/index.html"> |
---|
264 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address> |
---|
265 | </body> |
---|
266 | </html> |
---|