1 ////////////////////////////////////////////////////////////////////////////// 2 // Name: SVGFEDiffuseLightingElement.h 3 // Author: Alex Thuering 4 // Copyright: (c) 2005 Alex Thuering 5 // Licence: wxWindows licence 6 // Notes: generated by generate.py 7 ////////////////////////////////////////////////////////////////////////////// 8 9 #ifndef WX_SVG_FE_DIFFUSE_LIGHTING_ELEMENT_H 10 #define WX_SVG_FE_DIFFUSE_LIGHTING_ELEMENT_H 11 12 #include "SVGElement.h" 13 #include "SVGFilterPrimitiveStandardAttributes.h" 14 #include "SVGAnimatedString.h" 15 #include "SVGAnimatedNumber.h" 16 #include "String_wxsvg.h" 17 #include "Element.h" 18 #include "SVGAnimatedType.h" 19 20 class wxSVGFEDiffuseLightingElement: 21 public wxSVGElement, 22 public wxSVGFilterPrimitiveStandardAttributes 23 { 24 protected: 25 wxSVGAnimatedString m_in1; 26 wxSVGAnimatedNumber m_surfaceScale; 27 wxSVGAnimatedNumber m_diffuseConstant; 28 29 public: GetIn1()30 inline const wxSVGAnimatedString& GetIn1() const { return m_in1; } SetIn1(const wxSVGAnimatedString & n)31 inline void SetIn1(const wxSVGAnimatedString& n) { m_in1 = n; } SetIn1(const wxString & n)32 inline void SetIn1(const wxString& n) { m_in1.SetBaseVal(n); } 33 GetSurfaceScale()34 inline const wxSVGAnimatedNumber& GetSurfaceScale() const { return m_surfaceScale; } SetSurfaceScale(const wxSVGAnimatedNumber & n)35 inline void SetSurfaceScale(const wxSVGAnimatedNumber& n) { m_surfaceScale = n; } SetSurfaceScale(float n)36 inline void SetSurfaceScale(float n) { m_surfaceScale.SetBaseVal(n); } 37 GetDiffuseConstant()38 inline const wxSVGAnimatedNumber& GetDiffuseConstant() const { return m_diffuseConstant; } SetDiffuseConstant(const wxSVGAnimatedNumber & n)39 inline void SetDiffuseConstant(const wxSVGAnimatedNumber& n) { m_diffuseConstant = n; } SetDiffuseConstant(float n)40 inline void SetDiffuseConstant(float n) { m_diffuseConstant.SetBaseVal(n); } 41 42 public: 43 wxSVGFEDiffuseLightingElement(wxString tagName = wxT("feDiffuseLighting")): wxSVGElement(tagName)44 wxSVGElement(tagName) {} ~wxSVGFEDiffuseLightingElement()45 virtual ~wxSVGFEDiffuseLightingElement() {} 46 wxSvgXmlNode* CloneNode(bool deep = true) { return new wxSVGFEDiffuseLightingElement(*this); } 47 bool HasAttribute(const wxString& name) const; 48 wxString GetAttribute(const wxString& name) const; 49 bool SetAttribute(const wxString& name, const wxString& value); 50 wxSvgXmlAttrHash GetAttributes() const; 51 bool SetAnimatedValue(const wxString& name, const wxSVGAnimatedType& value); GetDtd()52 virtual wxSVGDTD GetDtd() const { return wxSVG_FEDIFFUSELIGHTING_ELEMENT; } 53 }; 54 55 #endif // WX_SVG_FE_DIFFUSE_LIGHTING_ELEMENT_H 56