QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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 
35 class 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
QgsTemporalProperty::flags
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.
Definition: qgstemporalproperty.h:74
QgsTemporalProperty::Flag
Flag
Flags attached to the temporal property.
Definition: qgstemporalproperty.h:44
qgis_sip.h
QgsTemporalProperty
Definition: qgstemporalproperty.h:35
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53