KHTML
Go to the documentation of this file.
   25 #if ENABLE(SVG) && ENABLE(SVG_FILTERS) 
   30 #include "SVGRenderStyle.h" 
   39 SVGFEComponentTransferElement::SVGFEComponentTransferElement(
const QualifiedName& tagName, Document* doc)
 
   40     : SVGFilterPrimitiveStandardAttributes(tagName, doc)
 
   45 SVGFEComponentTransferElement::~SVGFEComponentTransferElement()
 
   47     delete m_filterEffect;
 
   52 void SVGFEComponentTransferElement::parseMappedAttribute(MappedAttribute* attr)
 
   54     const String& value = attr->value();
 
   56         setIn1BaseValue(value);
 
   58         SVGFilterPrimitiveStandardAttributes::parseMappedAttribute(attr);
 
   61 SVGFEComponentTransfer* SVGFEComponentTransferElement::filterEffect(SVGResourceFilter* filter)
 const 
   64         m_filterEffect = 
new SVGFEComponentTransfer(filter);
 
   66     m_filterEffect->setIn(in1());
 
   67     setStandardAttributes(m_filterEffect);
 
   69     for (Node* n = firstChild(); n != 0; n = n->nextSibling()) {
 
   71             m_filterEffect->setRedFunction(static_cast<SVGFEFuncRElement*>(n)->transferFunction());
 
   73             m_filterEffect->setGreenFunction(static_cast<SVGFEFuncGElement*>(n)->transferFunction());
 
   75             m_filterEffect->setBlueFunction(static_cast<SVGFEFuncBElement*>(n)->transferFunction());
 
   77             m_filterEffect->setAlphaFunction(static_cast<SVGFEFuncAElement*>(n)->transferFunction());
 
   80     return m_filterEffect;
 
DOM::QualifiedName feFuncATag
DOM::QualifiedName inAttr
DOM::QualifiedName feFuncGTag
DOM::QualifiedName feFuncBTag
DOM::QualifiedName feFuncRTag
  
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by
doxygen 1.8.7 written
by 
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.