PageRenderTime 27ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/dom/include/1.4/dom/domFx_samplerDEPTH_common.h

http://github.com/sbarthelemy/collada-dom
C Header | 414 lines | 155 code | 46 blank | 213 comment | 0 complexity | 9715f34403fb4709297e87461e4aec04 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the MIT Open Source License, for details please see license.txt or the website
  5. * http://www.opensource.org/licenses/mit-license.php
  6. *
  7. */
  8. #ifndef __domFx_samplerDEPTH_common_h__
  9. #define __domFx_samplerDEPTH_common_h__
  10. #include <dae/daeDocument.h>
  11. #include <dom/domTypes.h>
  12. #include <dom/domElements.h>
  13. #include <dom/domExtra.h>
  14. class DAE;
  15. /**
  16. * A texture sampler for depth maps.
  17. */
  18. class domFx_samplerDEPTH_common_complexType
  19. {
  20. public:
  21. class domSource;
  22. typedef daeSmartRef<domSource> domSourceRef;
  23. typedef daeTArray<domSourceRef> domSource_Array;
  24. class domSource : public daeElement
  25. {
  26. public:
  27. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; }
  28. static daeInt ID() { return 79; }
  29. virtual daeInt typeID() const { return ID(); }
  30. protected: // Value
  31. /**
  32. * The xsNCName value of the text data of this element.
  33. */
  34. xsNCName _value;
  35. public: //Accessors and Mutators
  36. /**
  37. * Gets the value of this element.
  38. * @return Returns a xsNCName of the value.
  39. */
  40. xsNCName getValue() const { return _value; }
  41. /**
  42. * Sets the _value of this element.
  43. * @param val The new value for this element.
  44. */
  45. void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; }
  46. protected:
  47. /**
  48. * Constructor
  49. */
  50. domSource(DAE& dae) : daeElement(dae), _value() {}
  51. /**
  52. * Destructor
  53. */
  54. virtual ~domSource() {}
  55. /**
  56. * Overloaded assignment operator
  57. */
  58. virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; }
  59. public: // STATIC METHODS
  60. /**
  61. * Creates an instance of this class and returns a daeElementRef referencing it.
  62. * @return a daeElementRef referencing an instance of this object.
  63. */
  64. static DLLSPEC daeElementRef create(DAE& dae);
  65. /**
  66. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  67. * If a daeMetaElement already exists it will return that instead of creating a new one.
  68. * @return A daeMetaElement describing this COLLADA element.
  69. */
  70. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  71. };
  72. class domWrap_s;
  73. typedef daeSmartRef<domWrap_s> domWrap_sRef;
  74. typedef daeTArray<domWrap_sRef> domWrap_s_Array;
  75. class domWrap_s : public daeElement
  76. {
  77. public:
  78. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; }
  79. static daeInt ID() { return 80; }
  80. virtual daeInt typeID() const { return ID(); }
  81. protected: // Value
  82. /**
  83. * The domFx_sampler_wrap_common value of the text data of this element.
  84. */
  85. domFx_sampler_wrap_common _value;
  86. public: //Accessors and Mutators
  87. /**
  88. * Gets the value of this element.
  89. * @return a domFx_sampler_wrap_common of the value.
  90. */
  91. domFx_sampler_wrap_common getValue() const { return _value; }
  92. /**
  93. * Sets the _value of this element.
  94. * @param val The new value for this element.
  95. */
  96. void setValue( domFx_sampler_wrap_common val ) { _value = val; }
  97. protected:
  98. /**
  99. * Constructor
  100. */
  101. domWrap_s(DAE& dae) : daeElement(dae), _value() {}
  102. /**
  103. * Destructor
  104. */
  105. virtual ~domWrap_s() {}
  106. /**
  107. * Overloaded assignment operator
  108. */
  109. virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; }
  110. public: // STATIC METHODS
  111. /**
  112. * Creates an instance of this class and returns a daeElementRef referencing it.
  113. * @return a daeElementRef referencing an instance of this object.
  114. */
  115. static DLLSPEC daeElementRef create(DAE& dae);
  116. /**
  117. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  118. * If a daeMetaElement already exists it will return that instead of creating a new one.
  119. * @return A daeMetaElement describing this COLLADA element.
  120. */
  121. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  122. };
  123. class domWrap_t;
  124. typedef daeSmartRef<domWrap_t> domWrap_tRef;
  125. typedef daeTArray<domWrap_tRef> domWrap_t_Array;
  126. class domWrap_t : public daeElement
  127. {
  128. public:
  129. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; }
  130. static daeInt ID() { return 81; }
  131. virtual daeInt typeID() const { return ID(); }
  132. protected: // Value
  133. /**
  134. * The domFx_sampler_wrap_common value of the text data of this element.
  135. */
  136. domFx_sampler_wrap_common _value;
  137. public: //Accessors and Mutators
  138. /**
  139. * Gets the value of this element.
  140. * @return a domFx_sampler_wrap_common of the value.
  141. */
  142. domFx_sampler_wrap_common getValue() const { return _value; }
  143. /**
  144. * Sets the _value of this element.
  145. * @param val The new value for this element.
  146. */
  147. void setValue( domFx_sampler_wrap_common val ) { _value = val; }
  148. protected:
  149. /**
  150. * Constructor
  151. */
  152. domWrap_t(DAE& dae) : daeElement(dae), _value() {}
  153. /**
  154. * Destructor
  155. */
  156. virtual ~domWrap_t() {}
  157. /**
  158. * Overloaded assignment operator
  159. */
  160. virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; }
  161. public: // STATIC METHODS
  162. /**
  163. * Creates an instance of this class and returns a daeElementRef referencing it.
  164. * @return a daeElementRef referencing an instance of this object.
  165. */
  166. static DLLSPEC daeElementRef create(DAE& dae);
  167. /**
  168. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  169. * If a daeMetaElement already exists it will return that instead of creating a new one.
  170. * @return A daeMetaElement describing this COLLADA element.
  171. */
  172. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  173. };
  174. class domMinfilter;
  175. typedef daeSmartRef<domMinfilter> domMinfilterRef;
  176. typedef daeTArray<domMinfilterRef> domMinfilter_Array;
  177. class domMinfilter : public daeElement
  178. {
  179. public:
  180. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; }
  181. static daeInt ID() { return 82; }
  182. virtual daeInt typeID() const { return ID(); }
  183. protected: // Value
  184. /**
  185. * The domFx_sampler_filter_common value of the text data of this element.
  186. */
  187. domFx_sampler_filter_common _value;
  188. public: //Accessors and Mutators
  189. /**
  190. * Gets the value of this element.
  191. * @return a domFx_sampler_filter_common of the value.
  192. */
  193. domFx_sampler_filter_common getValue() const { return _value; }
  194. /**
  195. * Sets the _value of this element.
  196. * @param val The new value for this element.
  197. */
  198. void setValue( domFx_sampler_filter_common val ) { _value = val; }
  199. protected:
  200. /**
  201. * Constructor
  202. */
  203. domMinfilter(DAE& dae) : daeElement(dae), _value() {}
  204. /**
  205. * Destructor
  206. */
  207. virtual ~domMinfilter() {}
  208. /**
  209. * Overloaded assignment operator
  210. */
  211. virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; }
  212. public: // STATIC METHODS
  213. /**
  214. * Creates an instance of this class and returns a daeElementRef referencing it.
  215. * @return a daeElementRef referencing an instance of this object.
  216. */
  217. static DLLSPEC daeElementRef create(DAE& dae);
  218. /**
  219. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  220. * If a daeMetaElement already exists it will return that instead of creating a new one.
  221. * @return A daeMetaElement describing this COLLADA element.
  222. */
  223. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  224. };
  225. class domMagfilter;
  226. typedef daeSmartRef<domMagfilter> domMagfilterRef;
  227. typedef daeTArray<domMagfilterRef> domMagfilter_Array;
  228. class domMagfilter : public daeElement
  229. {
  230. public:
  231. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; }
  232. static daeInt ID() { return 83; }
  233. virtual daeInt typeID() const { return ID(); }
  234. protected: // Value
  235. /**
  236. * The domFx_sampler_filter_common value of the text data of this element.
  237. */
  238. domFx_sampler_filter_common _value;
  239. public: //Accessors and Mutators
  240. /**
  241. * Gets the value of this element.
  242. * @return a domFx_sampler_filter_common of the value.
  243. */
  244. domFx_sampler_filter_common getValue() const { return _value; }
  245. /**
  246. * Sets the _value of this element.
  247. * @param val The new value for this element.
  248. */
  249. void setValue( domFx_sampler_filter_common val ) { _value = val; }
  250. protected:
  251. /**
  252. * Constructor
  253. */
  254. domMagfilter(DAE& dae) : daeElement(dae), _value() {}
  255. /**
  256. * Destructor
  257. */
  258. virtual ~domMagfilter() {}
  259. /**
  260. * Overloaded assignment operator
  261. */
  262. virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; }
  263. public: // STATIC METHODS
  264. /**
  265. * Creates an instance of this class and returns a daeElementRef referencing it.
  266. * @return a daeElementRef referencing an instance of this object.
  267. */
  268. static DLLSPEC daeElementRef create(DAE& dae);
  269. /**
  270. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  271. * If a daeMetaElement already exists it will return that instead of creating a new one.
  272. * @return A daeMetaElement describing this COLLADA element.
  273. */
  274. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  275. };
  276. protected: // Elements
  277. domSourceRef elemSource;
  278. domWrap_sRef elemWrap_s;
  279. domWrap_tRef elemWrap_t;
  280. domMinfilterRef elemMinfilter;
  281. domMagfilterRef elemMagfilter;
  282. domExtra_Array elemExtra_array;
  283. public: //Accessors and Mutators
  284. /**
  285. * Gets the source element.
  286. * @return a daeSmartRef to the source element.
  287. */
  288. const domSourceRef getSource() const { return elemSource; }
  289. /**
  290. * Gets the wrap_s element.
  291. * @return a daeSmartRef to the wrap_s element.
  292. */
  293. const domWrap_sRef getWrap_s() const { return elemWrap_s; }
  294. /**
  295. * Gets the wrap_t element.
  296. * @return a daeSmartRef to the wrap_t element.
  297. */
  298. const domWrap_tRef getWrap_t() const { return elemWrap_t; }
  299. /**
  300. * Gets the minfilter element.
  301. * @return a daeSmartRef to the minfilter element.
  302. */
  303. const domMinfilterRef getMinfilter() const { return elemMinfilter; }
  304. /**
  305. * Gets the magfilter element.
  306. * @return a daeSmartRef to the magfilter element.
  307. */
  308. const domMagfilterRef getMagfilter() const { return elemMagfilter; }
  309. /**
  310. * Gets the extra element array.
  311. * @return Returns a reference to the array of extra elements.
  312. */
  313. domExtra_Array &getExtra_array() { return elemExtra_array; }
  314. /**
  315. * Gets the extra element array.
  316. * @return Returns a constant reference to the array of extra elements.
  317. */
  318. const domExtra_Array &getExtra_array() const { return elemExtra_array; }
  319. protected:
  320. /**
  321. * Constructor
  322. */
  323. domFx_samplerDEPTH_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemExtra_array() {}
  324. /**
  325. * Destructor
  326. */
  327. virtual ~domFx_samplerDEPTH_common_complexType() {}
  328. /**
  329. * Overloaded assignment operator
  330. */
  331. virtual domFx_samplerDEPTH_common_complexType &operator=( const domFx_samplerDEPTH_common_complexType &cpy ) { (void)cpy; return *this; }
  332. };
  333. /**
  334. * An element of type domFx_samplerDEPTH_common_complexType.
  335. */
  336. class domFx_samplerDEPTH_common : public daeElement, public domFx_samplerDEPTH_common_complexType
  337. {
  338. public:
  339. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERDEPTH_COMMON; }
  340. static daeInt ID() { return 84; }
  341. virtual daeInt typeID() const { return ID(); }
  342. protected:
  343. /**
  344. * Constructor
  345. */
  346. domFx_samplerDEPTH_common(DAE& dae) : daeElement(dae), domFx_samplerDEPTH_common_complexType(dae, this) {}
  347. /**
  348. * Destructor
  349. */
  350. virtual ~domFx_samplerDEPTH_common() {}
  351. /**
  352. * Overloaded assignment operator
  353. */
  354. virtual domFx_samplerDEPTH_common &operator=( const domFx_samplerDEPTH_common &cpy ) { (void)cpy; return *this; }
  355. public: // STATIC METHODS
  356. /**
  357. * Creates an instance of this class and returns a daeElementRef referencing it.
  358. * @return a daeElementRef referencing an instance of this object.
  359. */
  360. static DLLSPEC daeElementRef create(DAE& dae);
  361. /**
  362. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  363. * If a daeMetaElement already exists it will return that instead of creating a new one.
  364. * @return A daeMetaElement describing this COLLADA element.
  365. */
  366. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  367. };
  368. #endif