domCg_sampler1D.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 __domCg_sampler1D_h__
  14. #define __domCg_sampler1D_h__
  15. #include <dae/daeDocument.h>
  16. #include <dom/domTypes.h>
  17. #include <dom/domElements.h>
  18. #include <dom/domFx_sampler1D_common.h>
  19. class DAE;
  20. class domCg_sampler1D_complexType : public domFx_sampler1D_common_complexType
  21. {
  22. protected:
  23. /**
  24. * Constructor
  25. */
  26. domCg_sampler1D_complexType(DAE& dae, daeElement* elt) : domFx_sampler1D_common_complexType(dae, elt) {}
  27. /**
  28. * Destructor
  29. */
  30. virtual ~domCg_sampler1D_complexType() {}
  31. /**
  32. * Overloaded assignment operator
  33. */
  34. virtual domCg_sampler1D_complexType &operator=( const domCg_sampler1D_complexType &cpy ) { (void)cpy; return *this; }
  35. };
  36. /**
  37. * An element of type domCg_sampler1D_complexType.
  38. */
  39. class domCg_sampler1D : public daeElement, public domCg_sampler1D_complexType
  40. {
  41. public:
  42. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER1D; }
  43. static daeInt ID() { return 127; }
  44. virtual daeInt typeID() const { return ID(); }
  45. protected:
  46. /**
  47. * Constructor
  48. */
  49. domCg_sampler1D(DAE& dae) : daeElement(dae), domCg_sampler1D_complexType(dae, this) {}
  50. /**
  51. * Destructor
  52. */
  53. virtual ~domCg_sampler1D() {}
  54. /**
  55. * Overloaded assignment operator
  56. */
  57. virtual domCg_sampler1D &operator=( const domCg_sampler1D &cpy ) { (void)cpy; return *this; }
  58. public: // STATIC METHODS
  59. /**
  60. * Creates an instance of this class and returns a daeElementRef referencing it.
  61. * @return a daeElementRef referencing an instance of this object.
  62. */
  63. static DLLSPEC daeElementRef create(DAE& dae);
  64. /**
  65. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  66. * If a daeMetaElement already exists it will return that instead of creating a new one.
  67. * @return A daeMetaElement describing this COLLADA element.
  68. */
  69. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  70. };
  71. #endif