Qt 4.8
Public Types | Public Functions | Static Protected Functions | Protected Variables | Properties | Friends | List of all members
QSvgNode Class Referenceabstract

#include <qsvgnode_p.h>

Inheritance diagram for QSvgNode:
QSvgAnimation QSvgArc QSvgEllipse QSvgImage QSvgLine QSvgPath QSvgPolygon QSvgPolyline QSvgRect QSvgStructureNode QSvgText QSvgTspan QSvgUse QSvgVideo

Public Types

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
}
 

Public Functions

void appendStyleProperty (QSvgStyleProperty *prop, const QString &id)
 
void applyStyle (QPainter *p, QSvgExtraStates &states) const
 
virtual QRectF bounds (QPainter *p, QSvgExtraStates &states) const
 
DisplayMode displayMode () const
 
QSvgTinyDocumentdocument () const
 
virtual void draw (QPainter *p, QSvgExtraStates &states)=0
 
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
 
virtual Type type () const =0
 
QString xmlClass () const
 
virtual ~QSvgNode ()
 

Static Protected Functions

static qreal strokeWidth (QPainter *p)
 

Protected Variables

QSvgStyle m_style
 

Properties

QRectF m_cachedBounds
 
QString m_class
 
DisplayMode m_displayMode
 
QString m_id
 
QSvgNodem_parent
 
QStringList m_requiredExtensions
 
QStringList m_requiredFeatures
 
QStringList m_requiredFonts
 
QStringList m_requiredFormats
 
QStringList m_requiredLanguages
 
bool m_visible
 

Friends

class QSvgTinyDocument
 

Detailed Description

Definition at line 68 of file qsvgnode_p.h.

Enumerations

◆ DisplayMode

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

Definition at line 93 of file qsvgnode_p.h.

◆ Type

Enumerator
DOC 
DEFS 
SWITCH 
ANIMATION 
ARC 
CIRCLE 
ELLIPSE 
IMAGE 
LINE 
PATH 
POLYGON 
POLYLINE 
RECT 
TEXT 
TEXTAREA 
TSPAN 
USE 
VIDEO 

Definition at line 71 of file qsvgnode_p.h.

Constructors and Destructors

◆ QSvgNode()

QSvgNode::QSvgNode ( QSvgNode parent = 0)

Definition at line 52 of file qsvgnode.cpp.

53  : m_parent(parent),
54  m_visible(true),
56 {
57 }
DisplayMode m_displayMode
Definition: qsvgnode_p.h:177
QSvgNode * m_parent
Definition: qsvgnode_p.h:164
bool m_visible
Definition: qsvgnode_p.h:172

◆ ~QSvgNode()

QSvgNode::~QSvgNode ( )
virtual

Definition at line 59 of file qsvgnode.cpp.

60 {
61 
62 }

Functions

◆ appendStyleProperty()

void QSvgNode::appendStyleProperty ( QSvgStyleProperty prop,
const QString id 
)

Definition at line 64 of file qsvgnode.cpp.

Referenced by parseAnimateColorNode(), parseAnimateTransformNode(), parseBrush(), parseCompOp(), parseFont(), parseOpacity(), parsePen(), parseTransform(), and QSvgHandler::startElement().

