Class: QgsSymbolAnimationSettings¶
- class qgis.core.QgsSymbolAnimationSettings¶
Bases:
sip.wrapper
Contains settings relating to symbol animation.
New in version 3.26:
Methods
Returns the symbol animation frame rate (in frames per second).
Returns
True
if the symbol is animated.Sets the symbol animation frame
rate
(in frames per second).Sets whether the symbol is animated.
- frameRate(self) float ¶
Returns the symbol animation frame rate (in frames per second).
See also
- Return type:
float
- isAnimated(self) bool ¶
Returns
True
if the symbol is animated.This is a user-facing setting for symbols, which allows users to define whether a symbol is animated, and allows for creation of animated symbols via data defined properties.
See also
- Return type:
bool
- setFrameRate(self, rate: float)¶
Sets the symbol animation frame
rate
(in frames per second).See also
- Parameters:
rate (float) –
- setIsAnimated(self, animated: bool)¶
Sets whether the symbol is animated.
This is a user-facing setting for symbols, which allows users to define whether a symbol is animated, and allows for creation of animated symbols via data defined properties.
See also
- Parameters:
animated (bool) –