filter

Module: filter

Inheritance diagram for pysvg.filter:

(C) 2008, 2009 Kerim Mansour For licensing information please refer to license.txt

Classes

FeBlend

class pysvg.filter.FeBlend(in2=None, mode=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feBlend element of an svg doc.

__init__(in2=None, mode=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_in2()
get_mode()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_in2(in2)
set_mode(mode)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeColorMatrix

class pysvg.filter.FeColorMatrix(type=None, values=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feColorMatrix element of an svg doc.

__init__(type=None, values=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_result()
get_type()
get_values()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_type(type)
set_values(values)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeComponentTransfer

class pysvg.filter.FeComponentTransfer(**kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.FilterColorAttrib, pysvg.attributes.FilterPrimitiveWithInAttrib

Class representing the feComponentTransfer element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeComposite

class pysvg.filter.FeComposite(in2=None, operator=None, k1=None, k2=None, k3=None, k4=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feComposite element of an svg doc.

__init__(in2=None, operator=None, k1=None, k2=None, k3=None, k4=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_in2()
get_k1()
get_k2()
get_k3()
get_k4()
get_operator()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_in2(in2)
set_k1(k1)
set_k2(k2)
set_k3(k3)
set_k4(k4)
set_operator(operator)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeConvolveMatrix

class pysvg.filter.FeConvolveMatrix(order=None, kernelMatrix=None, divisor=None, bias=None, targetX=None, targetY=None, edgeMode=None, kernelUnitLength=None, preserveAlpha=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feConvolveMatrix element of an svg doc.

__init__(order=None, kernelMatrix=None, divisor=None, bias=None, targetX=None, targetY=None, edgeMode=None, kernelUnitLength=None, preserveAlpha=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_bias()
get_color_interpolation_filters()
get_divisor()
get_edgeMode()
get_height()
get_id()
get_in()
get_kernelMatrix()
get_kernelUnitLength()
get_order()
get_preserveAlpha()
get_result()
get_targetX()
get_targetY()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_bias(bias)
set_color_interpolation_filters(color_interpolation_filters)
set_divisor(divisor)
set_edgeMode(edgeMode)
set_height(height)
set_id(id)
set_in(inValue)
set_kernelMatrix(kernelMatrix)
set_kernelUnitLength(kernelUnitLength)
set_order(order)
set_preserveAlpha(preserveAlpha)
set_result(result)
set_targetX(targetX)
set_targetY(targetY)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeDiffuseLighting

class pysvg.filter.FeDiffuseLighting(surfaceScale=None, diffuseConstant=None, kernelUnitLength=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer, pysvg.attributes.StyleAttrib, pysvg.attributes.PaintAttrib, pysvg.attributes.PresentationAttributes_LightingEffects

Class representing the feDiffuseLighting element of an svg doc.

__init__(surfaceScale=None, diffuseConstant=None, kernelUnitLength=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_class()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_rendering()
get_diffuseConstant()
get_fill()
get_fill_rule()
get_height()
get_id()
get_in()
get_kernelUnitLength()
get_lighting_color()
get_result()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_width()
get_style()
get_surfaceScale()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_class(aClass)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_rendering(color_rendering)
set_diffuseConstant(diffuseConstant)
set_fill(fill)
set_fill_rule(fill_rule)
set_height(height)
set_id(id)
set_in(inValue)
set_kernelUnitLength(kernelUnitLength)
set_lighting_color(lighting_color)
set_result(result)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_width(stroke_width)
set_style(style)
set_surfaceScale(surfaceScale)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeDisplacementMap

class pysvg.filter.FeDisplacementMap(in2=None, scale=None, xChannelSelector=None, yChannelSelector=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feDisplacementMap element of an svg doc.

__init__(in2=None, scale=None, xChannelSelector=None, yChannelSelector=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_in2()
get_result()
get_scale()
get_width()
get_x()
get_xChannelSelector()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
get_yChannelSelector()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_in2(in2)
set_result(result)
set_scale(scale)
set_width(width)
set_x(x)
set_xChannelSelector(xChannelSelector)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
set_yChannelSelector(yChannelSelector)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeDistantLight

class pysvg.filter.FeDistantLight(azimuth=None, elevation=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib

Class representing the feDistantLight element of an svg doc.

__init__(azimuth=None, elevation=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_azimuth()
get_elevation()
get_id()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_azimuth(azimuth)
set_elevation(elevation)
set_id(id)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeFlood

class pysvg.filter.FeFlood(x=None, y=None, width=None, height=None, flood_color=None, flood_opacity=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer, pysvg.attributes.StyleAttrib, pysvg.attributes.PaintAttrib, pysvg.attributes.PresentationAttributes_feFlood

Class representing the feFlood element of an svg doc.

__init__(x=None, y=None, width=None, height=None, flood_color=None, flood_opacity=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_class()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_rendering()
get_fill()
get_fill_rule()
get_flood_color()
get_flood_opacity()
get_height()
get_id()
get_in()
get_result()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_width()
get_style()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_class(aClass)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_rendering(color_rendering)
set_fill(fill)
set_fill_rule(fill_rule)
set_flood_color(flood_color)
set_flood_opacity(flood_opacity)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_width(stroke_width)
set_style(style)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeFuncA

class pysvg.filter.FeFuncA(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)

Bases: pysvg.filter.FeFuncR

Class representing the feFuncA element of an svg doc.

__init__(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_amplitude()
get_exponent()
get_id()
get_intercept()
get_offset()
get_slope()
get_tableValues()
get_type()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_amplitude(amplitude)
set_exponent(exponent)
set_id(id)
set_intercept(intercept)
set_offset(offset)
set_slope(slope)
set_tableValues(tableValues)
set_type(type)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeFuncB

class pysvg.filter.FeFuncB(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)

Bases: pysvg.filter.FeFuncR

Class representing the feFuncB element of an svg doc.

__init__(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_amplitude()
get_exponent()
get_id()
get_intercept()
get_offset()
get_slope()
get_tableValues()
get_type()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_amplitude(amplitude)
set_exponent(exponent)
set_id(id)
set_intercept(intercept)
set_offset(offset)
set_slope(slope)
set_tableValues(tableValues)
set_type(type)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeFuncG

class pysvg.filter.FeFuncG(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)

Bases: pysvg.filter.FeFuncR

Class representing the feFuncG element of an svg doc.

__init__(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_amplitude()
get_exponent()
get_id()
get_intercept()
get_offset()
get_slope()
get_tableValues()
get_type()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_amplitude(amplitude)
set_exponent(exponent)
set_id(id)
set_intercept(intercept)
set_offset(offset)
set_slope(slope)
set_tableValues(tableValues)
set_type(type)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeFuncR

class pysvg.filter.FeFuncR(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib

Class representing the feFuncR element of an svg doc.

__init__(type=None, tableValues=None, slope=None, intercept=None, amplitude=None, exponent=None, offset=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_amplitude()
get_exponent()
get_id()
get_intercept()
get_offset()
get_slope()
get_tableValues()
get_type()
get_xml_base()
get_xml_lang()
get_xml_space()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_amplitude(amplitude)
set_exponent(exponent)
set_id(id)
set_intercept(intercept)
set_offset(offset)
set_slope(slope)
set_tableValues(tableValues)
set_type(type)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeGaussianBlur

class pysvg.filter.FeGaussianBlur(inValue=None, x=None, y=None, width=None, height=None, stdDeviation=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feGaussianBlur element of an svg doc.

__init__(inValue=None, x=None, y=None, width=None, height=None, stdDeviation=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_result()
get_stdDeviation()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_stdDeviation(stdDeviation)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeImage

class pysvg.filter.FeImage(xlink_href=None, x=None, y=None, width=None, height=None, result=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.XLinkAttrib, pysvg.attributes.FilterColorAttrib, pysvg.attributes.FilterPrimitiveAttrib, pysvg.attributes.ExternalAttrib, pysvg.attributes.StyleAttrib, pysvg.attributes.PresentationAttributes_All

Class representing the feImage element of an svg doc.

__init__(xlink_href=None, x=None, y=None, width=None, height=None, result=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_alignment_baseline()
get_baseline_shift()
get_class()
get_clip()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_profile()
get_color_rendering()
get_cursor()
get_direction()
get_display()
get_dominant_baseline()
get_enable_background()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_flood_color()
get_flood_opacity()
get_font_family()
get_font_size()
get_font_size_adjust()
get_font_stretch()
get_font_style()
get_font_variant()
get_font_weight()
get_glyph_orientation_horizontal()
get_glyph_orientation_vertical()
get_height()
get_id()
get_image_rendering()
get_kerning()
get_letter_spacing()
get_lighting_color()
get_marker_end()
get_marker_mid()
get_marker_start()
get_mask()
get_opacity()
get_overflow()
get_pointer_events()
get_result()
get_shape_rendering()
get_stop_color()
get_stop_opacity()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_text_anchor()
get_text_decoration()
get_text_rendering()
get_unicode_bidi()
get_visibility()
get_width()
get_word_spacing()
get_writing_mode()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_alignment_baseline(alignment_baseline)
set_baseline_shift(baseline_shift)
set_class(aClass)
set_clip(clip)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_profile(color_profile)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_direction(direction)
set_display(display)
set_dominant_baseline(dominant_baseline)
set_enable_background(enableBackground)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_flood_color(flood_color)
set_flood_opacity(flood_opacity)
set_font_family(font_family)
set_font_size(font_size)
set_font_size_adjust(font_size_adjust)
set_font_stretch(font_stretch)
set_font_style(font_style)
set_font_variant(font_variant)
set_font_weight(font_weight)
set_glyph_orientation_horizontal(glyph_orientation_horizontal)
set_glyph_orientation_vertical(glyph_orientation_vertical)
set_height(height)
set_id(id)
set_image_rendering(image_rendering)
set_kerning(kerning)
set_letter_spacing(letter_spacing)
set_lighting_color(lighting_color)
set_marker_end(marker_end)
set_marker_mid(marker_mid)
set_marker_start(marker_start)
set_mask(mask)
set_opacity(opacity)
set_overflow(overflow)
set_pointer_events(pointer_events)
set_result(result)
set_shape_rendering(shape_rendering)
set_stop_color(stop_color)
set_stop_opacity(stop_opacity)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_text_anchor(text_anchor)
set_text_decoration(text_decoration)
set_text_rendering(text_rendering)
set_unicode_bidi(unicode_bidi)
set_visibility(visibility)
set_width(width)
set_word_spacing(word_spacing)
set_writing_mode(writing_mode)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeMerge

class pysvg.filter.FeMerge(x=None, y=None, width=None, height=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.FilterPrimitiveAttrib

Class representing the feMerge element of an svg doc.

__init__(x=None, y=None, width=None, height=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_height()
get_id()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_height(height)
set_id(id)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeMergeNode

class pysvg.filter.FeMergeNode(inValue=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.FilterColorAttrib, pysvg.attributes.FilterPrimitiveWithInAttrib

Class representing the feMergeNode element of an svg doc.

__init__(inValue=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeMorphology

class pysvg.filter.FeMorphology(x=None, y=None, width=None, height=None, operator=None, radius=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feMorphology element of an svg doc.

__init__(x=None, y=None, width=None, height=None, operator=None, radius=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_operator()
get_radius()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_operator(operator)
set_radius(radius)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeOffset

class pysvg.filter.FeOffset(inValue=None, dx=None, dy=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer, pysvg.core.DeltaPointAttrib

Class representing the feOffset element of an svg doc.

__init__(inValue=None, dx=None, dy=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_dx()
get_dy()
get_height()
get_id()
get_in()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_dx(dx)
set_dy(dy)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FePointLight

class pysvg.filter.FePointLight(x=None, y=None, z=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.core.PointAttrib

Class representing the fePointLight element of an svg doc.

__init__(x=None, y=None, z=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_id()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
get_z()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_id(id)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
set_z(z)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeSpecularLighting

class pysvg.filter.FeSpecularLighting(lighting_color=None, surfaceScale=None, specularConstant=None, specularExponent=None, kernelUnitLength=None, **kwargs)

Bases: pysvg.filter.FeComponentTransfer, pysvg.attributes.StyleAttrib, pysvg.attributes.PaintAttrib, pysvg.attributes.PresentationAttributes_LightingEffects

Class representing the feSpecularLighting element of an svg doc.

__init__(lighting_color=None, surfaceScale=None, specularConstant=None, specularExponent=None, kernelUnitLength=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_class()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_rendering()
get_fill()
get_fill_rule()
get_height()
get_id()
get_in()
get_kernelUnitLength()
get_lighting_color()
get_result()
get_specularConstant()
get_specularExponent()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_width()
get_style()
get_surfaceScale()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_class(aClass)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_rendering(color_rendering)
set_fill(fill)
set_fill_rule(fill_rule)
set_height(height)
set_id(id)
set_in(inValue)
set_kernelUnitLength(kernelUnitLength)
set_lighting_color(lighting_color)
set_result(result)
set_specularConstant(specularConstant)
set_specularExponent(specularExponent)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_width(stroke_width)
set_style(style)
set_surfaceScale(surfaceScale)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeSpotLight

class pysvg.filter.FeSpotLight(x=None, y=None, z=None, pointsAtX=None, pointsAtY=None, pointsAtZ=None, specularExponent=None, limitingConeAngle=None, **kwargs)

Bases: pysvg.filter.FePointLight

Class representing the feSpotLight element of an svg doc.

__init__(x=None, y=None, z=None, pointsAtX=None, pointsAtY=None, pointsAtZ=None, specularExponent=None, limitingConeAngle=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_id()
get_limitingConeAngle()
get_pointsAtX()
get_pointsAtY()
get_pointsAtZ()
get_specularExponent()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
get_z()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_id(id)
set_limitingConeAngle(limitingConeAngle)
set_pointsAtX(pointsAtX)
set_pointsAtY(pointsAtY)
set_pointsAtZ(pointsAtZ)
set_specularExponent(specularExponent)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
set_z(z)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

FeTile

class pysvg.filter.FeTile(**kwargs)

Bases: pysvg.filter.FeComponentTransfer

Class representing the feTile element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_color_interpolation_filters()
get_height()
get_id()
get_in()
get_result()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_in(inValue)
set_result(result)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

Filter

class pysvg.filter.Filter(x=None, y=None, width=None, height=None, filterRes=None, filterUnits=None, primitiveUnits=None, **kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.XLinkAttrib, pysvg.attributes.ExternalAttrib, pysvg.attributes.StyleAttrib, pysvg.attributes.PresentationAttributes_All, pysvg.core.PointAttrib, pysvg.core.DimensionAttrib

Class representing the filter element of an svg doc.

__init__(x=None, y=None, width=None, height=None, filterRes=None, filterUnits=None, primitiveUnits=None, **kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_alignment_baseline()
get_baseline_shift()
get_class()
get_clip()
get_clip_path()
get_clip_rule()
get_color()
get_color_interpolation()
get_color_interpolation_filters()
get_color_profile()
get_color_rendering()
get_cursor()
get_direction()
get_display()
get_dominant_baseline()
get_enable_background()
get_externalResourcesRequired()
get_fill()
get_fill_opacity()
get_fill_rule()
get_filter()
get_filterRes()
get_filterUnits()
get_flood_color()
get_flood_opacity()
get_font_family()
get_font_size()
get_font_size_adjust()
get_font_stretch()
get_font_style()
get_font_variant()
get_font_weight()
get_glyph_orientation_horizontal()
get_glyph_orientation_vertical()
get_height()
get_id()
get_image_rendering()
get_kerning()
get_letter_spacing()
get_lighting_color()
get_marker_end()
get_marker_mid()
get_marker_start()
get_mask()
get_opacity()
get_overflow()
get_pointer_events()
get_primitiveUnits()
get_shape_rendering()
get_stop_color()
get_stop_opacity()
get_stroke()
get_stroke_dasharray()
get_stroke_dashoffset()
get_stroke_linecap()
get_stroke_linejoin()
get_stroke_miterlimit()
get_stroke_opacity()
get_stroke_width()
get_style()
get_text_anchor()
get_text_decoration()
get_text_rendering()
get_unicode_bidi()
get_visibility()
get_width()
get_word_spacing()
get_writing_mode()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_alignment_baseline(alignment_baseline)
set_baseline_shift(baseline_shift)
set_class(aClass)
set_clip(clip)
set_clip_path(clip_path)
set_clip_rule(clip_rule)
set_color(color)
set_color_interpolation(color_interpolation)
set_color_interpolation_filters(color_interpolation_filters)
set_color_profile(color_profile)
set_color_rendering(color_rendering)
set_cursor(cursor)
set_direction(direction)
set_display(display)
set_dominant_baseline(dominant_baseline)
set_enable_background(enableBackground)
set_externalResourcesRequired(externalResourcesRequired)
set_fill(fill)
set_fill_opacity(fill_opacity)
set_fill_rule(fill_rule)
set_filter(filter)
set_filterRes(filterRes)
set_filterUnits(filterUnits)
set_flood_color(flood_color)
set_flood_opacity(flood_opacity)
set_font_family(font_family)
set_font_size(font_size)
set_font_size_adjust(font_size_adjust)
set_font_stretch(font_stretch)
set_font_style(font_style)
set_font_variant(font_variant)
set_font_weight(font_weight)
set_glyph_orientation_horizontal(glyph_orientation_horizontal)
set_glyph_orientation_vertical(glyph_orientation_vertical)
set_height(height)
set_id(id)
set_image_rendering(image_rendering)
set_kerning(kerning)
set_letter_spacing(letter_spacing)
set_lighting_color(lighting_color)
set_marker_end(marker_end)
set_marker_mid(marker_mid)
set_marker_start(marker_start)
set_mask(mask)
set_opacity(opacity)
set_overflow(overflow)
set_pointer_events(pointer_events)
set_primitiveUnits(primitiveUnits)
set_shape_rendering(shape_rendering)
set_stop_color(stop_color)
set_stop_opacity(stop_opacity)
set_stroke(stroke)
set_stroke_dasharray(stroke_dasharray)
set_stroke_dashoffset(stroke_dashoffset)
set_stroke_linecap(stroke_linecap)
set_stroke_linejoin(stroke_linejoin)
set_stroke_miterlimit(stroke_miterlimit)
set_stroke_opacity(stroke_opacity)
set_stroke_width(stroke_width)
set_style(style)
set_text_anchor(text_anchor)
set_text_decoration(text_decoration)
set_text_rendering(text_rendering)
set_unicode_bidi(unicode_bidi)
set_visibility(visibility)
set_width(width)
set_word_spacing(word_spacing)
set_writing_mode(writing_mode)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file

feTurbulence

class pysvg.filter.feTurbulence(**kwargs)

Bases: pysvg.core.BaseElement, pysvg.attributes.CoreAttrib, pysvg.attributes.FilterColorAttrib, pysvg.attributes.FilterPrimitiveAttrib

Class representing the feTurbulence element of an svg doc.

__init__(**kwargs)
addElement(element)
appendTextContent(text)
getAllElements()

returns all elements contained within the top level element list of this element

getAllElementsOfHirarchy()

returns ALL elements of the complete hirarchy as a flat list

getAttribute(attribute_name)
getAttributes()

get all atributes of the element

getElementAt(pos)

returns the element at a specific position within this svg

getElementByID(id)

returns an element with the specific id and the position of that element within the svg elements array

getElementsByType(type)

retrieves all Elements that are of type type @type type: class @param type: type of the element

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

get_baseFrequency()
get_color_interpolation_filters()
get_height()
get_id()
get_numOctaves()
get_result()
get_seed()
get_stitchTiles()
get_type()
get_width()
get_x()
get_xml_base()
get_xml_lang()
get_xml_space()
get_y()
insertElementAt(element, pos)
quote_attrib(inStr)

Transforms characters between xml notation and python notation.

save(filename, encoding='ISO-8859-1', standalone='no')

Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt

setAttribute(attribute_name, attribute_value)
setKWARGS(**kwargs)

Used to set all attributes given in a **kwargs parameter. Might throw an Exception if attribute was not found. #TODO: check if we should fix this using “setAttribute”

set_baseFrequency(baseFrequency)
set_color_interpolation_filters(color_interpolation_filters)
set_height(height)
set_id(id)
set_numOctaves(numOctaves)
set_result(result)
set_seed(seed)
set_stitchTiles(stitchTiles)
set_type(type)
set_width(width)
set_x(x)
set_xml_base(xml_base)
set_xml_lang(language_code)
set_xml_space(xml_space)
set_y(y)
wrap_xml(xml, encoding='ISO-8859-1', standalone='no')

Method that provides a standard svg header string for a file