65 {
66  //qDebug()<<"appending "<<prop->type()<< " ("<< id <<") "<<"to "<<this<<this->type();
67  QSvgTinyDocument *doc;
68  switch (prop->type()) {
70  m_style.quality = static_cast<QSvgQualityStyle*>(prop);
71  break;
73  m_style.fill = static_cast<QSvgFillStyle*>(prop);
74  break;
76  m_style.viewportFill = static_cast<QSvgViewportFillStyle*>(prop);
77  break;
79  m_style.font = static_cast<QSvgFontStyle*>(prop);
80  break;
82  m_style.stroke = static_cast<QSvgStrokeStyle*>(prop);
83  break;
85  m_style.solidColor = static_cast<QSvgSolidColorStyle*>(prop);
86  doc = document();
87  if (doc && !id.isEmpty())
89  break;
91  m_style.gradient = static_cast<QSvgGradientStyle*>(prop);
92  doc = document();
93  if (doc && !id.isEmpty())
94  doc->addNamedStyle(id, m_style.gradient);
95  break;
97  m_style.transform = static_cast<QSvgTransformStyle*>(prop);
98  break;
100  m_style.animateColor = static_cast<QSvgAnimateColor*>(prop);
101  break;
104  static_cast<QSvgAnimateTransform*>(prop));
105  break;
107  m_style.opacity = static_cast<QSvgOpacityStyle*>(prop);
108  break;
110  m_style.compop = static_cast<QSvgCompOpStyle*>(prop);
111  break;
112  default:
113  qDebug("QSvgNode: Trying to append unknown property!");
114  break;
115  }
116 }
QSvgStyle m_style
Definition: qsvgnode_p.h:160
QSvgRefCounter< QSvgGradientStyle > gradient
Definition: qsvgstyle_p.h:777
QSvgRefCounter< QSvgViewportFillStyle > viewportFill
Definition: qsvgstyle_p.h:773
void addNamedStyle(const QString &id, QSvgFillStyleProperty *style)
QList< QSvgRefCounter< QSvgAnimateTransform > > animateTransforms
Definition: qsvgstyle_p.h:780
Q_CORE_EXPORT void qDebug(const char *,...)
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QSvgRefCounter< QSvgOpacityStyle > opacity
Definition: qsvgstyle_p.h:781
QSvgRefCounter< QSvgCompOpStyle > compop
Definition: qsvgstyle_p.h:782
static bool isEmpty(const char *str)
QSvgRefCounter< QSvgTransformStyle > transform
Definition: qsvgstyle_p.h:778
QSvgRefCounter< QSvgQualityStyle > quality
Definition: qsvgstyle_p.h:771
QSvgRefCounter< QSvgFillStyle > fill
Definition: qsvgstyle_p.h:772
QSvgRefCounter< QSvgAnimateColor > animateColor
Definition: qsvgstyle_p.h:779
QSvgRefCounter< QSvgStrokeStyle > stroke
Definition: qsvgstyle_p.h:775
QSvgRefCounter< QSvgFontStyle > font
Definition: qsvgstyle_p.h:774
virtual Type type() const =0
QSvgRefCounter< QSvgSolidColorStyle > solidColor
Definition: qsvgstyle_p.h:776
QSvgTinyDocument * document() const
Definition: qsvgnode.cpp:233

◆ applyStyle()

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

◆ bounds()

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

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

Definition at line 199 of file qsvgnode.cpp.

Referenced by QSvgText::draw(), and transformedBounds().

200 {
201  return QRectF(0, 0, 0, 0);
202 }
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511

◆ displayMode()

QSvgNode::DisplayMode QSvgNode::displayMode ( ) const

Definition at line 330 of file qsvgnode.cpp.

Referenced by QSvgG::draw(), QSvgTinyDocument::draw(), and QSvgSwitch::draw().

331 {
332  return m_displayMode;
333 }
DisplayMode m_displayMode
Definition: qsvgnode_p.h:177

◆ document()

QSvgTinyDocument * QSvgNode::document ( ) const

Definition at line 233 of file qsvgnode.cpp.

Referenced by QSvgStructureNode::addChild(), appendStyleProperty(), QSvgAnimateColor::apply(), QSvgStyle::apply(), parseAnimateColorNode(), parseAnimateTransformNode(), parseFont(), QSvgAnimateTransform::resolveMatrix(), QSvgStructureNode::scopeNode(), and styleProperty().

234 {
235  QSvgTinyDocument *doc = 0;
236  QSvgNode *node = const_cast<QSvgNode*>(this);
237  while (node && node->type() != QSvgNode::DOC) {
238  node = node->parent();
239  }
240  doc = static_cast<QSvgTinyDocument*>(node);
241 
242  return doc;
243 }
virtual Type type() const =0
QSvgNode * parent() const
Definition: qsvgnode_p.h:183

