bool SVGFETurbulenceElement::build(FilterBuilder* builder) { RefPtr<FilterEffect> addedEffect = FETurbulence::create(static_cast<TurbulanceType> (type()), baseFrequencyX(), baseFrequencyY(), numOctaves(), seed(), stitchTiles() == SVG_STITCHTYPE_STITCH); builder->add(result(), addedEffect.release()); return true; }
TextStream& FETurbulence::externalRepresentation(TextStream& ts, int indent) const { writeIndent(ts, indent); ts << "[feTurbulence"; FilterEffect::externalRepresentation(ts); ts << " type=\"" << type() << "\" " << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() << "\" " << "seed=\"" << seed() << "\" " << "numOctaves=\"" << numOctaves() << "\" " << "stitchTiles=\"" << stitchTiles() << "\"]\n"; return ts; }
TextStream& SVGFETurbulence::externalRepresentation(TextStream& ts) const { ts << "[type=TURBULENCE] "; SVGFilterEffect::externalRepresentation(ts); ts << " [turbulence type=" << type() << "]" << " [base frequency x=" << baseFrequencyX() << " y=" << baseFrequencyY() << "]" << " [seed=" << seed() << "]" << " [num octaves=" << numOctaves() << "]" << " [stitch tiles=" << stitchTiles() << "]"; return ts; }
PassRefPtr<FilterEffect> SVGFETurbulenceElement::build(SVGFilterBuilder*) { return FETurbulence::create(static_cast<TurbulanceType>(type()), baseFrequencyX(), baseFrequencyY(), numOctaves(), seed(), stitchTiles() == SVG_STITCHTYPE_STITCH); }