Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSvgMarker Class Reference

#include <qsvgstructure_p.h>

Inheritance diagram for QSvgMarker:
Collaboration diagram for QSvgMarker:

Public Types

enum class  Orientation : quint8 { Auto , AutoStartReverse , Value }
enum class  MarkerUnits : quint8 { StrokeWidth , UserSpaceOnUse }
Public Types inherited from QSvgSymbolLike
enum class  Overflow : quint8 { Visible , Hidden , Scroll = Visible , Auto = Visible }
enum class  PreserveAspectRatio : quint8 {
  None = 0b000000 , xMin = 0b000001 , xMid = 0b000010 , xMax = 0b000011 ,
  yMin = 0b000100 , yMid = 0b001000 , yMax = 0b001100 , meet = 0b010000 ,
  slice = 0b100000 , xMask = xMin | xMid | xMax , yMask = yMin | yMid | yMax , xyMask = xMask | yMask ,
  meetSliceMask = meet | slice
}
Public Types inherited from QSvgNode
enum  Type {
  Doc , Group , Defs , Switch ,
  AnimateColor , AnimateTransform , 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 , FeBlend ,
  FeUnsupported
}
enum  DisplayMode {
  InlineMode , BlockMode , ListItemMode , RunInMode ,
  CompactMode , MarkerMode , TableMode , InlineTableMode ,
  TableRowGroupMode , TableHeaderGroupMode , TableFooterGroupMode , TableRowMode ,
  TableColumnGroupMode , TableColumnMode , TableCellMode , TableCaptionMode ,
  NoneMode , InheritMode
}

Public Member Functions

 QSvgMarker (QSvgNode *parent, QRectF bounds, QRectF viewBox, QPointF refP, QSvgSymbolLike::PreserveAspectRatios pAspectRatios, QSvgSymbolLike::Overflow overflow, Orientation orientation, qreal orientationAngle, MarkerUnits markerUnits)
void drawCommand (QPainter *p, QSvgExtraStates &states) override
Orientation orientation () const
qreal orientationAngle () const
MarkerUnits markerUnits () const
Type type () const override
Public Member Functions inherited from QSvgSymbolLike
 QSvgSymbolLike (QSvgNode *parent, QRectF bounds, QRectF viewBox, QPointF refP, QSvgSymbolLike::PreserveAspectRatios pAspectRatios, QSvgSymbolLike::Overflow overflow)
void drawCommand (QPainter *, QSvgExtraStates &) override
QRectF decoratedInternalBounds (QPainter *p, QSvgExtraStates &states) const override
bool requiresGroupRendering () const override
QRectF viewBox () const
QRectF rect () const
QPointF refP () const
QTransform aspectRatioTransform () const
QRectF clipRect () const
Overflow overflow () const
PreserveAspectRatios preserveAspectRatios () const
Public Member Functions inherited from QSvgStructureNode
 QSvgStructureNode (QSvgNode *parent)
 ~QSvgStructureNode ()
QSvgNodescopeNode (const QString &id) const
void addChild (QSvgNode *child, const QString &id)
QRectF internalBounds (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 ()
void draw (QPainter *p, QSvgExtraStates &states)
virtual bool separateFillStroke (const QSvgExtraStates &) const
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
void revertStyleRecursive (QPainter *p, QSvgExtraStates &states) const
void applyAnimatedStyle (QPainter *p, QSvgExtraStates &states) const
void revertAnimatedStyle (QPainter *p, QSvgExtraStates &states) const
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
QSvgPaintStylePropertystyleProperty (QStringView id) const
QSvgTinyDocumentdocument () const
QString typeName () const
virtual QRectF internalFastBounds (QPainter *p, QSvgExtraStates &states) const
QRectF bounds (QPainter *p, QSvgExtraStates &states) const
QRectF bounds () const
virtual QRectF decoratedBounds (QPainter *p, QSvgExtraStates &states) 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 QSvgStaticStylestyle () const

Static Public Member Functions

static void drawMarkersForNode (QSvgNode *node, QPainter *p, QSvgExtraStates &states)
static QRectF markersBoundsForNode (const QSvgNode *node, QPainter *p, QSvgExtraStates &states)

Additional Inherited Members

Protected Types inherited from QSvgNode
enum  BoundsMode { Simplistic , IncludeMiterLimit }
Protected Member Functions inherited from QSvgSymbolLike
void setPainterToRectAndAdjustment (QPainter *p) const
Protected Member Functions inherited from QSvgNode
QRectF filterRegion (QRectF bounds) const
Static Protected Member Functions inherited from QSvgNode
static qreal strokeWidth (QPainter *p)
static void initPainter (QPainter *p)
static QRectF boundsOnStroke (QPainter *p, const QPainterPath &path, qreal width, BoundsMode mode)
Protected Attributes inherited from QSvgSymbolLike
QRectF m_rect
QRectF m_viewBox
QPointF m_refP
PreserveAspectRatios m_pAspectRatios
Overflow m_overflow
Protected Attributes inherited from QSvgStructureNode
QList< QSvgNode * > m_renderers
QHash< QString, QSvgNode * > m_scope
QList< QSvgStructureNode * > m_linkedScopes
bool m_recursing = false
Protected Attributes inherited from QSvgNode
QSvgStaticStyle m_style
QSvgAnimatedStyle m_animatedStyle

Detailed Description

Definition at line 152 of file qsvgstructure_p.h.

Member Enumeration Documentation

◆ MarkerUnits

enum class QSvgMarker::MarkerUnits : quint8
strong
Enumerator
StrokeWidth 
UserSpaceOnUse 

Definition at line 160 of file qsvgstructure_p.h.

◆ Orientation

enum class QSvgMarker::Orientation : quint8
strong
Enumerator
Auto 
AutoStartReverse 
Value 

Definition at line 155 of file qsvgstructure_p.h.

Constructor & Destructor Documentation

◆ QSvgMarker()

QSvgMarker::QSvgMarker ( QSvgNode * parent,
QRectF bounds,
QRectF viewBox,
QPointF refP,
QSvgSymbolLike::PreserveAspectRatios pAspectRatios,
QSvgSymbolLike::Overflow overflow,
Orientation orientation,
qreal orientationAngle,
MarkerUnits markerUnits )

Definition at line 226 of file qsvgstructure.cpp.

Member Function Documentation

◆ drawCommand()

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

Implements QSvgNode.

Definition at line 264 of file qsvgstructure.cpp.

◆ drawMarkersForNode()

void QSvgMarker::drawMarkersForNode ( QSvgNode * node,
QPainter * p,
QSvgExtraStates & states )
static

Definition at line 415 of file qsvgstructure.cpp.

◆ markersBoundsForNode()

QRectF QSvgMarker::markersBoundsForNode ( const QSvgNode * node,
QPainter * p,
QSvgExtraStates & states )
static

Definition at line 420 of file qsvgstructure.cpp.

◆ markerUnits()

MarkerUnits QSvgMarker::markerUnits ( ) const
inline

Definition at line 178 of file qsvgstructure_p.h.

◆ orientation()

Orientation QSvgMarker::orientation ( ) const
inline

Definition at line 172 of file qsvgstructure_p.h.

◆ orientationAngle()

qreal QSvgMarker::orientationAngle ( ) const
inline

Definition at line 175 of file qsvgstructure_p.h.

◆ type()

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

Implements QSvgNode.

Definition at line 427 of file qsvgstructure.cpp.


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