53 QSvgAnimateNode() : QSvgAnimateNode(
nullptr) {}
54 explicit QSvgAnimateNode(QSvgNode *parent);
55 ~QSvgAnimateNode() override;
57 void setLinkId(
const QString &link) { m_linkId = link; }
58 const QString &linkId()
const {
return m_linkId; }
60 virtual AnimationType animationType()
const override {
return AnimationType::SMIL; }
61 virtual bool isActive()
const override {
return !finished() || m_fill == Fill::Freeze; }
63 void setRunningTime(
int startMs,
int durMs,
int endMs,
int by);
64 void setRepeatCount(qreal repeatCount) { setIterationCount(repeatCount); }
66 void setFill(Fill fill) { m_fill = fill; }
67 Fill fill()
const {
return m_fill; }
69 void setAdditiveType(Additive additive = Additive::Replace) { m_additive = additive; }
70 Additive additiveType()
const {
return m_additive; }
72 virtual void drawCommand(QPainter *p, QSvgExtraStates &states) override;
73 virtual bool shouldDrawNode(QPainter *p, QSvgExtraStates &states)
const override;