QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
35
class
CORE_EXPORT
QgsTemporalProperty
:
public
QObject
36
{
37
Q_OBJECT
38
39
public
:
43
enum
Flag
SIP_ENUM_BASETYPE
( IntFlag )
44
{
45
FlagDontInvalidateCachedRendersWhenRangeChanges
= 1
46
};
47
Q_DECLARE_FLAGS(
Flags
,
Flag
)
48
49
54
QgsTemporalProperty
( QObject *parent
SIP_TRANSFERTHIS
=
nullptr
,
bool
enabled =
false
);
55
61
void
setIsActive
(
bool
active );
62
68
bool
isActive
()
const
;
69
73
virtual
QgsTemporalProperty::Flags
flags
()
const
{
return
QgsTemporalProperty::Flags
(); }
74
75
signals:
76
80
void
changed
();
81
82
private
:
84
bool
mActive =
false
;
85
};
86
87
#endif
// QGSTEMPORALPROPERTY_H
QgsTemporalProperty::Flags
QFlags< Flag > Flags
Definition
qgstemporalproperty.h:47
QgsTemporalProperty::changed
void changed()
Emitted when the temporal properties have changed.
QgsTemporalProperty::isActive
bool isActive() const
Returns true if the temporal property is active.
Definition
qgstemporalproperty.cpp:37
QgsTemporalProperty::flags
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.
Definition
qgstemporalproperty.h:73
QgsTemporalProperty::setIsActive
void setIsActive(bool active)
Sets whether the temporal property is active.
Definition
qgstemporalproperty.cpp:28
QgsTemporalProperty::Flag
Flag
Flags attached to the temporal property.
Definition
qgstemporalproperty.h:44
QgsTemporalProperty::FlagDontInvalidateCachedRendersWhenRangeChanges
@ FlagDontInvalidateCachedRendersWhenRangeChanges
Any cached rendering will not be invalidated when temporal range context is modified.
Definition
qgstemporalproperty.h:45
QgsTemporalProperty::QgsTemporalProperty
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.
Definition
qgstemporalproperty.cpp:23
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_ENUM_BASETYPE
#define SIP_ENUM_BASETYPE(type)
Definition
qgis_sip.h:277
Generated on
for QGIS API Documentation by
1.17.0