◆ draw()

virtual void QSvgNode::draw ( QPainter p,
QSvgExtraStates states 
)
pure virtual

◆ isVisible()

bool QSvgNode::isVisible ( ) const
inline

Definition at line 188 of file qsvgnode_p.h.

Referenced by QSvgG::draw(), QSvgTinyDocument::draw(), QSvgSwitch::draw(), parseVisibility(), and setVisible().

189 {
190  return m_visible;
191 }
bool m_visible
Definition: qsvgnode_p.h:172

◆ nodeId()

QString QSvgNode::nodeId ( ) const
inline

Definition at line 193 of file qsvgnode_p.h.

Referenced by QSvgStyleSelector::attribute(), QSvgStyleSelector::hasAttributes(), and QSvgStyleSelector::nodeIds().

194 {
195  return m_id;
196 }
QString m_id
Definition: qsvgnode_p.h:174

◆ parent()

QSvgNode * QSvgNode::parent ( ) const
inline

◆ requiredExtensions()

const QStringList & QSvgNode::requiredExtensions ( ) const

Definition at line 260 of file qsvgnode.cpp.

Referenced by QSvgSwitch::draw().

261 {
262  return m_requiredExtensions;
263 }
QStringList m_requiredExtensions
Definition: qsvgnode_p.h:167

◆ requiredFeatures()

const QStringList & QSvgNode::requiredFeatures ( ) const

Definition at line 250 of file qsvgnode.cpp.

Referenced by QSvgSwitch::draw().

251 {
252  return m_requiredFeatures;
253 }
QStringList m_requiredFeatures
Definition: qsvgnode_p.h:166

◆ requiredFonts()

const QStringList & QSvgNode::requiredFonts ( ) const

Definition at line 290 of file qsvgnode.cpp.

Referenced by QSvgSwitch::draw().

291 {
292  return m_requiredFonts;
293 }
QStringList m_requiredFonts
Definition: qsvgnode_p.h:170

◆ requiredFormats()

const QStringList & QSvgNode::requiredFormats ( ) const

Definition at line 280 of file qsvgnode.cpp.

Referenced by QSvgSwitch::draw().

281 {
282  return m_requiredFormats;
283 }
QStringList m_requiredFormats
Definition: qsvgnode_p.h:169

◆ requiredLanguages()

const QStringList & QSvgNode::requiredLanguages ( ) const

Definition at line 270 of file qsvgnode.cpp.

Referenced by QSvgSwitch::draw().

271 {
272  return m_requiredLanguages;
273 }
QStringList m_requiredLanguages
Definition: qsvgnode_p.h:168

◆ revertStyle()

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

◆ setDisplayMode()

void QSvgNode::setDisplayMode ( DisplayMode  display)

Definition at line 325 of file qsvgnode.cpp.

Referenced by parseOthers().

326 {
327  m_displayMode = mode;
328 }
DisplayMode m_displayMode
Definition: qsvgnode_p.h:177

◆ setNodeId()

void QSvgNode::setNodeId ( const QString i)

Definition at line 315 of file qsvgnode.cpp.

Referenced by parseCoreNode(), and parseStopNode().

316 {
317  m_id = i;
318 }
QString m_id
Definition: qsvgnode_p.h:174

◆ setRequiredExtensions()

void QSvgNode::setRequiredExtensions ( const QStringList lst)

Definition at line 255 of file qsvgnode.cpp.

Referenced by parseCoreNode().

256 {
257  m_requiredExtensions = lst;
258 }
QStringList m_requiredExtensions
Definition: qsvgnode_p.h:167

◆ setRequiredFeatures()

void QSvgNode::setRequiredFeatures ( const QStringList lst)

Definition at line 245 of file qsvgnode.cpp.

Referenced by parseCoreNode().

246 {
247  m_requiredFeatures = lst;
248 }
QStringList m_requiredFeatures
Definition: qsvgnode_p.h:166

◆ setRequiredFonts()

