QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
qgstemporalproperty.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstemporalproperty.h
3 ---------------
4 begin : January 2020
5 copyright : (C) 2020 by Samweli Mwakisambwe
6 email : samweli at kartoza dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSTEMPORALPROPERTY_H
19#define QGSTEMPORALPROPERTY_H
20
21
22#include "qgis_core.h"
23#include "qgis_sip.h"
24
25#include <QObject>
26
34
35class CORE_EXPORT QgsTemporalProperty : public QObject
36{
37 Q_OBJECT
38
39 public:
40
48 Q_DECLARE_FLAGS( Flags, Flag )
49
50
55 QgsTemporalProperty( QObject *parent SIP_TRANSFERTHIS = nullptr, bool enabled = false );
56
62 void setIsActive( bool active );
63
69 bool isActive() const;
70
75
76 signals:
77
81 void changed();
82
83 private:
84
86 bool mActive = false;
87
88};
89
90#endif // QGSTEMPORALPROPERTY_H
void changed()
Emitted when the temporal properties have changed.
bool isActive() const
Returns true if the temporal property is active.
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.
void setIsActive(bool active)
Sets whether the temporal property is active.
Flag
Flags attached to the temporal property.
@ FlagDontInvalidateCachedRendersWhenRangeChanges
Any cached rendering will not be invalidated when temporal range context is modified.
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:275