Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSvgVisitorImpl Class Reference

#include <qsvgvisitorimpl_p.h>

+ Inheritance diagram for QSvgVisitorImpl:
+ Collaboration diagram for QSvgVisitorImpl:

Public Member Functions

 QSvgVisitorImpl (const QString svgFileName, QQuickGenerator *generator)
 
void traverse ()
 
- Public Member Functions inherited from QSvgVisitor
void traverse (const QSvgStructureNode *node)
 
void traverse (const QSvgNode *node)
 
virtual ~QSvgVisitor ()
 

Protected Member Functions

void visitNode (const QSvgNode *node) override
 
void visitImageNode (const QSvgImage *node) override
 
void visitRectNode (const QSvgRect *node) override
 
void visitEllipseNode (const QSvgEllipse *node) override
 
void visitPathNode (const QSvgPath *node) override
 
void visitLineNode (const QSvgLine *node) override
 
void visitPolygonNode (const QSvgPolygon *node) override
 
void visitPolylineNode (const QSvgPolyline *node) override
 
void visitTextNode (const QSvgText *node) override
 
void visitUseNode (const QSvgUse *node) override
 
bool visitDefsNodeStart (const QSvgDefs *node) override
 
bool visitStructureNodeStart (const QSvgStructureNode *node) override
 
void visitStructureNodeEnd (const QSvgStructureNode *node) override
 
bool visitDocumentNodeStart (const QSvgTinyDocument *node) override
 
void visitDocumentNodeEnd (const QSvgTinyDocument *node) override
 
- Protected Member Functions inherited from QSvgVisitor
virtual void visitAnimationNode (const QSvgAnimation *node)
 
virtual void visitTspanNode (const QSvgTspan *node)
 
virtual void visitVideoNode (const QSvgVideo *node)
 
virtual bool visitGroupNodeStart (const QSvgG *node)
 
virtual void visitGroupNodeEnd (const QSvgG *node)
 
virtual void visitDefsNodeEnd (const QSvgDefs *node)
 
virtual bool visitSwitchNodeStart (const QSvgSwitch *node)
 
virtual void visitSwitchNodeEnd (const QSvgSwitch *node)
 
virtual bool visitMaskNodeStart (const QSvgMask *node)
 
virtual void visitMaskNodeEnd (const QSvgMask *node)
 

Detailed Description

Definition at line 28 of file qsvgvisitorimpl_p.h.

Constructor & Destructor Documentation

◆ QSvgVisitorImpl()

QSvgVisitorImpl::QSvgVisitorImpl ( const QString svgFileName,
QQuickGenerator * generator )

Definition at line 192 of file qsvgvisitorimpl.cpp.

Member Function Documentation

◆ traverse()

void QSvgVisitorImpl::traverse ( )

Definition at line 198 of file qsvgvisitorimpl.cpp.

References QSvgTinyDocument::load(), qCDebug, and QSvgVisitor::traverse().

Referenced by QQuickGenerator::generate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visitDefsNodeStart()

