domLight.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
  5. * file except in compliance with the License. You may obtain a copy of the License at:
  6. * http://research.scea.com/scea_shared_source_license.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License
  9. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. * implied. See the License for the specific language governing permissions and limitations under the
  11. * License.
  12. */
  13. #ifndef __domLight_h__
  14. #define __domLight_h__
  15. #include <dae/daeDocument.h>
  16. #include <dom/domTypes.h>
  17. #include <dom/domElements.h>
  18. #include <dom/domAsset.h>
  19. #include <dom/domTechnique.h>
  20. #include <dom/domExtra.h>
  21. #include <dom/domTargetableFloat3.h>
  22. #include <dom/domTargetableFloat.h>
  23. class DAE;
  24. /**
  25. * The light element declares a light source that illuminates the scene. Light
  26. * sources have many different properties and radiate light in many different
  27. * patterns and frequencies.
  28. */
  29. class domLight : public daeElement
  30. {
  31. public:
  32. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT; }
  33. static daeInt ID() { return 638; }
  34. virtual daeInt typeID() const { return ID(); }
  35. public:
  36. class domTechnique_common;
  37. typedef daeSmartRef<domTechnique_common> domTechnique_commonRef;
  38. typedef daeTArray<domTechnique_commonRef> domTechnique_common_Array;
  39. /**
  40. * The technique_common element specifies the light information for the common
  41. * profile which all COLLADA implementations need to support.
  42. */
  43. class domTechnique_common : public daeElement
  44. {
  45. public:
  46. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; }
  47. static daeInt ID() { return 639; }
  48. virtual daeInt typeID() const { return ID(); }
  49. public:
  50. class domAmbient;
  51. typedef daeSmartRef<domAmbient> domAmbientRef;
  52. typedef daeTArray<domAmbientRef> domAmbient_Array;
  53. /**
  54. * The ambient element declares the parameters required to describe an ambient
  55. * light source. An ambient light is one that lights everything evenly,
  56. * regardless of location or orientation.
  57. */
  58. class domAmbient : public daeElement
  59. {
  60. public:
  61. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AMBIENT; }
  62. static daeInt ID() { return 640; }
  63. virtual daeInt typeID() const { return ID(); }
  64. protected: // Element
  65. /**
  66. * The color element contains three floating point numbers specifying the
  67. * color of the light. The color element must occur exactly once. @see domColor
  68. */
  69. domTargetableFloat3Ref elemColor;
  70. public: //Accessors and Mutators
  71. /**
  72. * Gets the color element.
  73. * @return a daeSmartRef to the color element.
  74. */
  75. const domTargetableFloat3Ref getColor() const { return elemColor; }
  76. protected:
  77. /**
  78. * Constructor
  79. */
  80. domAmbient(DAE& dae) : daeElement(dae), elemColor() {}
  81. /**
  82. * Destructor
  83. */
  84. virtual ~domAmbient() {}
  85. /**
  86. * Overloaded assignment operator
  87. */
  88. virtual domAmbient &operator=( const domAmbient &cpy ) { (void)cpy; return *this; }
  89. public: // STATIC METHODS
  90. /**
  91. * Creates an instance of this class and returns a daeElementRef referencing it.
  92. * @return a daeElementRef referencing an instance of this object.
  93. */
  94. static DLLSPEC daeElementRef create(DAE& dae);
  95. /**
  96. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  97. * If a daeMetaElement already exists it will return that instead of creating a new one.
  98. * @return A daeMetaElement describing this COLLADA element.
  99. */
  100. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  101. };
  102. class domDirectional;
  103. typedef daeSmartRef<domDirectional> domDirectionalRef;
  104. typedef daeTArray<domDirectionalRef> domDirectional_Array;
  105. /**
  106. * The directional element declares the parameters required to describe a
  107. * directional light source. A directional light is one that lights everything
  108. * from the same direction, regardless of location. The light’s default
  109. * direction vector in local coordinates is [0,0,-1], pointing down the -Z
  110. * axis. The actual direction of the light is defined by the transform of
  111. * the node where the light is instantiated.
  112. */
  113. class domDirectional : public daeElement
  114. {
  115. public:
  116. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DIRECTIONAL; }
  117. static daeInt ID() { return 641; }
  118. virtual daeInt typeID() const { return ID(); }
  119. protected: // Element
  120. /**
  121. * The color element contains three floating point numbers specifying the
  122. * color of the light. The color element must occur exactly once. @see domColor
  123. */
  124. domTargetableFloat3Ref elemColor;
  125. public: //Accessors and Mutators
  126. /**
  127. * Gets the color element.
  128. * @return a daeSmartRef to the color element.
  129. */
  130. const domTargetableFloat3Ref getColor() const { return elemColor; }
  131. protected:
  132. /**
  133. * Constructor
  134. */
  135. domDirectional(DAE& dae) : daeElement(dae), elemColor() {}
  136. /**
  137. * Destructor
  138. */
  139. virtual ~domDirectional() {}
  140. /**
  141. * Overloaded assignment operator
  142. */
  143. virtual domDirectional &operator=( const domDirectional &cpy ) { (void)cpy; return *this; }
  144. public: // STATIC METHODS
  145. /**
  146. * Creates an instance of this class and returns a daeElementRef referencing it.
  147. * @return a daeElementRef referencing an instance of this object.
  148. */
  149. static DLLSPEC daeElementRef create(DAE& dae);
  150. /**
  151. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  152. * If a daeMetaElement already exists it will return that instead of creating a new one.
  153. * @return A daeMetaElement describing this COLLADA element.
  154. */
  155. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  156. };
  157. class domPoint;
  158. typedef daeSmartRef<domPoint> domPointRef;
  159. typedef daeTArray<domPointRef> domPoint_Array;
  160. /**
  161. * The point element declares the parameters required to describe a point
  162. * light source. A point light source radiates light in all directions from
  163. * a known location in space. The intensity of a point light source is attenuated
  164. * as the distance to the light source increases. The position of the light
  165. * is defined by the transform of the node in which it is instantiated.
  166. */
  167. class domPoint : public daeElement
  168. {
  169. public:
  170. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT; }
  171. static daeInt ID() { return 642; }
  172. virtual daeInt typeID() const { return ID(); }
  173. protected: // Elements
  174. /**
  175. * The color element contains three floating point numbers specifying the
  176. * color of the light. The color element must occur exactly once. @see domColor
  177. */
  178. domTargetableFloat3Ref elemColor;
  179. /**
  180. * The constant_attenuation is used to calculate the total attenuation of
  181. * this light given a distance. The equation used is A = constant_attenuation
  182. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation
  183. */
  184. domTargetableFloatRef elemConstant_attenuation;
  185. /**
  186. * The linear_attenuation is used to calculate the total attenuation of this
  187. * light given a distance. The equation used is A = constant_attenuation
  188. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation
  189. */
  190. domTargetableFloatRef elemLinear_attenuation;
  191. /**
  192. * The quadratic_attenuation is used to calculate the total attenuation of
  193. * this light given a distance. The equation used is A = constant_attenuation
  194. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation
  195. */
  196. domTargetableFloatRef elemQuadratic_attenuation;
  197. public: //Accessors and Mutators
  198. /**
  199. * Gets the color element.
  200. * @return a daeSmartRef to the color element.
  201. */
  202. const domTargetableFloat3Ref getColor() const { return elemColor; }
  203. /**
  204. * Gets the constant_attenuation element.
  205. * @return a daeSmartRef to the constant_attenuation element.
  206. */
  207. const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; }
  208. /**
  209. * Gets the linear_attenuation element.
  210. * @return a daeSmartRef to the linear_attenuation element.
  211. */
  212. const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; }
  213. /**
  214. * Gets the quadratic_attenuation element.
  215. * @return a daeSmartRef to the quadratic_attenuation element.
  216. */
  217. const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; }
  218. protected:
  219. /**
  220. * Constructor
  221. */
  222. domPoint(DAE& dae) : daeElement(dae), elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation() {}
  223. /**
  224. * Destructor
  225. */
  226. virtual ~domPoint() {}
  227. /**
  228. * Overloaded assignment operator
  229. */
  230. virtual domPoint &operator=( const domPoint &cpy ) { (void)cpy; return *this; }
  231. public: // STATIC METHODS
  232. /**
  233. * Creates an instance of this class and returns a daeElementRef referencing it.
  234. * @return a daeElementRef referencing an instance of this object.
  235. */
  236. static DLLSPEC daeElementRef create(DAE& dae);
  237. /**
  238. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  239. * If a daeMetaElement already exists it will return that instead of creating a new one.
  240. * @return A daeMetaElement describing this COLLADA element.
  241. */
  242. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  243. };
  244. class domSpot;
  245. typedef daeSmartRef<domSpot> domSpotRef;
  246. typedef daeTArray<domSpotRef> domSpot_Array;
  247. /**
  248. * The spot element declares the parameters required to describe a spot light
  249. * source. A spot light source radiates light in one direction from a known
  250. * location in space. The light radiates from the spot light source in a
  251. * cone shape. The intensity of the light is attenuated as the radiation
  252. * angle increases away from the direction of the light source. The intensity
  253. * of a spot light source is also attenuated as the distance to the light
  254. * source increases. The position of the light is defined by the transform
  255. * of the node in which it is instantiated. The light’s default direction
  256. * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The
  257. * actual direction of the light is defined by the transform of the node
  258. * where the light is instantiated.
  259. */
  260. class domSpot : public daeElement
  261. {
  262. public:
  263. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SPOT; }
  264. static daeInt ID() { return 643; }
  265. virtual daeInt typeID() const { return ID(); }
  266. protected: // Elements
  267. /**
  268. * The color element contains three floating point numbers specifying the
  269. * color of the light. The color element must occur exactly once. @see domColor
  270. */
  271. domTargetableFloat3Ref elemColor;
  272. /**
  273. * The constant_attenuation is used to calculate the total attenuation of
  274. * this light given a distance. The equation used is A = constant_attenuation
  275. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation
  276. */
  277. domTargetableFloatRef elemConstant_attenuation;
  278. /**
  279. * The linear_attenuation is used to calculate the total attenuation of this
  280. * light given a distance. The equation used is A = constant_attenuation
  281. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation
  282. */
  283. domTargetableFloatRef elemLinear_attenuation;
  284. /**
  285. * The quadratic_attenuation is used to calculate the total attenuation of
  286. * this light given a distance. The equation used is A = constant_attenuation
  287. * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation
  288. */
  289. domTargetableFloatRef elemQuadratic_attenuation;
  290. /**
  291. * The falloff_angle is used to specify the amount of attenuation based on
  292. * the direction of the light. @see domFalloff_angle
  293. */
  294. domTargetableFloatRef elemFalloff_angle;
  295. /**
  296. * The falloff_exponent is used to specify the amount of attenuation based
  297. * on the direction of the light. @see domFalloff_exponent
  298. */
  299. domTargetableFloatRef elemFalloff_exponent;
  300. public: //Accessors and Mutators
  301. /**
  302. * Gets the color element.
  303. * @return a daeSmartRef to the color element.
  304. */
  305. const domTargetableFloat3Ref getColor() const { return elemColor; }
  306. /**
  307. * Gets the constant_attenuation element.
  308. * @return a daeSmartRef to the constant_attenuation element.
  309. */
  310. const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; }
  311. /**
  312. * Gets the linear_attenuation element.
  313. * @return a daeSmartRef to the linear_attenuation element.
  314. */
  315. const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; }
  316. /**
  317. * Gets the quadratic_attenuation element.
  318. * @return a daeSmartRef to the quadratic_attenuation element.
  319. */
  320. const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; }
  321. /**
  322. * Gets the falloff_angle element.
  323. * @return a daeSmartRef to the falloff_angle element.
  324. */
  325. const domTargetableFloatRef getFalloff_angle() const { return elemFalloff_angle; }
  326. /**
  327. * Gets the falloff_exponent element.
  328. * @return a daeSmartRef to the falloff_exponent element.
  329. */
  330. const domTargetableFloatRef getFalloff_exponent() const { return elemFalloff_exponent; }
  331. protected:
  332. /**
  333. * Constructor
  334. */
  335. domSpot(DAE& dae) : daeElement(dae), elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation(), elemFalloff_angle(), elemFalloff_exponent() {}
  336. /**
  337. * Destructor
  338. */
  339. virtual ~domSpot() {}
  340. /**
  341. * Overloaded assignment operator
  342. */
  343. virtual domSpot &operator=( const domSpot &cpy ) { (void)cpy; return *this; }
  344. public: // STATIC METHODS
  345. /**
  346. * Creates an instance of this class and returns a daeElementRef referencing it.
  347. * @return a daeElementRef referencing an instance of this object.
  348. */
  349. static DLLSPEC daeElementRef create(DAE& dae);
  350. /**
  351. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  352. * If a daeMetaElement already exists it will return that instead of creating a new one.
  353. * @return A daeMetaElement describing this COLLADA element.
  354. */
  355. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  356. };
  357. protected: // Elements
  358. /**
  359. * The ambient element declares the parameters required to describe an ambient
  360. * light source. An ambient light is one that lights everything evenly,
  361. * regardless of location or orientation. @see domAmbient
  362. */
  363. domAmbientRef elemAmbient;
  364. /**
  365. * The directional element declares the parameters required to describe a
  366. * directional light source. A directional light is one that lights everything
  367. * from the same direction, regardless of location. The light’s default
  368. * direction vector in local coordinates is [0,0,-1], pointing down the -Z
  369. * axis. The actual direction of the light is defined by the transform of
  370. * the node where the light is instantiated. @see domDirectional
  371. */
  372. domDirectionalRef elemDirectional;
  373. /**
  374. * The point element declares the parameters required to describe a point
  375. * light source. A point light source radiates light in all directions from
  376. * a known location in space. The intensity of a point light source is attenuated
  377. * as the distance to the light source increases. The position of the light
  378. * is defined by the transform of the node in which it is instantiated. @see
  379. * domPoint
  380. */
  381. domPointRef elemPoint;
  382. /**
  383. * The spot element declares the parameters required to describe a spot light
  384. * source. A spot light source radiates light in one direction from a known
  385. * location in space. The light radiates from the spot light source in a
  386. * cone shape. The intensity of the light is attenuated as the radiation
  387. * angle increases away from the direction of the light source. The intensity
  388. * of a spot light source is also attenuated as the distance to the light
  389. * source increases. The position of the light is defined by the transform
  390. * of the node in which it is instantiated. The light’s default direction
  391. * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The
  392. * actual direction of the light is defined by the transform of the node
  393. * where the light is instantiated. @see domSpot
  394. */
  395. domSpotRef elemSpot;
  396. /**
  397. * Used to preserve order in elements that do not specify strict sequencing of sub-elements.
  398. */
  399. daeElementRefArray _contents;
  400. /**
  401. * Used to preserve order in elements that have a complex content model.
  402. */
  403. daeUIntArray _contentsOrder;
  404. /**
  405. * Used to store information needed for some content model objects.
  406. */
  407. daeTArray< daeCharArray * > _CMData;
  408. public: //Accessors and Mutators
  409. /**
  410. * Gets the ambient element.
  411. * @return a daeSmartRef to the ambient element.
  412. */
  413. const domAmbientRef getAmbient() const { return elemAmbient; }
  414. /**
  415. * Gets the directional element.
  416. * @return a daeSmartRef to the directional element.
  417. */
  418. const domDirectionalRef getDirectional() const { return elemDirectional; }
  419. /**
  420. * Gets the point element.
  421. * @return a daeSmartRef to the point element.
  422. */
  423. const domPointRef getPoint() const { return elemPoint; }
  424. /**
  425. * Gets the spot element.
  426. * @return a daeSmartRef to the spot element.
  427. */
  428. const domSpotRef getSpot() const { return elemSpot; }
  429. /**
  430. * Gets the _contents array.
  431. * @return Returns a reference to the _contents element array.
  432. */
  433. daeElementRefArray &getContents() { return _contents; }
  434. /**
  435. * Gets the _contents array.
  436. * @return Returns a constant reference to the _contents element array.
  437. */
  438. const daeElementRefArray &getContents() const { return _contents; }
  439. protected:
  440. /**
  441. * Constructor
  442. */
  443. domTechnique_common(DAE& dae) : daeElement(dae), elemAmbient(), elemDirectional(), elemPoint(), elemSpot() {}
  444. /**
  445. * Destructor
  446. */
  447. virtual ~domTechnique_common() { daeElement::deleteCMDataArray(_CMData); }
  448. /**
  449. * Overloaded assignment operator
  450. */
  451. virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; }
  452. public: // STATIC METHODS
  453. /**
  454. * Creates an instance of this class and returns a daeElementRef referencing it.
  455. * @return a daeElementRef referencing an instance of this object.
  456. */
  457. static DLLSPEC daeElementRef create(DAE& dae);
  458. /**
  459. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  460. * If a daeMetaElement already exists it will return that instead of creating a new one.
  461. * @return A daeMetaElement describing this COLLADA element.
  462. */
  463. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  464. };
  465. protected: // Attributes
  466. /**
  467. * The id attribute is a text string containing the unique identifier of
  468. * this element. This value must be unique within the instance document.
  469. * Optional attribute.
  470. */
  471. xsID attrId;
  472. /**
  473. * The name attribute is the text string name of this element. Optional attribute.
  474. */
  475. xsNCName attrName;
  476. protected: // Elements
  477. /**
  478. * The light element may contain an asset element. @see domAsset
  479. */
  480. domAssetRef elemAsset;
  481. /**
  482. * The technique_common element specifies the light information for the common
  483. * profile which all COLLADA implementations need to support. @see domTechnique_common
  484. */
  485. domTechnique_commonRef elemTechnique_common;
  486. /**
  487. * This element may contain any number of non-common profile techniques.
  488. * @see domTechnique
  489. */
  490. domTechnique_Array elemTechnique_array;
  491. /**
  492. * The extra element may appear any number of times. @see domExtra
  493. */
  494. domExtra_Array elemExtra_array;
  495. public: //Accessors and Mutators
  496. /**
  497. * Gets the id attribute.
  498. * @return Returns a xsID of the id attribute.
  499. */
  500. xsID getId() const { return attrId; }
  501. /**
  502. * Sets the id attribute.
  503. * @param atId The new value for the id attribute.
  504. */
  505. void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
  506. if( _document != NULL ) _document->changeElementID( this, attrId );
  507. }
  508. /**
  509. * Gets the name attribute.
  510. * @return Returns a xsNCName of the name attribute.
  511. */
  512. xsNCName getName() const { return attrName; }
  513. /**
  514. * Sets the name attribute.
  515. * @param atName The new value for the name attribute.
  516. */
  517. void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
  518. /**
  519. * Gets the asset element.
  520. * @return a daeSmartRef to the asset element.
  521. */
  522. const domAssetRef getAsset() const { return elemAsset; }
  523. /**
  524. * Gets the technique_common element.
  525. * @return a daeSmartRef to the technique_common element.
  526. */
  527. const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; }
  528. /**
  529. * Gets the technique element array.
  530. * @return Returns a reference to the array of technique elements.
  531. */
  532. domTechnique_Array &getTechnique_array() { return elemTechnique_array; }
  533. /**
  534. * Gets the technique element array.
  535. * @return Returns a constant reference to the array of technique elements.
  536. */
  537. const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; }
  538. /**
  539. * Gets the extra element array.
  540. * @return Returns a reference to the array of extra elements.
  541. */
  542. domExtra_Array &getExtra_array() { return elemExtra_array; }
  543. /**
  544. * Gets the extra element array.
  545. * @return Returns a constant reference to the array of extra elements.
  546. */
  547. const domExtra_Array &getExtra_array() const { return elemExtra_array; }
  548. protected:
  549. /**
  550. * Constructor
  551. */
  552. domLight(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {}
  553. /**
  554. * Destructor
  555. */
  556. virtual ~domLight() {}
  557. /**
  558. * Overloaded assignment operator
  559. */
  560. virtual domLight &operator=( const domLight &cpy ) { (void)cpy; return *this; }
  561. public: // STATIC METHODS
  562. /**
  563. * Creates an instance of this class and returns a daeElementRef referencing it.
  564. * @return a daeElementRef referencing an instance of this object.
  565. */
  566. static DLLSPEC daeElementRef create(DAE& dae);
  567. /**
  568. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  569. * If a daeMetaElement already exists it will return that instead of creating a new one.
  570. * @return A daeMetaElement describing this COLLADA element.
  571. */
  572. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  573. };
  574. #endif