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
QSvgFeFilterPrimitive Class Referenceabstract

#include <qsvgfilter_p.h>

+ Inheritance diagram for QSvgFeFilterPrimitive:
+ Collaboration diagram for QSvgFeFilterPrimitive:

Public Member Functions

 QSvgFeFilterPrimitive (QSvgNode *parent, QString input, QString result, const QSvgRectF &rect)
 
void drawCommand (QPainter *, QSvgExtraStates &) override
 
QRectF fastBounds (QPainter *, QSvgExtraStates &) const override
 
QRectF bounds (QPainter *, QSvgExtraStates &) const override
 
QRectF localFilterBoundingBox (QSvgNode *item, const QRectF &itemBounds, const QRectF &filterBounds, QtSvg::UnitTypes primitiveUnits, QtSvg::UnitTypes filterUnits) const
 
QRectF globalFilterBoundingBox (QSvgNode *item, QPainter *p, const QRectF &itemBounds, const QRectF &filterBounds, QtSvg::UnitTypes primitiveUnits, QtSvg::UnitTypes filterUnits) const
 
void clipToTransformedBounds (QImage *buffer, QPainter *p, const QRectF &localRect) const
 
virtual QImage apply (QSvgNode *item, const QMap< QString, QImage > &sources, QPainter *p, const QRectF &itemBounds, const QRectF &filterBounds, QtSvg::UnitTypes primitiveUnits, QtSvg::UnitTypes filterUnits) const =0
 
virtual bool requiresSourceAlpha () const
 
QString input () const
 
QString result () const
 
- Public Member Functions inherited from QSvgStructureNode
 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 ()
 
void draw (QPainter *p, QSvgExtraStates &states)
 
virtual bool separateFillStroke () 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
 
QSvgStylePropertystyleProperty (QSvgStyleProperty::Type type) const
 
QSvgPaintStylePropertystyleProperty (const QString &id) const
 
QSvgTinyDocumentdocument () const
 
virtual Type type () const =0
 
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
 

Static Public Member Functions

static const QSvgFeFilterPrimitivecastToFilterPrimitive (const QSvgNode *node)
 

Protected Attributes

QString m_input
 
QString m_result
 
QSvgRectF m_rect
 
- 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
QSvgStyle m_style
 

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)
 

Detailed Description

Definition at line 29 of file qsvgfilter_p.h.

Constructor & Destructor Documentation

◆ QSvgFeFilterPrimitive()

QSvgFeFilterPrimitive::QSvgFeFilterPrimitive ( QSvgNode * parent,
QString input,
QString result,
const QSvgRectF & rect )

Definition at line 18 of file qsvgfilter.cpp.

Member Function Documentation

◆ apply()

virtual QImage QSvgFeFilterPrimitive::apply ( QSvgNode * item,
const QMap< QString, QImage > & sources,
QPainter * p,
const QRectF & itemBounds,
const QRectF & filterBounds,
QtSvg::UnitTypes primitiveUnits,
QtSvg::UnitTypes filterUnits ) const
pure virtual

◆ bounds()

QRectF QSvgFeFilterPrimitive::bounds ( QPainter * ,
QSvgExtraStates &  ) const
inlineoverridevirtual

Reimplemented from QSvgNode.

Definition at line 35 of file qsvgfilter_p.h.

◆ castToFilterPrimitive()

const QSvgFeFilterPrimitive * QSvgFeFilterPrimitive::castToFilterPrimitive ( const QSvgNode * node)
static

Definition at line 69 of file qsvgfilter.cpp.

References QSvgNode::FeColormatrix, QSvgNode::FeComposite, QSvgNode::FeFlood, QSvgNode::FeGaussianblur, QSvgNode::FeMerge, QSvgNode::FeOffset, and QSvgNode::type().

Referenced by QSvgFilterContainer::applyFilter().

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

◆ clipToTransformedBounds()

