Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE][MESH] plug mesh layer to QGIS temporal framework (#35466)
[FEATURE] Use temporal controller for the mesh layer time handling.
- Loading branch information
Showing
85 changed files
with
3,626 additions
and
2,830 deletions.
There are no files selected for viewing
539 changes: 13 additions & 526 deletions
539
python/core/auto_generated/mesh/qgsmeshdataprovider.sip.in
Large diffs are not rendered by default.
Oops, something went wrong.
99 changes: 99 additions & 0 deletions
99
python/core/auto_generated/mesh/qgsmeshdataprovidertemporalcapabilities.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/mesh/qgsmeshdataprovidertemporalcapabilities.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsMeshDataProviderTemporalCapabilities: QgsDataProviderTemporalCapabilities | ||
{ | ||
%Docstring | ||
Class for handling properties relating to a mesh data provider's temporal capabilities. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmeshdataprovidertemporalcapabilities.h" | ||
%End | ||
public: | ||
|
||
QgsMeshDataProviderTemporalCapabilities(); | ||
%Docstring | ||
Constructor for QgsMeshDataProviderTemporalCapabilities | ||
%End | ||
|
||
QgsMeshDatasetIndex datasetIndexFromRelativeTimeRange( int group, qint64 startTimeSinceGlobalReference, qint64 endTimeSinceGlobalReference ) const; | ||
%Docstring | ||
Returns the first dataset that are include in the range [``startTimeSinceGlobalReference``,``endTimeSinceGlobalReference``[ (in milliseconds) | ||
from the dataset ``group``. If no dataset is present in this range return the last dataset before this range if it not the last one | ||
of whole the dataset group | ||
|
||
Returns invalid dataset index if there is no data set in the range | ||
|
||
.. note:: | ||
|
||
for non temporal dataset group, the range is not used and the unique dataset is returned | ||
%End | ||
|
||
|
||
|
||
|
||
bool hasReferenceTime() const; | ||
%Docstring | ||
Returns whether the reference time is set | ||
%End | ||
|
||
QDateTime referenceTime() const; | ||
%Docstring | ||
Returns the reference time | ||
%End | ||
|
||
QgsDateTimeRange timeExtent() const; | ||
%Docstring | ||
Returns the time extent using the internal reference time | ||
and the first and last times available from the all the dataset | ||
%End | ||
|
||
QgsDateTimeRange timeExtent( const QDateTime &reference ) const; | ||
%Docstring | ||
Returns the time extent using an external ``reference`` date time | ||
and the first and last times available from the all the dataset | ||
%End | ||
|
||
void setTemporalUnit( QgsUnitTypes::TemporalUnit temporalUnit ); | ||
%Docstring | ||
Sets the temporal unit (``temporalUnit``) used to read data by the data provider | ||
|
||
Temporal units supported are milliseconds, seconds, minutes, hors, days and weeks | ||
%End | ||
|
||
QgsUnitTypes::TemporalUnit temporalUnit() const; | ||
%Docstring | ||
Returns the temporal unit used to read data by the data provider | ||
%End | ||
|
||
qint64 datasetTime( const QgsMeshDatasetIndex &index ) const; | ||
%Docstring | ||
Returns the relative time in milliseconds of the dataset | ||
%End | ||
|
||
void clear(); | ||
%Docstring | ||
Clears alls stored reference times and dataset times | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/mesh/qgsmeshdataprovidertemporalcapabilities.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.