QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
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
35class CORE_EXPORT QgsTemporalProperty : public QObject
36{
37 Q_OBJECT
38
39 public:
40
44 enum Flag
45 {
46 FlagDontInvalidateCachedRendersWhenRangeChanges = 1
47 };
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
74 virtual QgsTemporalProperty::Flags flags() const { return QgsTemporalProperty::Flags(); }
75
76 signals:
77
81 void changed();
82
83 private:
84
86 bool mActive = false;
87
88};
89
90#endif // QGSTEMPORALPROPERTY_H
Base class for temporal property.
void changed()
Emitted when the temporal properties have changed.
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.
Flag
Flags attached to the temporal property.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53