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

Revision 964, 10.0 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/FCDEntity.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/FCDEntity.h</h1><a href="_f_c_d_entity_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_ENTITY_H_</span>
34<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_ENTITY_H_</span>
35<a name="l00019"></a>00019 <span class="preprocessor"></span>
36<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="_f_c_d_object_8h.html">FCDocument/FCDObject.h</a>"</span>
37<a name="l00021"></a>00021
38<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="class_f_c_document.html">FCDocument</a>;
39<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="class_f_c_d_extra.html">FCDExtra</a>;
40<a name="l00024"></a>00024
41<a name="l00040"></a><a class="code" href="class_f_c_d_entity.html">00040</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_entity.html">FCDEntity</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_object_with_id.html">FCDObjectWithId</a>
42<a name="l00041"></a>00041 {
43<a name="l00042"></a>00042 <span class="keyword">public</span>:
44<a name="l00046"></a><a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">00046</a>     <span class="keyword">enum</span> <a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">Type</a>
45<a name="l00047"></a>00047     {
46<a name="l00048"></a>00048         ENTITY,
47<a name="l00049"></a>00049         ANIMATION,
48<a name="l00050"></a>00050         ANIMATION_CLIP,
49<a name="l00051"></a>00051         CAMERA,
50<a name="l00052"></a>00052         LIGHT,
51<a name="l00053"></a>00053         IMAGE,
52<a name="l00054"></a>00054         TEXTURE,
53<a name="l00055"></a>00055         MATERIAL,
54<a name="l00056"></a>00056         EFFECT,
55<a name="l00057"></a>00057         GEOMETRY,
56<a name="l00058"></a>00058         CONTROLLER,
57<a name="l00059"></a>00059         SCENE_NODE,
58<a name="l00060"></a>00060         PHYSICS_RIGID_CONSTRAINT,
59<a name="l00061"></a>00061         PHYSICS_MATERIAL,
60<a name="l00062"></a>00062         PHYSICS_RIGID_BODY,
61<a name="l00063"></a>00063         PHYSICS_SHAPE,
62<a name="l00064"></a>00064         PHYSICS_ANALYTICAL_GEOMETRY,
63<a name="l00065"></a>00065         PHYSICS_MODEL,
64<a name="l00066"></a><a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd73f3aa51d0684a57da181845722e8cc1f">00066</a>         PHYSICS_SCENE_NODE
65<a name="l00067"></a>00067     };
66<a name="l00068"></a>00068
67<a name="l00069"></a>00069 <span class="keyword">private</span>:
68<a name="l00070"></a>00070     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
69<a name="l00071"></a>00071     fstring name;
70<a name="l00072"></a>00072
71<a name="l00073"></a>00073     <span class="comment">// Extra information for the entity.</span>
72<a name="l00074"></a>00074     <a class="code" href="class_f_c_d_extra.html">FCDExtra</a>* extra;
73<a name="l00075"></a>00075
74<a name="l00076"></a>00076     <span class="comment">// Maya and Max both support custom strings for objects.</span>
75<a name="l00077"></a>00077     fstring note;
76<a name="l00078"></a>00078
77<a name="l00079"></a>00079     <span class="comment">// Deprecated ColladaMaya post-processing information.</span>
78<a name="l00080"></a>00080 <a class="code" href="classvector.html">StringList</a> postCmds;
79<a name="l00081"></a>00081
80<a name="l00082"></a>00082 <span class="keyword">public</span>:
81<a name="l00087"></a>00087 <a class="code" href="class_f_c_d_entity.html">FCDEntity</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document, <span class="keyword">const</span> <span class="keywordtype">char</span>* baseId = <span class="stringliteral">"GenericEntity"</span>);
82<a name="l00088"></a>00088
83<a name="l00091"></a>00091 <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_entity.html">FCDEntity</a>();
84<a name="l00092"></a>00092
85<a name="l00098"></a><a class="code" href="class_f_c_d_entity.html#bfd4312a7124f92364c1e6517c7e60ba">00098</a>     <span class="keyword">virtual</span> <a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">Type</a> GetType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ENTITY; }
86<a name="l00099"></a>00099
87<a name="l00104"></a><a class="code" href="class_f_c_d_entity.html#35cfd66b81c3cdf9024077f36e076db3">00104</a>     <span class="keyword">const</span> fstring&amp; GetName()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name; }
88<a name="l00105"></a>00105
89<a name="l00110"></a>00110 <span class="keywordtype">void</span> SetName(<span class="keyword">const</span> fstring&amp; _name);
90<a name="l00111"></a>00111
91<a name="l00117"></a><a class="code" href="class_f_c_d_entity.html#2f05f99564ddf44896602ef020a3b5c1">00117</a>     <a class="code" href="class_f_c_d_extra.html">FCDExtra</a>* GetExtra() { <span class="keywordflow">return</span> extra; }
92<a name="l00118"></a><a class="code" href="class_f_c_d_entity.html#9198b84815c826fed3d872c72b1c6137">00118</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_extra.html">FCDExtra</a>* GetExtra()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> extra; }
93<a name="l00124"></a><a class="code" href="class_f_c_d_entity.html#8026453fbf365692639dfdeda0dca56c">00124</a>     <span class="keywordtype">bool</span> HasNote()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !note.empty(); }
94<a name="l00125"></a>00125
95<a name="l00130"></a><a class="code" href="class_f_c_d_entity.html#6fd8e55a6281c971d63711b24d8f02db">00130</a>     <span class="keyword">const</span> fstring&amp; GetNote()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> note; }
96<a name="l00131"></a>00131
97<a name="l00136"></a><a class="code" href="class_f_c_d_entity.html#8589906fc686e63486db9bc8e899f794">00136</a>     <span class="keywordtype">void</span> SetNote(<span class="keyword">const</span> fstring&amp; _note) { note = _note; }
98<a name="l00137"></a>00137
99<a name="l00144"></a>00144 <span class="keyword">virtual</span> <a class="code" href="class_f_c_d_entity.html">FCDEntity</a>* FindDaeId(<span class="keyword">const</span> string&amp; daeId);
100<a name="l00145"></a>00145
101<a name="l00151"></a>00151 <span class="keyword">virtual</span> <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromXML(xmlNode* entityNode);
102<a name="l00152"></a>00152
103<a name="l00157"></a>00157 <span class="keyword">virtual</span> xmlNode* WriteToXML(xmlNode* parentNode) <span class="keyword">const</span>;
104<a name="l00158"></a>00158
105<a name="l00162"></a><a class="code" href="class_f_c_d_entity.html#4865b5a1ea13ba0a7aa786bc969e6ea7">00162</a>     <a class="code" href="classvector.html">StringList</a>&amp; GetPostProcessCmds() { <span class="keywordflow">return</span> postCmds; }
106<a name="l00163"></a>00163
107<a name="l00164"></a>00164 <span class="keyword">protected</span>:
108<a name="l00172"></a>00172 xmlNode* WriteToEntityXML(xmlNode* parentNode, <span class="keyword">const</span> <span class="keywordtype">char</span>* nodeName) <span class="keyword">const</span>;
109<a name="l00173"></a>00173
110<a name="l00180"></a>00180 <span class="keywordtype">void</span> WriteToExtraXML(xmlNode* entityNode) <span class="keyword">const</span>;
111<a name="l00181"></a>00181
112<a name="l00186"></a>00186 <span class="keywordtype">void</span> <a class="code" href="class_f_c_d_object_with_id.html#ea836eca56429cb5607903c2bf9ac111">Clone</a>(<a class="code" href="class_f_c_d_entity.html">FCDEntity</a>* clone);
113<a name="l00187"></a>00187 };
114<a name="l00188"></a>00188
115<a name="l00189"></a>00189 <span class="preprocessor">#endif // _FCD_ENTITY_H_</span>
116<a name="l00190"></a>00190 <span class="preprocessor"></span>
117</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
118<a href="http://www.doxygen.org/index.html">
119<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
120</body>
121</html>
Note: See TracBrowser for help on using the repository browser.