void QSvgNode::setRequiredFonts ( const QStringList lst)

Definition at line 285 of file qsvgnode.cpp.

Referenced by parseCoreNode().

286 {
287  m_requiredFonts = lst;
288 }
QStringList m_requiredFonts
Definition: qsvgnode_p.h:170

◆ setRequiredFormats()

void QSvgNode::setRequiredFormats ( const QStringList lst)

Definition at line 275 of file qsvgnode.cpp.

Referenced by parseCoreNode().

276 {
277  m_requiredFormats = lst;
278 }
QStringList m_requiredFormats
Definition: qsvgnode_p.h:169

◆ setRequiredLanguages()

void QSvgNode::setRequiredLanguages ( const QStringList lst)

Definition at line 265 of file qsvgnode.cpp.

Referenced by parseCoreNode().

266 {
267  m_requiredLanguages = lst;
268 }
QStringList m_requiredLanguages
Definition: qsvgnode_p.h:168

◆ setVisible()

void QSvgNode::setVisible ( bool  visible)

Definition at line 295 of file qsvgnode.cpp.

Referenced by parseVisibility(), and setVisible().

296 {
297  //propagate visibility change of true to the parent
298  //not propagating false is just a small performance
299  //degradation since we'll iterate over children without
300  //drawing any of them
301  if (m_parent && visible && !m_parent->isVisible())
302  m_parent->setVisible(true);
303 
304  m_visible = visible;
305 }
bool isVisible() const
Definition: qsvgnode_p.h:188
QSvgNode * m_parent
Definition: qsvgnode_p.h:164
bool m_visible
Definition: qsvgnode_p.h:172
void setVisible(bool visible)
Definition: qsvgnode.cpp:295

◆ setXmlClass()

void QSvgNode::setXmlClass ( const QString str)

Definition at line 320 of file qsvgnode.cpp.

Referenced by parseCoreNode(), and parseStopNode().

321 {
322  m_class = str;
323 }
QString m_class
Definition: qsvgnode_p.h:175

◆ strokeWidth()

qreal QSvgNode::strokeWidth ( QPainter p)
staticprotected

Definition at line 335 of file qsvgnode.cpp.

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

336 {
337  QPen pen = p->pen();
338  if (pen.style() == Qt::NoPen || pen.brush().style() == Qt::NoBrush || pen.isCosmetic())
339  return 0;
340  return pen.widthF();
341 }
Qt::PenStyle style() const
Returns the pen style.
Definition: qpen.cpp:428
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
const QPen & pen() const
Returns the painter&#39;s current pen.
Definition: qpainter.cpp:4152
bool isCosmetic() const
Returns true if the pen is cosmetic; otherwise returns false.
Definition: qpen.cpp:840
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
Definition: qpen.cpp:797
Qt::BrushStyle style() const
Returns the brush style.
Definition: qbrush.h:182
qreal widthF() const
Returns the pen width with floating point precision.
Definition: qpen.cpp:645

◆ styleProperty() [1/2]

QSvgStyleProperty * QSvgNode::styleProperty ( QSvgStyleProperty::Type  type) const

Definition at line 128 of file qsvgnode.cpp.

Referenced by parseBaseGradient(), QSvgHandler::resolveGradients(), and styleFromUrl().