void QSvgFeFilterPrimitive::clipToTransformedBounds ( QImage * buffer,
QPainter * p,
const QRectF & localRect ) const

Definition at line 51 of file qsvgfilter.cpp.

References QPainterPath::addPolygon(), QPainterPath::addRect(), QRect::adjusted(), QPainter::CompositionMode_SourceIn, QPainter::fillPath(), Qt::OddEvenFill, painter, QPainter::setCompositionMode(), QPainterPath::setFillRule(), QPainter::setRenderHints(), QPainter::translate(), and Qt::transparent.

Referenced by QSvgFeColorMatrix::apply(), QSvgFeGaussianBlur::apply(), QSvgFeOffset::apply(), QSvgFeMerge::apply(), QSvgFeComposite::apply(), and QSvgFeFlood::apply().

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

◆ drawCommand()

void QSvgFeFilterPrimitive::drawCommand ( QPainter * ,
QSvgExtraStates &  )
inlineoverridevirtual

Implements QSvgNode.

Definition at line 33 of file qsvgfilter_p.h.

◆ fastBounds()

QRectF QSvgFeFilterPrimitive::fastBounds ( QPainter * ,
QSvgExtraStates &  ) const
inlineoverridevirtual

Reimplemented from QSvgNode.

Definition at line 34 of file qsvgfilter_p.h.

◆ globalFilterBoundingBox()

QRectF QSvgFeFilterPrimitive::globalFilterBoundingBox ( QSvgNode * item,
QPainter * p,
const QRectF & itemBounds,
const QRectF & filterBounds,
QtSvg::UnitTypes primitiveUnits,
QtSvg::UnitTypes filterUnits ) const

Definition at line 44 of file qsvgfilter.cpp.

References item, and localFilterBoundingBox().

Referenced by QSvgFeColorMatrix::apply(), QSvgFeGaussianBlur::apply(), and QSvgFeComposite::apply().

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

◆ input()

QString QSvgFeFilterPrimitive::input ( ) const
inline

Definition at line 47 of file qsvgfilter_p.h.

◆ localFilterBoundingBox()

QRectF QSvgFeFilterPrimitive::localFilterBoundingBox ( QSvgNode * item,
const QRectF & itemBounds,
const QRectF & filterBounds,
QtSvg::UnitTypes primitiveUnits,
QtSvg::UnitTypes filterUnits ) const

Definition at line 28 of file qsvgfilter.cpp.

References QSvgRectF::combinedWithLocalRect(), QSvgNode::document(), QRectF::intersected(), m_rect, QtSvg::userSpaceOnUse, and QSvgTinyDocument::viewBox().

Referenced by QSvgFeColorMatrix::apply(), QSvgFeGaussianBlur::apply(), QSvgFeOffset::apply(), QSvgFeMerge::apply(), QSvgFeComposite::apply(), QSvgFeFlood::apply(), and globalFilterBoundingBox().

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

◆ requiresSourceAlpha()

bool QSvgFeFilterPrimitive::requiresSourceAlpha ( ) const
virtual

Reimplemented in QSvgFeMerge, and QSvgFeComposite.

Definition at line 64 of file qsvgfilter.cpp.

References m_input.

Referenced by QSvgFeComposite::requiresSourceAlpha().

+ Here is the caller graph for this function:

◆ result()

QString QSvgFeFilterPrimitive::result ( ) const
inline

Definition at line 50 of file qsvgfilter_p.h.

Referenced by QSvgFeColorMatrix::apply(), QSvgFeGaussianBlur::apply(), QSvgFeOffset::apply(), QSvgFeMerge::apply(), QSvgFeComposite::apply(), and QSvgFeFlood::apply().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_input

◆ m_rect

QSvgRectF QSvgFeFilterPrimitive::m_rect
protected

Definition at line 59 of file qsvgfilter_p.h.

Referenced by localFilterBoundingBox().

◆ m_result

QString QSvgFeFilterPrimitive::m_result
protected

Definition at line 58 of file qsvgfilter_p.h.


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