QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Base class for temporal property. More...
#include <qgstemporalproperty.h>
Public Types | |
enum | Flag { FlagDontInvalidateCachedRendersWhenRangeChanges = 1 } |
Flags attached to the temporal property. More... | |
typedef QFlags< Flag > | Flags |
Signals | |
void | changed () |
Emitted when the temporal properties have changed. | |
Public Member Functions | |
QgsTemporalProperty (QObject *parent=nullptr, bool enabled=false) | |
Constructor for QgsTemporalProperty, with the specified parent object. | |
virtual QgsTemporalProperty::Flags | flags () const |
Returns flags associated to the temporal property. | |
bool | isActive () const |
Returns true if the temporal property is active. | |
void | setIsActive (bool active) |
Sets whether the temporal property is active. | |
Base class for temporal property.
Definition at line 35 of file qgstemporalproperty.h.
typedef QFlags< Flag > QgsTemporalProperty::Flags |
Definition at line 48 of file qgstemporalproperty.h.
Flags attached to the temporal property.
Enumerator | |
---|---|
FlagDontInvalidateCachedRendersWhenRangeChanges | Any cached rendering will not be invalidated when temporal range context is modified. |
Definition at line 44 of file qgstemporalproperty.h.
QgsTemporalProperty::QgsTemporalProperty | ( | QObject * | parent = nullptr , |
bool | enabled = false |
||
) |
Constructor for QgsTemporalProperty, with the specified parent object.
The active argument specifies whether the property is initially active (see isActive()).
Definition at line 22 of file qgstemporalproperty.cpp.
|
signal |
Emitted when the temporal properties have changed.
|
inlinevirtual |
Returns flags associated to the temporal property.
Reimplemented in QgsRasterLayerTemporalProperties, and QgsVectorLayerTemporalProperties.
Definition at line 74 of file qgstemporalproperty.h.
bool QgsTemporalProperty::isActive | ( | ) | const |
Returns true
if the temporal property is active.
Definition at line 37 of file qgstemporalproperty.cpp.
void QgsTemporalProperty::setIsActive | ( | bool | active | ) |
Sets whether the temporal property is active.
Definition at line 28 of file qgstemporalproperty.cpp.