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
QSvgNode Class Referenceabstract

#include <qsvgnode_p.h>

+ Inheritance diagram for QSvgNode:
+ Collaboration diagram for QSvgNode:

Public Types

enum  Type {
  Doc , Group , Defs , Switch ,
  Animation , Circle , Ellipse , Image ,
  Line , Path , Polygon , Polyline ,
  Rect , Text , Textarea , Tspan ,
  Use , Video , Mask , Symbol ,
  Marker , Pattern , Filter , FeMerge ,
  FeMergenode , FeColormatrix , FeGaussianblur , FeOffset ,
  FeComposite , FeFlood , FeUnsupported
}
 
enum  DisplayMode {
  InlineMode , BlockMode , ListItemMode , RunInMode ,
  CompactMode , MarkerMode , TableMode , InlineTableMode ,
  TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode ,
  TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode ,
  NoneMode , InheritMode
}
 

Public Member Functions

 QSvgNode (QSvgNode *parent=0)
 
virtual ~QSvgNode ()
 
void draw (QPainter *p, QSvgExtraStates &states)
 
virtual bool separateFillStroke () const
 
virtual void drawCommand (QPainter *p, QSvgExtraStates &states)=0
 
void fillThenStroke (QPainter *p, QSvgExtraStates &states)
 
QImage drawIntoBuffer (QPainter *p, QSvgExtraStates &states, const QRect &boundsRect)
 
void applyMaskToBuffer (QImage *proxy, QImage mask) const
 
void drawWithMask (QPainter *p, QSvgExtraStates &states, const QImage &mask, const QRect &boundsRect)
 
void applyBufferToCanvas (QPainter *p, QImage proxy) const
 
QSvgNodeparent () const
 
bool isDescendantOf (const QSvgNode *parent) const
 
void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
void applyStyleRecursive (QPainter *p, QSvgExtraStates &states) const
 
void revertStyle (QPainter *p, QSvgExtraStates &states) const
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgPaintStylePropertystyleProperty (const QString &id) const
 
QSvgTinyDocumentdocument () const
 
virtual Type type () const =0
 
QString typeName () const
 
