Qt 4.8
Public Functions | List of all members
QSvgG Class Reference

#include <qsvgstructure_p.h>

Inheritance diagram for QSvgG:
QSvgStructureNode QSvgNode

Public Functions

virtual void draw (QPainter *p, QSvgExtraStates &states)
 
 QSvgG (QSvgNode *parent)
 
Type type () const
 
- Public Functions inherited from QSvgStructureNode
void addChild (QSvgNode *child, const QString &id)
 
virtual QRectF bounds (QPainter *p, QSvgExtraStates &states) const
 
QSvgNodepreviousSiblingNode (QSvgNode *n) const
 
 QSvgStructureNode (QSvgNode *parent)
 
QList< QSvgNode * > renderers () const
 
QSvgNodescopeNode (const QString &id) const
 
 ~QSvgStructureNode ()
 
- Public Functions inherited from QSvgNode
void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
DisplayMode displayMode () const
 
QSvgTinyDocumentdocument () const
 
bool isVisible () const
 
QString nodeId () const
 
QSvgNodeparent () const
 
 QSvgNode (QSvgNode *parent=0)
 
const QStringListrequiredExtensions () const
 
const QStringListrequiredFeatures () const
 
const QStringListrequiredFonts () const
 
const QStringListrequiredFormats () const
 
const QStringListrequiredLanguages () const
 
void revertStyle (QPainter *p, QSvgExtraStates &states) const
 
void setDisplayMode (DisplayMode display)
 
void setNodeId (const QString &i)
 
void setRequiredExtensions (const QStringList &lst)
 
void setRequiredFeatures (const QStringList &lst)
 
void setRequiredFonts (const QStringList &lst)
 
void setRequiredFormats (const QStringList &lst)
 
void setRequiredLanguages (const QStringList &lst)
 
void setVisible (bool visible)
 
void setXmlClass (const QString &str)
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgFillStylePropertystyleProperty (const QString &id) const
 
virtual QRectF transformedBounds (QPainter *p, QSvgExtraStates &states) const
 
QRectF transformedBounds () const
 
QString xmlClass () const
 
virtual ~QSvgNode ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 86 of file qsvgstructure_p.h.

Constructors and Destructors

◆ QSvgG()

QSvgG::QSvgG ( QSvgNode parent)

Definition at line 56 of file qsvgstructure.cpp.

57  : QSvgStructureNode(parent)
58 {
59 
60 }
QSvgStructureNode(QSvgNode *parent)

Functions

◆ draw()

void QSvgG::draw ( QPainter p,
QSvgExtraStates states 
)
virtual

Implements QSvgNode.

Definition at line 67 of file qsvgstructure.cpp.

68 {
70  applyStyle(p, states);
71 
72  while (itr != m_renderers.end()) {
73  QSvgNode *node = *itr;
74  if ((node->isVisible()) && (node->displayMode() != QSvgNode::NoneMode))
75  node->draw(p, states);
76  ++itr;
77  }
78  revertStyle(p, states);
79 }
iterator begin()
Returns an STL-style iterator pointing to the first item in the list.
Definition: qlist.h:267
void applyStyle(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:118
bool isVisible() const
Definition: qsvgnode_p.h:188
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:270
DisplayMode displayMode() const
Definition: qsvgnode.cpp:330
The QList::iterator class provides an STL-style non-const iterator for QList and QQueue.
Definition: qlist.h:181
virtual void draw(QPainter *p, QSvgExtraStates &states)=0
void revertStyle(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:123
QList< QSvgNode * > m_renderers

◆ type()

QSvgNode::Type QSvgG::type ( ) const
virtual

Implements QSvgNode.

Definition at line 81 of file qsvgstructure.cpp.

82 {
83  return G;
84 }

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