public class SvgFeTurbulence extends AbstractSvgNode
"This filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble. For a detailed description the of the Perlin turbulence function, see "Texturing and Modeling", Ebert et al, AP Professional, 1994. The resulting image will fill the entire filter primitive subregion for this filter primitive.
It is possible to create bandwidth-limited noise by synthesizing only one octave.
For fractalSum, you get a turbFunctionResult that is aimed at a range of -1 to 1 (the actual result might exceed this range in some cases). To convert to a color value, use the formula colorValue = ((turbFunctionResult * 255) + 255) / 2, then clamp to the range 0 to 255.
For turbulence, you get a turbFunctionResult that is aimed at a range of 0 to 1 (the actual result might exceed this range in some cases). To convert to a color value, use the formula colorValue = (turbFunctionResult * 255), then clamp to the range 0 to 255.
The following order is used for applying the pseudo random numbers. An initial seed value is computed based on attribute seed. Then the implementation computes the lattice points for R, then continues getting additional pseudo random numbers relative to the last generated pseudo random number and computes the lattice points for G, and so on for B and A.
The generated color and alpha values are in the color space determined by the value of property 'color-interpolation-filters'."
XMLContainerImpl.sMode
mContentAndSubtagList
Constructor and Description |
---|
SvgFeTurbulence() |
SvgFeTurbulence(XMLTag inXMLTag) |
Modifier and Type | Method and Description |
---|---|
SvgFeTurbulence |
setBaseFrequency(String inValue) |
SvgFeTurbulence |
setColorInterpolationFilters(ColorInterpolationFilters inValue) |
SvgFeTurbulence |
setHeight(int inValue) |
SvgFeTurbulence |
setHeight(String inValue) |
SvgFeTurbulence |
setNumOctaves(int inValue) |
SvgFeTurbulence |
setResult(String inValue) |
SvgFeTurbulence |
setSeed(int inValue) |
SvgFeTurbulence |
setStitchTiles(boolean inValue) |
SvgFeTurbulence |
setType(TurbulenceType inValue) |
SvgFeTurbulence |
setWidth(int inValue) |
SvgFeTurbulence |
setWidth(String inValue) |
SvgFeTurbulence |
setX(int inValue) |
SvgFeTurbulence |
setX(String inValue) |
SvgFeTurbulence |
setY(int inValue) |
SvgFeTurbulence |
setY(String inValue) |
addClass, addStyle, adjustBoundsForTransform, applyTransform, applyTransforms, draw, drawSubnodes, getAdjustedFont, getBoundsBox, getCenterPoint, getClassAttribute, getCssTransform, getG2Composite, getG2Paint, getG2Stroke, getG2StrokeColor, getTransform, initFromXMLTag, rangeCheckOpacityValue, setClass, setFilter, setId, setOnClick, setOnMouseDown, setOnMouseOut, setOnMouseOver, setOnMouseUp, setPosition, setStyle, setTitle, setTransform
addSubtag, addSubtag, addXMLNamespaceDeclaration, clone, compareTo, equals, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toString, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getContentPlusSubtagList, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagById, getRequiredSubtagById, getRequiredSubtagByName, getRequiredSubtagByName, getSubtagByAttribute, getSubtagByAttribute, getSubtags, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByClass, getSubtagsByClass, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, hasContentOrSubtags, indexOf, innerHTML, removeSubtag, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByClass, removeSubtagsByClass, removeSubtagsByName, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttribute, setAttribute, setAttributes, setNamespace, setTagName, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagByName, getRequiredSubtagByName, getSubtags, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, indexOf, removeSubtag, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
clone, toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML
public SvgFeTurbulence()
public SvgFeTurbulence(XMLTag inXMLTag)
public SvgFeTurbulence setBaseFrequency(String inValue)
public SvgFeTurbulence setColorInterpolationFilters(ColorInterpolationFilters inValue)
public SvgFeTurbulence setNumOctaves(int inValue)
public SvgFeTurbulence setSeed(int inValue)
public SvgFeTurbulence setStitchTiles(boolean inValue)
public SvgFeTurbulence setType(TurbulenceType inValue)
public SvgFeTurbulence setHeight(int inValue)
public SvgFeTurbulence setHeight(String inValue)
public SvgFeTurbulence setResult(String inValue)
public SvgFeTurbulence setWidth(int inValue)
public SvgFeTurbulence setWidth(String inValue)
public SvgFeTurbulence setX(int inValue)
public SvgFeTurbulence setX(String inValue)
public SvgFeTurbulence setY(int inValue)
public SvgFeTurbulence setY(String inValue)