#ifndef __dom150Profile_bridge_h__ #define __dom150Profile_bridge_h__ #include #include <1.5/dom/domTypes.h> #include <1.5/dom/domElements.h> #include <1.5/dom/domAsset.h> #include <1.5/dom/domExtra.h> class DAE; namespace ColladaDOM150 { /** * Bridge COLLADA FX to an external FX framework such as NVIDIA's CgFX or * Microsoft's Direct3D FX */ class domProfile_bridge : public daeElement { public: virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_BRIDGE; } static daeInt ID() { return 209; } virtual daeInt typeID() const { return ID(); } protected: // Attributes xsID attrId; /** * The type of platform. This is a vendor-defined character string that indicates * the platform or capability target for the technique. Optional */ xsNCName attrPlatform; /** * The url to the file which we are bridging too */ xsAnyURI attrUrl; protected: // Elements domAssetRef elemAsset; domExtra_Array elemExtra_array; public: //Accessors and Mutators /** * Gets the id attribute. * @return Returns a xsID of the id attribute. */ xsID getId() const { return attrId; } /** * Sets the id attribute. * @param atId The new value for the id attribute. */ void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; if( _document != NULL ) _document->changeElementID( this, attrId ); } /** * Gets the platform attribute. * @return Returns a xsNCName of the platform attribute. */ xsNCName getPlatform() const { return attrPlatform; } /** * Sets the platform attribute. * @param atPlatform The new value for the platform attribute. */ void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform;} /** * Gets the url attribute. * @return Returns a xsAnyURI reference of the url attribute. */ xsAnyURI &getUrl() { return attrUrl; } /** * Gets the url attribute. * @return Returns a constant xsAnyURI reference of the url attribute. */ const xsAnyURI &getUrl() const { return attrUrl; } /** * Sets the url attribute. * @param atUrl The new value for the url attribute. */ void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; } /** * Sets the url attribute. * @param atUrl The new value for the url attribute. */ void setUrl( xsString atUrl ) { attrUrl = atUrl; } /** * Gets the asset element. * @return a daeSmartRef to the asset element. */ const domAssetRef getAsset() const { return elemAsset; } /** * Gets the extra element array. * @return Returns a reference to the array of extra elements. */ domExtra_Array &getExtra_array() { return elemExtra_array; } /** * Gets the extra element array. * @return Returns a constant reference to the array of extra elements. */ const domExtra_Array &getExtra_array() const { return elemExtra_array; } protected: /** * Constructor */ domProfile_bridge(DAE& dae) : daeElement(dae), attrId(), attrPlatform(), attrUrl(dae, *this), elemAsset(), elemExtra_array() {} /** * Destructor */ virtual ~domProfile_bridge() {} /** * Overloaded assignment operator */ virtual domProfile_bridge &operator=( const domProfile_bridge &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(DAE& dae); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(DAE& dae); }; } // ColladaDOM150 #endif