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
QSvgPath Class Reference

#include <qsvggraphics_p.h>

+ Inheritance diagram for QSvgPath:
+ Collaboration diagram for QSvgPath:

Public Member Functions

 QSvgPath (QSvgNode *parent, const QPainterPath &qpath)
 
bool separateFillStroke () const override
 
void drawCommand (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
QRectF fastBounds (QPainter *p, QSvgExtraStates &states) const override
 
QRectF bounds (QPainter *p, QSvgExtraStates &states) const override
 
const QPainterPathpath () const
 
- Public Member Functions inherited from QSvgNode
 QSvgNode (QSvgNode *parent=0)
 
virtual ~QSvgNode ()
 
void draw (QPainter *p, QSvgExtraStates &states)
 
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
 
QString typeName () 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
 

Additional Inherited Members

- Public Types inherited from QSvgNode
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
}
 
- Static Protected Member Functions inherited from QSvgNode
static qreal strokeWidth (QPainter *p)
 
static void initPainter (QPainter *p)
 
- Protected Attributes inherited from QSvgNode
QSvgStyle m_style
 

Detailed Description

Definition at line 92 of file qsvggraphics_p.h.

Constructor & Destructor Documentation

◆ QSvgPath()

QSvgPath::QSvgPath ( QSvgNode * parent,
const QPainterPath & qpath )

Definition at line 108 of file qsvggraphics.cpp.

Member Function Documentation

◆ bounds()

QRectF QSvgPath::bounds ( QPainter * p,
QSvgExtraStates & states ) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 130 of file qsvggraphics.cpp.

References boundsOnStroke(), qFuzzyIsNull(), and QSvgNode::strokeWidth().

+ Here is the call graph for this function:

◆ drawCommand()

void QSvgPath::drawCommand ( QPainter * p,
QSvgExtraStates & states )
overridevirtual

Implements QSvgNode.

Definition at line 113 of file qsvggraphics.cpp.

References QSvgMarker::drawMarkersForNode(), and QPainterPath::setFillRule().

+ Here is the call graph for this function:

◆ fastBounds()

QRectF QSvgPath::fastBounds ( QPainter * p,
QSvgExtraStates & states ) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 125 of file qsvggraphics.cpp.

References QPainterPath::controlPointRect().

+ Here is the call graph for this function:

◆ path()

const QPainterPath & QSvgPath::path ( ) const
inline

Definition at line 101 of file qsvggraphics_p.h.

Referenced by QSvgMarker::drawMarkersForNode(), QSvgVisitorImpl::visitPathNode(), and SvgDebugVisitor::visitPathNode().

+ Here is the caller graph for this function:

◆ separateFillStroke()

bool QSvgPath::separateFillStroke ( ) const
overridevirtual

Reimplemented from QSvgNode.

Definition at line 120 of file qsvggraphics.cpp.

◆ type()

QSvgNode::Type QSvgPath::type ( ) const
overridevirtual

Implements QSvgNode.

Definition at line 561 of file qsvggraphics.cpp.

References QSvgNode::Path.


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