SplineControlAnimation QML Type

Ein Animationstyp, der die Animation für Spline-Kontrollpunkte angibt. Mehr...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Eigenschaften

Detaillierte Beschreibung

SplineControlAnimation ist ein von QVariantAnimation abgeleiteter Animationstyp, der definiert, wie Spline-Kontrollpunkte animiert werden. Er kann die Funktionalität und die Eigenschaften von QVariantAnimation für seine Animationen nutzen, wie duration und easing. Diese Animationen sind in einer QParallelAnimationGroup untergebracht und laufen daher parallel. Diese Animation wirkt sich nicht auf die Hauptpunkte des SplineSeries aus, sondern nur auf die beiden Kontrollpunkte auf beiden Seiten des Punktes. Jeder der Kontrollpunkte wird nacheinander linear interpoliert.

Dieses Beispiel zeigt, wie man sowohl eine SplineControlPointAnimation als auch eine GraphPointAnimation verwenden kann, um Animationen sowohl für die Hauptpunktreihe als auch für die Kontrollpunkte einer SplineSeries zu definieren:

import QtGraphs

GraphsView {
    SplineSeries {
        GraphTransition {
            GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic  }
            SplineControlAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
        }
    }
}

Siehe auch GraphTransition und GraphPointAnimation.

Dokumentation der Eigenschaften

AnimationState : enumeration

Animationszustände.

KonstanteBeschreibung
PlayingDie Animation wird abgespielt.
StoppedDie Animation ist gestoppt.

GraphAnimationType : enumeration

Typ der Animation.

KonstanteBeschreibung
GraphPointEine GraphPointAnimation Animation.
ControlPointEine ControlPointAnimation-Animation.

animating : GraphAnimation::AnimationState

Enthält den Animationszustand. Eine von GraphAnimation::AnimationState.


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.