bool QSvgVisitorImpl::visitDefsNodeStart ( const QSvgDefs * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 648 of file qsvgvisitorimpl.cpp.

References QQuickGenerator::generateDefsNode(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ visitDocumentNodeEnd()

void QSvgVisitorImpl::visitDocumentNodeEnd ( const QSvgTinyDocument * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 699 of file qsvgvisitorimpl.cpp.

References End, QQuickGenerator::generateRootNode(), info, Type::name, Qt::NoBrush, QSvgNode::nodeId(), Qt::NoPen, qCDebug, and QSvgTinyDocument::type().

+ Here is the call graph for this function:

◆ visitDocumentNodeStart()

bool QSvgVisitorImpl::visitDocumentNodeStart ( const QSvgTinyDocument * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 683 of file qsvgvisitorimpl.cpp.

References QQuickGenerator::generateRootNode(), info, QSvgTinyDocument::size(), Start, and QSvgTinyDocument::viewBox().

+ Here is the call graph for this function:

◆ visitEllipseNode()

void QSvgVisitorImpl::visitEllipseNode ( const QSvgEllipse * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 274 of file qsvgvisitorimpl.cpp.

References QPainterPath::addEllipse(), rect, and QSvgEllipse::rect().

+ Here is the call graph for this function:

◆ visitImageNode()

void QSvgVisitorImpl::visitImageNode ( const QSvgImage * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 226 of file qsvgvisitorimpl.cpp.

References QSvgImage::filename(), QQuickGenerator::generateImageNode(), QSvgImage::image(), info, and QSvgImage::rect().

+ Here is the call graph for this function:

◆ visitLineNode()

void QSvgVisitorImpl::visitLineNode ( const QSvgLine * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 289 of file qsvgvisitorimpl.cpp.

References QSvgLine::line(), QPainterPath::moveTo(), QLineF::p1(), and QLineF::p2().

+ Here is the call graph for this function:

◆ visitNode()

void QSvgVisitorImpl::visitNode ( const QSvgNode * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 214 of file qsvgvisitorimpl.cpp.

References QQuickGenerator::generateNode(), and info.

+ Here is the call graph for this function:

◆ visitPathNode()

void QSvgVisitorImpl::visitPathNode ( const QSvgPath * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 284 of file qsvgvisitorimpl.cpp.

References QSvgPath::path().

+ Here is the call graph for this function:

◆ visitPolygonNode()

void QSvgVisitorImpl::visitPolygonNode ( const QSvgPolygon * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 297 of file qsvgvisitorimpl.cpp.

References QSvgPolygon::polygon(), and QQuickVectorImageGenerator::Utils::polygonToPath().

+ Here is the call graph for this function:

◆ visitPolylineNode()

void QSvgVisitorImpl::visitPolylineNode ( const QSvgPolyline * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 303 of file qsvgvisitorimpl.cpp.

References QSvgPolyline::polygon(), and QQuickVectorImageGenerator::Utils::polygonToPath().

+ Here is the call graph for this function:

◆ visitRectNode()

void QSvgVisitorImpl::visitRectNode ( const QSvgRect * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 242 of file qsvgvisitorimpl.cpp.

References QPainterPath::moveTo(), QSvgRect::radius(), rect, QSvgRect::rect(), rx(), and ry().

+ Here is the call graph for this function:

◆ visitStructureNodeEnd()

void QSvgVisitorImpl::visitStructureNodeEnd ( const QSvgStructureNode * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 670 of file qsvgvisitorimpl.cpp.

References End, QQuickGenerator::generateStructureNode(), and info.

+ Here is the call graph for this function:

◆ visitStructureNodeStart()

bool QSvgVisitorImpl::visitStructureNodeStart ( const QSvgStructureNode * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 655 of file qsvgvisitorimpl.cpp.

References QQuickGenerator::generateStructureNode(), info, and Start.

+ Here is the call graph for this function:

◆ visitTextNode()

void QSvgVisitorImpl::visitTextNode ( const QSvgText * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 371 of file qsvgvisitorimpl.cpp.

References QFont::AllLowercase, QFont::AllUppercase, QFontMetricsF::ascent(), QTextLine::ascent(), QFont::Bold, QFont::bold(), QFont::capitalization(), QFont::CapitalizationResolved, QFont::Capitalize, QFont::FamiliesResolved, QFont::family(), QFont::FamilyResolved, QString::fill(), QSvgStyle::fill, fmt, font, QTextFormat::ForegroundBrush, QQuickGenerator::generatePath(), QQuickGenerator::generateTextNode(), QTextLayout::glyphRuns(), i, info, QString::isEmpty(), QTextLine::isValid(), QTextBlock::isValid(), QFont::italic(), j, QTextBlock::layout(), QTextLayout::FormatRange::length, QTextLayout::lineAt(), QTextLayout::lineCount(), QTextBlock::next(), Qt::NoBrush, QGradient::NoGradient, QFont::Normal, QFont::pixelSize(), QFont::pointSize(), QFont::pointSizeF(), pos, QSvgText::position(), positions, QSvgText::Preserve, qCDebug, qCWarning, qFuzzyCompare(), QStringLiteral, QString::replace(), QFont::resolveMask(), QFont::setPixelSize(), QSvgText::size(), QFont::SizeResolved, QFont::SmallCaps, QSvgNode::style(), QFont::StyleResolved, text, QSvgNode::Textarea, QTextBlock::textFormats(), QTextFormat::TextOutline, QString::toHtmlEscaped(), QString::toLower(), QString::toUpper(), QSvgText::tspans(), QSvgText::type(), QFont::weight(), QFont::WeightResolved, QSvgText::whitespaceMode(), QSizeF::width(), and Qt::WindingFill.

+ Here is the call graph for this function:

◆ visitUseNode()

void QSvgVisitorImpl::visitUseNode ( const QSvgUse * node)
overrideprotectedvirtual

Reimplemented from QSvgVisitor.

Definition at line 626 of file qsvgvisitorimpl.cpp.

References End, QQuickGenerator::generateUseNode(), info, QSvgUse::link(), Start, QSvgUse::start(), and QSvgVisitor::traverse().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: