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)
 
bool 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 249 of file qsvgvisitorimpl.cpp.

Member Function Documentation

◆ traverse()

bool QSvgVisitorImpl::traverse ( )

Definition at line 255 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 917 of file qsvgvisitorimpl.cpp.

References Q_UNUSED.

◆ visitDocumentNodeEnd()

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

Reimplemented from QSvgVisitor.

Definition at line 968 of file qsvgvisitorimpl.cpp.

References End, 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 952 of file qsvgvisitorimpl.cpp.

References 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 332 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 284 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 347 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 272 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 342 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 355 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 361 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 300 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 939 of file qsvgvisitorimpl.cpp.

References End, and info.

◆ visitStructureNodeStart()

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

Reimplemented from QSvgVisitor.

Definition at line 924 of file qsvgvisitorimpl.cpp.

References info, and Start.

◆ visitTextNode()

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

Reimplemented from QSvgVisitor.

Definition at line 609 of file qsvgvisitorimpl.cpp.

References Qt::AlignHCenter, Qt::AlignRight, QFont::AllLowercase, QFont::AllUppercase, QColor::alpha(), QFontMetricsF::ascent(), QTextLine::ascent(), QFont::Bold, QFont::bold(), QFont::capitalization(), QFont::CapitalizationResolved, QFont::Capitalize, QTextBlock::charFormat(), QFontEngine::cloneWithSize(), QBasicAtomicInteger< T >::deref(), QFont::FamiliesResolved, QFont::family(), QFont::FamilyResolved, QString::fill(), QSvgStyle::fill, fmt, QTextCharFormat::font(), font, QTextFormat::ForegroundBrush, StrokeStyle::fromPen(), QRawFontPrivate::get(), QTextLayout::glyphRuns(), i, info, QString::isEmpty(), QTextLine::isValid(), QTextBlock::isValid(), QFont::italic(), j, QTextBlock::layout(), QTextLayout::lineAt(), QTextLayout::lineCount(), QBasicAtomicInteger< T >::loadRelaxed(), QSvgFont::m_familyName, QTextLayout::minimumWidth(), Qt::MiterJoin, QTextBlock::next(), Qt::NoBrush, QGradient::NoGradient, QFont::Normal, QFont::pixelSize(), QFont::pointSize(), QFont::pointSizeF(), pos, QSvgText::position(), positions, QSvgText::Preserve, Q_ASSERT, qCDebug, qCWarning, qFuzzyCompare(), QStringLiteral, QBasicAtomicInteger< T >::ref(), QFontEngine::ref, QString::replace(), QFont::resolveMask(), QFont::setPixelSize(), QTextLayout::setRawFont(), QSvgText::size(), QFont::SizeResolved, QFont::SmallCaps, QSvgNode::style(), QFont::StyleResolved, Qt::SvgMiterJoin, text, QSvgNode::Textarea, QTextBlock::textFormats(), QTextFormat::TextOutline, QString::toHtmlEscaped(), QString::toLower(), QString::toUpper(), QSvgText::tspans(), QSvgText::type(), QFont::weight(), QFont::WeightResolved, QSvgText::whitespaceMode(), and QSizeF::width().

+ Here is the call graph for this function:

◆ visitUseNode()

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

Reimplemented from QSvgVisitor.

Definition at line 895 of file qsvgvisitorimpl.cpp.

References End, 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: