00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domCommon_transparent_type_h__ 00010 #define __domCommon_transparent_type_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domCommon_color_or_texture_type.h> 00017 class DAE; 00018 00019 class domCommon_transparent_type_complexType : public domCommon_color_or_texture_type_complexType 00020 { 00021 protected: // Attribute 00022 domFx_opaque_enum attrOpaque; 00023 00024 00025 public: //Accessors and Mutators 00030 domFx_opaque_enum getOpaque() const { return attrOpaque; } 00035 void setOpaque( domFx_opaque_enum atOpaque ) { attrOpaque = atOpaque; } 00036 00037 protected: 00041 domCommon_transparent_type_complexType(DAE& dae, daeElement* elt) : domCommon_color_or_texture_type_complexType(dae, elt), attrOpaque() {} 00045 virtual ~domCommon_transparent_type_complexType() {} 00049 virtual domCommon_transparent_type_complexType &operator=( const domCommon_transparent_type_complexType &cpy ) { (void)cpy; return *this; } 00050 }; 00051 00055 class domCommon_transparent_type : public daeElement, public domCommon_transparent_type_complexType 00056 { 00057 public: 00058 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_TRANSPARENT_TYPE; } 00059 static daeInt ID() { return 120; } 00060 virtual daeInt typeID() const { return ID(); } 00061 00062 public: //Accessors and Mutators 00067 domFx_opaque_enum getOpaque() const { return attrOpaque; } 00072 void setOpaque( domFx_opaque_enum atOpaque ) { attrOpaque = atOpaque; _validAttributeArray[0] = true; } 00073 00074 protected: 00078 domCommon_transparent_type(DAE& dae) : daeElement(dae), domCommon_transparent_type_complexType(dae, this) {} 00082 virtual ~domCommon_transparent_type() {} 00086 virtual domCommon_transparent_type &operator=( const domCommon_transparent_type &cpy ) { (void)cpy; return *this; } 00087 00088 public: // STATIC METHODS 00093 static DLLSPEC daeElementRef create(DAE& dae); 00099 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00100 }; 00101 00102 00103 #endif