129 {
130  const QSvgNode *node = this;
131  while (node) {
132  switch (type) {
134  if (node->m_style.quality)
135  return node->m_style.quality;
136  break;
138  if (node->m_style.fill)
139  return node->m_style.fill;
140  break;
142  if (m_style.viewportFill)
143  return node->m_style.viewportFill;
144  break;
146  if (node->m_style.font)
147  return node->m_style.font;
148  break;
150  if (node->m_style.stroke)
151  return node->m_style.stroke;
152  break;
154  if (node->m_style.solidColor)
155  return node->m_style.solidColor;
156  break;
158  if (node->m_style.gradient)
159  return node->m_style.gradient;
160  break;
162  if (node->m_style.transform)
163  return node->m_style.transform;
164  break;
166  if (node->m_style.animateColor)
167  return node->m_style.animateColor;
168  break;
170  if (!node->m_style.animateTransforms.isEmpty())
171  return node->m_style.animateTransforms.first();
172  break;
174  if (node->m_style.opacity)
175  return node->m_style.opacity;
176  break;
178  if (node->m_style.compop)
179  return node->m_style.compop;
180  break;
181  default:
182  break;
183  }
184  node = node->parent();
185  }
186 
187  return 0;
188 }
virtual Type type() const =0
QSvgStyle m_style
Definition: qsvgnode_p.h:160
QSvgRefCounter< QSvgGradientStyle > gradient
Definition: qsvgstyle_p.h:777
QSvgRefCounter< QSvgViewportFillStyle > viewportFill
Definition: qsvgstyle_p.h:773
QSvgNode * parent() const
Definition: qsvgnode_p.h:183
QList< QSvgRefCounter< QSvgAnimateTransform > > animateTransforms
Definition: qsvgstyle_p.h:780
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QSvgRefCounter< QSvgOpacityStyle > opacity
Definition: qsvgstyle_p.h:781
QSvgRefCounter< QSvgCompOpStyle > compop
Definition: qsvgstyle_p.h:782
QSvgRefCounter< QSvgTransformStyle > transform
Definition: qsvgstyle_p.h:778
QSvgRefCounter< QSvgQualityStyle > quality
Definition: qsvgstyle_p.h:771
QSvgRefCounter< QSvgFillStyle > fill
Definition: qsvgstyle_p.h:772
QSvgRefCounter< QSvgAnimateColor > animateColor
Definition: qsvgstyle_p.h:779
T & first()
Returns a reference to the first item in the list.
Definition: qlist.h:282
QSvgRefCounter< QSvgStrokeStyle > stroke
Definition: qsvgstyle_p.h:775
QSvgRefCounter< QSvgFontStyle > font
Definition: qsvgstyle_p.h:774
QSvgRefCounter< QSvgSolidColorStyle > solidColor
Definition: qsvgstyle_p.h:776

◆ styleProperty() [2/2]

QSvgFillStyleProperty * QSvgNode::styleProperty ( const QString id) const

Definition at line 190 of file qsvgnode.cpp.

191 {
192  QString rid = id;
193  if (rid.startsWith(QLatin1Char('#')))
194  rid.remove(0, 1);
195  QSvgTinyDocument *doc = document();
196  return doc ? doc->namedStyle(rid) : 0;
197 }
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
Definition: qstring.cpp:3734
The QString class provides a Unicode character string.
Definition: qstring.h:83
QSvgFillStyleProperty * namedStyle(const QString &id) const
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
Definition: qstring.cpp:1867
QSvgTinyDocument * document() const
Definition: qsvgnode.cpp:233
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ transformedBounds() [1/2]

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

Definition at line 307 of file qsvgnode.cpp.

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

