Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSvgStructureNode Class Reference

#include <qsvgstructure_p.h>

+ Inheritance diagram for QSvgStructureNode:
+ Collaboration diagram for QSvgStructureNode:

Public Member Functions

 QSvgStructureNode (QSvgNode *parent)
 
 ~QSvgStructureNode ()
 
QSvgNodescopeNode (const QString &id) const
 
void addChild (QSvgNode *child, const QString &id)
 
QRectF bounds (QPainter *p, QSvgExtraStates &states) const override
 
QSvgNodepreviousSiblingNode (QSvgNode *n) const
 
QList< QSvgNode * > renderers () const
 
- Public Member Functions inherited from QSvgNode
 QSvgNode (QSvgNode *parent=0)
 
virtual ~QSvgNode ()
 
virtual void draw (QPainter *p, QSvgExtraStates &states)=0
 
QSvgNodeparent () const
 
bool isDescendantOf (const QSvgNode *parent) const
 
void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
void revertStyle (QPainter *p, QSvgExtraStates &states) const
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgFillStylePropertystyleProperty (const QString &id) const
 
QSvgTinyDocumentdocument () const
 
virtual Type type () const =0
 
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)
 
bool shouldDrawNode (QPainter *p, QSvgExtraStates &states) const
 

Protected Attributes

QList< QSvgNode * > m_renderers
 
QHash< QString, QSvgNode * > m_scope
 
QList< QSvgStructureNode * > m_linkedScopes
 
bool m_recursing = false
 
- Protected Attributes inherited from QSvgNode
QSvgStyle m_style
 

Additional Inherited Members

- Public Types inherited from QSvgNode
enum  Type {
  DOC , G , DEFS , SWITCH ,
  ANIMATION , ARC , CIRCLE , ELLIPSE ,
  IMAGE , LINE , PATH , POLYGON ,
  POLYLINE , RECT , TEXT , TEXTAREA ,
  TSPAN , USE , VIDEO
}
 
enum  DisplayMode {
  InlineMode , BlockMode , ListItemMode , RunInMode ,
  CompactMode , MarkerMode , TableMode , InlineTableMode ,
  TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode ,
  TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode ,
  NoneMode , InheritMode
}
 
- Static Protected Member Functions inherited from QSvgNode
static qreal strokeWidth (QPainter *p)
 

Detailed Description

Definition at line 31 of file qsvgstructure_p.h.

Constructor & Destructor Documentation

◆ QSvgStructureNode()

QSvgStructureNode::QSvgStructureNode ( QSvgNode parent)

Definition at line 48 of file qsvgstructure.cpp.

◆ ~QSvgStructureNode()

QSvgStructureNode::~QSvgStructureNode ( )

Definition at line 24 of file qsvgstructure.cpp.

References m_renderers, and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ addChild()

void QSvgStructureNode::addChild ( QSvgNode child,
const QString id 
)

Definition at line 60 of file qsvgstructure.cpp.

References QSvgTinyDocument::addNamedNode(), QList< T >::append(), child, QSvgNode::document(), and m_renderers.

Referenced by QSvgHandler::startElement().

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

◆ bounds()

QRectF QSvgStructureNode::bounds ( QPainter p,
QSvgExtraStates states 
) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 326 of file qsvgstructure.cpp.

References bounds(), m_recursing, and m_renderers.

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

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

◆ previousSiblingNode()

QSvgNode * QSvgStructureNode::previousSiblingNode ( QSvgNode n) const

Definition at line 337 of file qsvgstructure.cpp.

References QList< T >::constBegin(), QList< T >::constEnd(), and m_renderers.

Referenced by QSvgStyleSelector::previousSiblingNode().

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

◆ renderers()

QList< QSvgNode * > QSvgStructureNode::renderers ( ) const
inline

Definition at line 40 of file qsvgstructure_p.h.

◆ scopeNode()

QSvgNode * QSvgStructureNode::scopeNode ( const QString id) const

Definition at line 54 of file qsvgstructure.cpp.

References QSvgNode::document(), and QSvgTinyDocument::namedNode().

Referenced by QSvgTinyDocument::boundsOnElement(), QSvgTinyDocument::draw(), QSvgTinyDocument::elementExists(), and QSvgTinyDocument::transformForElement().

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

Member Data Documentation

◆ m_linkedScopes

QList<QSvgStructureNode*> QSvgStructureNode::m_linkedScopes
protected

Definition at line 44 of file qsvgstructure_p.h.

◆ m_recursing

bool QSvgStructureNode::m_recursing = false
mutableprotected

Definition at line 45 of file qsvgstructure_p.h.

Referenced by bounds().

◆ m_renderers

QList<QSvgNode*> QSvgStructureNode::m_renderers
protected

◆ m_scope

QHash<QString, QSvgNode*> QSvgStructureNode::m_scope
protected

Definition at line 43 of file qsvgstructure_p.h.


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