virtual QRectF fastBounds (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF bounds (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF transformedBounds (QPainter *p, QSvgExtraStates &states) const
 
QRectF transformedBounds () const
 
void setRequiredFeatures (const QStringList &lst)
 
const QStringListrequiredFeatures () const
 
void setRequiredExtensions (const QStringList &lst)
 
const QStringListrequiredExtensions () const
 
void setRequiredLanguages (const QStringList &lst)
 
const QStringListrequiredLanguages () const
 
void setRequiredFormats (const QStringList &lst)
 
const QStringListrequiredFormats () const
 
void setRequiredFonts (const QStringList &lst)
 
const QStringListrequiredFonts () const
 
void setVisible (bool visible)
 
bool isVisible () const
 
void setDisplayMode (DisplayMode display)
 
DisplayMode displayMode () const
 
QString nodeId () const
 
void setNodeId (const QString &i)
 
QString xmlClass () const
 
void setXmlClass (const QString &str)
 
QString maskId () const
 
void setMaskId (const QString &str)
 
bool hasMask () const
 
QString filterId () const
 
void setFilterId (const QString &str)
 
bool hasFilter () const
 
QString markerStartId () const
 
void setMarkerStartId (const QString &str)
 
bool hasMarkerStart () const
 
QString markerMidId () const
 
void setMarkerMidId (const QString &str)
 
bool hasMarkerMid () const
 
QString markerEndId () const
 
void setMarkerEndId (const QString &str)
 
bool hasMarkerEnd () const
 
bool hasAnyMarker () const
 
virtual bool shouldDrawNode (QPainter *p, QSvgExtraStates &states) const
 
const QSvgStylestyle () const
 

Static Protected Member Functions

static qreal strokeWidth (QPainter *p)
 
static void initPainter (QPainter *p)
 

Protected Attributes

QSvgStyle m_style
 

Friends

class QSvgTinyDocument
 

Detailed Description

Definition at line 30 of file qsvgnode_p.h.

Member Enumeration Documentation

◆ DisplayMode

Enumerator
InlineMode 
BlockMode 
ListItemMode 
RunInMode 
CompactMode 
MarkerMode 
TableMode 
InlineTableMode 
TableRowGroupMode 
TableHeaderGroupMode 
TableFooterGroupMode 
TableRowMode 
TableColumnGroupMode 
TableColumnMode 
TableCellMode 
TableCaptionMode 
NoneMode 
InheritMode 

Definition at line 67 of file qsvgnode_p.h.

◆ Type

Enumerator
Doc 
Group 
Defs 
Switch 
Animation 
Circle 
Ellipse 
Image 
Line 
Path 
Polygon 
Polyline 
Rect 
Text 
Textarea 
Tspan 
Use 
Video 
Mask 
Symbol 
Marker 
Pattern 
Filter 
FeMerge 
FeMergenode 
FeColormatrix 
FeGaussianblur 
FeOffset 
FeComposite 
FeFlood 
FeUnsupported 

Definition at line 33 of file qsvgnode_p.h.

Constructor & Destructor Documentation

◆ QSvgNode()

QSvgNode::QSvgNode ( QSvgNode * parent = 0)

Definition at line 26 of file qsvgnode.cpp.

◆ ~QSvgNode()

QSvgNode::~QSvgNode ( )
virtual

Definition at line 33 of file qsvgnode.cpp.

Member Function Documentation

◆ appendStyleProperty()

◆ applyBufferToCanvas()

void QSvgNode::applyBufferToCanvas ( QPainter * p,
QImage proxy ) const

Definition at line 153 of file qsvgnode.cpp.

References proxy.

Referenced by draw().

+ Here is the caller graph for this function:

◆ applyMaskToBuffer()

void QSvgNode::applyMaskToBuffer ( QImage * proxy,
QImage mask ) const

Definition at line 145 of file qsvgnode.cpp.

References QPainter::CompositionMode_DestinationOut, and proxy.

Referenced by draw(), and drawWithMask().

+ Here is the caller graph for this function:

◆ applyStyle()

void QSvgNode::applyStyle ( QPainter * p,
QSvgExtraStates & states ) const

Definition at line 232 of file qsvgnode.cpp.

References QSvgStyle::apply(), and m_style.

Referenced by applyStyleRecursive(), QSvgTinyDocument::draw(), QSvgTinyDocument::draw(), draw(), QSvgMarker::drawCommand(), transformedBounds(), and transformedBounds().

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

◆ applyStyleRecursive()

void QSvgNode::applyStyleRecursive ( QPainter * p,
QSvgExtraStates & states ) const

Apply the styles of all parents to the painter and the states. The styles are applied from the top level node to the current node. This function can be used to set the correct style for a node if it's draw function is triggered out of the ordinary draw context, for example the mask node, that is cross-referenced.

Definition at line 246 of file qsvgnode.cpp.

References applyStyle(), applyStyleRecursive(), and parent().

Referenced by applyStyleRecursive(), and QSvgMask::createMask().

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

◆ bounds()

QRectF QSvgNode::bounds ( QPainter * p,
QSvgExtraStates & states ) const
virtual

Reimplemented in QSvgFeFilterPrimitive, QSvgEllipse, QSvgImage, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgText, QSvgUse, and QSvgStructureNode.

Definition at line 338 of file qsvgnode.cpp.

Referenced by draw(), fastBounds(), QSvgPattern::patternImage(), and transformedBounds().

+ Here is the caller graph for this function:

◆ displayMode()

QSvgNode::DisplayMode QSvgNode::displayMode ( ) const

Definition at line 599 of file qsvgnode.cpp.

Referenced by QSvgMask::createMask(), QSvgTinyDocument::draw(), QSvgTinyDocument::draw(), QSvgG::drawCommand(), QSvgSymbol::drawCommand(), QSvgMarker::drawCommand(), and QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ document()

QSvgTinyDocument * QSvgNode::document ( ) const

Definition at line 372 of file qsvgnode.cpp.

References Doc, parent(), and type().

Referenced by QSvgStructureNode::addChild(), appendStyleProperty(), QSvgStyle::apply(), QSvgAnimateColor::apply(), QSvgFilterContainer::applyFilter(), QSvgMask::createMask(), createMaskNode(), draw(), QSvgMarker::drawMarkersForNode(), hasAnyMarker(), hasFilter(), hasMarkerEnd(), hasMarkerMid(), hasMarkerStart(), hasMask(), QSvgFeFilterPrimitive::localFilterBoundingBox(), parseAnimateColorNode(), parseAnimateTransformNode(), parseFont(), QSvgAnimateTransform::resolveMatrix(), QSvgStructureNode::scopeNode(), and styleProperty().

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

◆ draw()

void QSvgNode::draw ( QPainter * p,
QSvgExtraStates & states )

Definition at line 38 of file qsvgnode.cpp.

References applyBufferToCanvas(), applyMaskToBuffer(), applyStyle(), bounds(), document(), drawCommand(), drawIntoBuffer(), drawWithMask(), fillThenStroke(), filterId(), hasFilter(), hasMask(), Mask, maskId(), QSvgTinyDocument::namedNode(), proxy, Q_UNLIKELY, qCDebug, revertStyle(), separateFillStroke(), shouldDrawNode(), QElapsedTimer::start(), QSvgFilterContainer::supported(), and typeName().

Referenced by QSvgMask::createMask(), QSvgTinyDocument::draw(), QSvgTinyDocument::draw(), QSvgG::drawCommand(), QSvgUse::drawCommand(), QSvgSymbol::drawCommand(), QSvgMarker::drawCommand(), and QSvgSwitch::drawCommand().

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

◆ drawCommand()

virtual void QSvgNode::drawCommand ( QPainter * p,
QSvgExtraStates & states )
pure virtual

Implemented in QSvgFeFilterPrimitive, QSvgAnimation, QSvgTspan, QSvgVideo, QSvgG, QSvgDefs, QSvgSymbolLike, QSvgFilterContainer, QSvgMask, QSvgPattern, QSvgTinyDocument, QSvgEllipse, QSvgImage, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, QSvgText, QSvgUse, QSvgSymbol, QSvgMarker, and QSvgSwitch.

Referenced by draw(), drawIntoBuffer(), and fillThenStroke().

+ Here is the caller graph for this function:

◆ drawIntoBuffer()

QImage QSvgNode::drawIntoBuffer ( QPainter * p,
QSvgExtraStates & states,
const QRect & boundsRect )

Definition at line 122 of file qsvgnode.cpp.

References QImageIOHandler::allocateImage(), drawCommand(), fillThenStroke(), QImage::Format_RGBA8888, proxy, qCWarning, separateFillStroke(), and Qt::transparent.

Referenced by draw(), and drawWithMask().

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

◆ drawWithMask()

void QSvgNode::drawWithMask ( QPainter * p,
QSvgExtraStates & states,
const QImage & mask,
const QRect & boundsRect )

Definition at line 109 of file qsvgnode.cpp.

References applyMaskToBuffer(), drawIntoBuffer(), and proxy.

Referenced by draw().

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

◆ fastBounds()

QRectF QSvgNode::fastBounds ( QPainter * p,
QSvgExtraStates & states ) const
virtual

Reimplemented in QSvgFeFilterPrimitive, QSvgEllipse, QSvgLine, QSvgPath, QSvgPolygon, QSvgPolyline, QSvgRect, and QSvgText.

Definition at line 333 of file qsvgnode.cpp.

References bounds().

Referenced by shouldDrawNode().

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

◆ fillThenStroke()

void QSvgNode::fillThenStroke ( QPainter * p,
QSvgExtraStates & states )

Definition at line 85 of file qsvgnode.cpp.

References drawCommand(), Qt::NoBrush, and Qt::NoPen.

Referenced by draw(), and drawIntoBuffer().

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

◆ filterId()

QString QSvgNode::filterId ( ) const

Definition at line 519 of file qsvgnode.cpp.

Referenced by draw().

+ Here is the caller graph for this function:

◆ hasAnyMarker()

bool QSvgNode::hasAnyMarker ( ) const

Definition at line 587 of file qsvgnode.cpp.

References document(), hasMarkerEnd(), hasMarkerMid(), hasMarkerStart(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgMarker::drawMarkersForNode().

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

◆ hasFilter()

bool QSvgNode::hasFilter ( ) const

Definition at line 529 of file qsvgnode.cpp.

References document(), QString::isEmpty(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by draw().

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

◆ hasMarkerEnd()

bool QSvgNode::hasMarkerEnd ( ) const

Definition at line 580 of file qsvgnode.cpp.

References document(), QString::isEmpty(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgMarker::drawMarkersForNode(), and hasAnyMarker().

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

◆ hasMarkerMid()

bool QSvgNode::hasMarkerMid ( ) const

Definition at line 563 of file qsvgnode.cpp.

References document(), QString::isEmpty(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgMarker::drawMarkersForNode(), and hasAnyMarker().

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

◆ hasMarkerStart()

bool QSvgNode::hasMarkerStart ( ) const

Definition at line 546 of file qsvgnode.cpp.

References document(), QString::isEmpty(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgMarker::drawMarkersForNode(), and hasAnyMarker().

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

◆ hasMask()

bool QSvgNode::hasMask ( ) const

Definition at line 512 of file qsvgnode.cpp.

References document(), QString::isEmpty(), testFlag(), and QtSvg::Tiny12FeaturesOnly.

Referenced by QSvgMask::createMask(), and draw().

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

◆ initPainter()

void QSvgNode::initPainter ( QPainter * p)
staticprotected

Definition at line 612 of file qsvgnode.cpp.

References QPainter::Antialiasing, Qt::black, Qt::FlatCap, font, Qt::NoBrush, QFont::pixelSize(), QFont::pointSize(), QPen::setMiterLimit(), QFont::setPointSizeF(), QPainter::SmoothPixmapTransform, Qt::SolidLine, and Qt::SvgMiterJoin.

Referenced by QSvgMask::createMask(), and QSvgTinyDocument::draw().

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

◆ isDescendantOf()

bool QSvgNode::isDescendantOf ( const QSvgNode * parent) const

Definition at line 161 of file qsvgnode.cpp.

References parent().

Referenced by QSvgUse::bounds(), createUseNode(), and QSvgUse::drawCommand().

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

◆ isVisible()

bool QSvgNode::isVisible ( ) const
inline

Definition at line 207 of file qsvgnode_p.h.

Referenced by QSvgMask::createMask(), QSvgTinyDocument::draw(), QSvgG::drawCommand(), QSvgSymbol::drawCommand(), QSvgMarker::drawCommand(), QSvgSwitch::drawCommand(), parseVisibility(), and setVisible().

+ Here is the caller graph for this function:

◆ markerEndId()

QString QSvgNode::markerEndId ( ) const

Definition at line 570 of file qsvgnode.cpp.

Referenced by QSvgMarker::drawMarkersForNode().

+ Here is the caller graph for this function:

◆ markerMidId()

QString QSvgNode::markerMidId ( ) const

Definition at line 553 of file qsvgnode.cpp.

◆ markerStartId()

QString QSvgNode::markerStartId ( ) const

Definition at line 536 of file qsvgnode.cpp.

Referenced by QSvgMarker::drawMarkersForNode().

+ Here is the caller graph for this function:

◆ maskId()

QString QSvgNode::maskId ( ) const

Definition at line 502 of file qsvgnode.cpp.

Referenced by QSvgMask::createMask(), and draw().

+ Here is the caller graph for this function:

◆ nodeId()

QString QSvgNode::nodeId ( ) const
inline

Definition at line 212 of file qsvgnode_p.h.

Referenced by QSvgVisitorImpl::visitDocumentNodeEnd(), SvgDebugVisitor::visitStructureNodeEnd(), and SvgDebugVisitor::visitStructureNodeStart().

+ Here is the caller graph for this function:

◆ parent()

QSvgNode * QSvgNode::parent ( ) const
inline

Definition at line 202 of file qsvgnode_p.h.

Referenced by applyStyleRecursive(), createFontNode(), createLinearGradientNode(), document(), QSvgTinyDocument::draw(), isDescendantOf(), QSvgStyleSelector::parentNode(), parseVisibility(), styleProperty(), transformedBounds(), and QSvgTinyDocument::transformForElement().

+ Here is the caller graph for this function:

◆ requiredExtensions()

const QStringList & QSvgNode::requiredExtensions ( ) const

Definition at line 437 of file qsvgnode.cpp.

Referenced by QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ requiredFeatures()

const QStringList & QSvgNode::requiredFeatures ( ) const

Definition at line 427 of file qsvgnode.cpp.

Referenced by QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ requiredFonts()

const QStringList & QSvgNode::requiredFonts ( ) const

Definition at line 467 of file qsvgnode.cpp.

Referenced by QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ requiredFormats()

const QStringList & QSvgNode::requiredFormats ( ) const

Definition at line 457 of file qsvgnode.cpp.

Referenced by QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ requiredLanguages()

const QStringList & QSvgNode::requiredLanguages ( ) const

Definition at line 447 of file qsvgnode.cpp.

Referenced by QSvgSwitch::drawCommand().

+ Here is the caller graph for this function:

◆ revertStyle()

void QSvgNode::revertStyle ( QPainter * p,
QSvgExtraStates & states ) const

Definition at line 253 of file qsvgnode.cpp.

References m_style, and QSvgStyle::revert().

Referenced by QSvgTinyDocument::draw(), QSvgTinyDocument::draw(), draw(), QSvgMarker::drawCommand(), and transformedBounds().

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

◆ separateFillStroke()

virtual bool QSvgNode::separateFillStroke ( ) const
inlinevirtual

Reimplemented in QSvgEllipse, QSvgPath, QSvgPolygon, QSvgPolyline, and QSvgRect.

Definition at line 92 of file qsvgnode_p.h.

Referenced by draw(), and drawIntoBuffer().

+ Here is the caller graph for this function:

◆ setDisplayMode()

void QSvgNode::setDisplayMode ( DisplayMode display)

Definition at line 594 of file qsvgnode.cpp.

Referenced by parseOthers().

+ Here is the caller graph for this function:

◆ setFilterId()

void QSvgNode::setFilterId ( const QString & str)

Definition at line 524 of file qsvgnode.cpp.

References str.

Referenced by parseExtendedAttributes().

+ Here is the caller graph for this function:

◆ setMarkerEndId()

void QSvgNode::setMarkerEndId ( const QString & str)

Definition at line 575 of file qsvgnode.cpp.

References str.

Referenced by parseExtendedAttributes().

+ Here is the caller graph for this function:

◆ setMarkerMidId()

void QSvgNode::setMarkerMidId ( const QString & str)

Definition at line 558 of file qsvgnode.cpp.

References str.

Referenced by parseExtendedAttributes().

+ Here is the caller graph for this function:

◆ setMarkerStartId()

void QSvgNode::setMarkerStartId ( const QString & str)

Definition at line 541 of file qsvgnode.cpp.

References str.

Referenced by parseExtendedAttributes().

+ Here is the caller graph for this function:

◆ setMaskId()

void QSvgNode::setMaskId ( const QString & str)

Definition at line 507 of file qsvgnode.cpp.

References str.

Referenced by parseExtendedAttributes().

+ Here is the caller graph for this function:

◆ setNodeId()

void QSvgNode::setNodeId ( const QString & i)

Definition at line 492 of file qsvgnode.cpp.

References i.

Referenced by parseCoreNode(), and parseStopNode().

+ Here is the caller graph for this function:

◆ setRequiredExtensions()

void QSvgNode::setRequiredExtensions ( const QStringList & lst)

Definition at line 432 of file qsvgnode.cpp.

Referenced by parseCoreNode().

+ Here is the caller graph for this function:

◆ setRequiredFeatures()

void QSvgNode::setRequiredFeatures ( const QStringList & lst)

Definition at line 422 of file qsvgnode.cpp.

Referenced by parseCoreNode().

+ Here is the caller graph for this function:

◆ setRequiredFonts()

void QSvgNode::setRequiredFonts ( const QStringList & lst)

Definition at line 462 of file qsvgnode.cpp.

Referenced by parseCoreNode().

+ Here is the caller graph for this function:

◆ setRequiredFormats()

void QSvgNode::setRequiredFormats ( const QStringList & lst)

Definition at line 452 of file qsvgnode.cpp.

Referenced by parseCoreNode().

+ Here is the caller graph for this function:

◆ setRequiredLanguages()

void QSvgNode::setRequiredLanguages ( const QStringList & lst)

Definition at line 442 of file qsvgnode.cpp.

Referenced by parseCoreNode().

+ Here is the caller graph for this function:

◆ setVisible()

void QSvgNode::setVisible ( bool visible)

Definition at line 472 of file qsvgnode.cpp.

References isVisible(), and setVisible().

Referenced by parseVisibility(), and setVisible().

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

◆ setXmlClass()

void QSvgNode::setXmlClass ( const QString & str)

Definition at line 497 of file qsvgnode.cpp.

References str.

Referenced by parseCoreNode(), and parseStopNode().

+ Here is the caller graph for this function:

◆ shouldDrawNode()

bool QSvgNode::shouldDrawNode ( QPainter * p,
QSvgExtraStates & states ) const
virtual

Reimplemented in QSvgText, QSvgG, and QSvgDefs.

Definition at line 626 of file qsvgnode.cpp.

References fastBounds(), QRectF::height(), NoneMode, qCWarning, qEnvironmentVariableIntValue(), QT_SVG_SIZE_LIMIT, type(), and QRectF::width().

Referenced by draw().

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

◆ strokeWidth()

qreal QSvgNode::strokeWidth ( QPainter * p)
staticprotected

Definition at line 604 of file qsvgnode.cpp.

References QPen::brush(), QPen::isCosmetic(), Qt::NoBrush, Qt::NoPen, QBrush::style(), QPen::style(), and QPen::widthF().

Referenced by QSvgEllipse::bounds(), QSvgLine::bounds(), QSvgPath::bounds(), QSvgPolygon::bounds(), QSvgPolyline::bounds(), and QSvgRect::bounds().

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

◆ style()

const QSvgStyle & QSvgNode::style ( ) const
inline

Definition at line 169 of file qsvgnode_p.h.

Referenced by QSvgTinyDocument::addNamedStyle(), QSvgText::shouldDrawNode(), and QSvgVisitorImpl::visitTextNode().

+ Here is the caller graph for this function:

◆ styleProperty() [1/2]

QSvgPaintStyleProperty * QSvgNode::styleProperty ( const QString & id) const

Definition at line 324 of file qsvgnode.cpp.

References document(), QSvgTinyDocument::namedStyle(), and QString::remove().

+ Here is the call graph for this function:

◆ styleProperty() [2/2]

◆ transformedBounds() [1/2]

QRectF QSvgNode::transformedBounds ( ) const

Definition at line 343 of file qsvgnode.cpp.

References applyStyle(), Qt::FlatCap, QImage::Format_RGB32, i, QRectF::isEmpty(), Qt::NoBrush, parent(), QPen::setMiterLimit(), Qt::SolidLine, Qt::SvgMiterJoin, and transformedBounds().

Referenced by transformedBounds(), and QSvgTinyDocument::viewBox().

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

◆ transformedBounds() [2/2]

QRectF QSvgNode::transformedBounds ( QPainter * p,
QSvgExtraStates & states ) const
virtual

Definition at line 484 of file qsvgnode.cpp.

References applyStyle(), bounds(), rect, and revertStyle().

Referenced by QSvgUse::bounds(), QSvgTinyDocument::boundsOnElement(), and QSvgTinyDocument::draw().

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

◆ type()

◆ typeName()

QString QSvgNode::typeName ( ) const

Definition at line 384 of file qsvgnode.cpp.

References Animation, Circle, Defs, Doc, Ellipse, FeColormatrix, FeComposite, FeFlood, FeGaussianblur, FeMerge, FeMergenode, FeOffset, FeUnsupported, Filter, Group, Image, Line, Marker, Mask, Path, Pattern, Polygon, Polyline, QStringLiteral, Rect, Switch, Symbol, Text, Textarea, Tspan, type(), Use, and Video.

Referenced by draw(), and QSvgStyleSelector::nodeToName().

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

◆ xmlClass()

QString QSvgNode::xmlClass ( ) const
inline

Definition at line 217 of file qsvgnode_p.h.

Friends And Related Symbol Documentation

◆ QSvgTinyDocument

friend class QSvgTinyDocument
friend

Definition at line 199 of file qsvgnode_p.h.

Member Data Documentation

◆ m_style


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