308 {
309  applyStyle(p, states);
310  QRectF rect = bounds(p, states);
311  revertStyle(p, states);
312  return rect;
313 }
void applyStyle(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:118
virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:199
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
void revertStyle(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:123

◆ transformedBounds() [2/2]

QRectF QSvgNode::transformedBounds ( ) const

Definition at line 204 of file qsvgnode.cpp.

Referenced by QSvgTinyDocument::viewBox().

205 {
206  if (!m_cachedBounds.isEmpty())
207  return m_cachedBounds;
208 
209  QImage dummy(1, 1, QImage::Format_RGB32);
210  QPainter p(&dummy);
211  QSvgExtraStates states;
212 
214  pen.setMiterLimit(4);
215  p.setPen(pen);
216 
217  QStack<QSvgNode*> parentApplyStack;
219  while (parent) {
220  parentApplyStack.push(parent);
221  parent = parent->parent();
222  }
223 
224  for (int i = parentApplyStack.size() - 1; i >= 0; --i)
225  parentApplyStack[i]->applyStyle(&p, states);
226 
227  p.setWorldTransform(QTransform());
228 
229  m_cachedBounds = transformedBounds(&p, states);
230  return m_cachedBounds;
231 }
The QPainter class performs low-level painting on widgets and other paint devices.
Definition: qpainter.h:86
QRectF transformedBounds() const
Definition: qsvgnode.cpp:204
The QStack class is a template class that provides a stack.
Definition: qcontainerfwd.h:63
void applyStyle(QPainter *p, QSvgExtraStates &states) const
Definition: qsvgnode.cpp:118
QSvgNode * parent() const
Definition: qsvgnode_p.h:183
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
QSvgNode * m_parent
Definition: qsvgnode_p.h:164
The QImage class provides a hardware-independent image representation that allows direct access to th...
Definition: qimage.h:87
void push(const T &t)
Adds element t to the top of the stack.
Definition: qstack.h:60
bool isEmpty() const
Returns true if the rectangle is empty, otherwise returns false.
Definition: qrect.h:658
int size() const
Returns the number of items in the vector.
Definition: qvector.h:137
QRectF m_cachedBounds
Definition: qsvgnode_p.h:178
The QTransform class specifies 2D transformations of a coordinate system.
Definition: qtransform.h:65

◆ type()

virtual Type QSvgNode::type ( ) const
pure virtual

◆ xmlClass()

QString QSvgNode::xmlClass ( ) const
inline

Definition at line 198 of file qsvgnode_p.h.

Referenced by QSvgStyleSelector::attribute(), and QSvgStyleSelector::hasAttributes().

199 {
200  return m_class;
201 }
QString m_class
Definition: qsvgnode_p.h:175

Friends and Related Functions

◆ QSvgTinyDocument

friend class QSvgTinyDocument
friend

Definition at line 180 of file qsvgnode_p.h.

Properties

◆ m_cachedBounds

QRectF QSvgNode::m_cachedBounds
mutableprivate

Definition at line 178 of file qsvgnode_p.h.

Referenced by transformedBounds().

◆ m_class

QString QSvgNode::m_class
private

Definition at line 175 of file qsvgnode_p.h.

Referenced by setXmlClass(), and xmlClass().

◆ m_displayMode

DisplayMode QSvgNode::m_displayMode
private

Definition at line 177 of file qsvgnode_p.h.

Referenced by displayMode(), and setDisplayMode().

◆ m_id

QString QSvgNode::m_id
private

Definition at line 174 of file qsvgnode_p.h.

Referenced by nodeId(), and setNodeId().

◆ m_parent

QSvgNode* QSvgNode::m_parent
private

Definition at line 164 of file qsvgnode_p.h.

Referenced by parent(), setVisible(), and transformedBounds().

◆ m_requiredExtensions

QStringList QSvgNode::m_requiredExtensions
private

Definition at line 167 of file qsvgnode_p.h.

Referenced by requiredExtensions(), and setRequiredExtensions().

◆ m_requiredFeatures

QStringList QSvgNode::m_requiredFeatures
private

Definition at line 166 of file qsvgnode_p.h.

Referenced by requiredFeatures(), and setRequiredFeatures().

◆ m_requiredFonts

QStringList QSvgNode::m_requiredFonts
private

Definition at line 170 of file qsvgnode_p.h.

Referenced by requiredFonts(), and setRequiredFonts().

◆ m_requiredFormats

QStringList QSvgNode::m_requiredFormats
private

Definition at line 169 of file qsvgnode_p.h.

Referenced by requiredFormats(), and setRequiredFormats().

◆ m_requiredLanguages

QStringList QSvgNode::m_requiredLanguages
private

Definition at line 168 of file qsvgnode_p.h.

Referenced by requiredLanguages(), and setRequiredLanguages().

◆ m_style

QSvgStyle QSvgNode::m_style
mutableprotected

◆ m_visible

bool QSvgNode::m_visible
private

Definition at line 172 of file qsvgnode_p.h.

Referenced by isVisible(), and setVisible().


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