QGIS API Documentation 4.3.0-Master (389d690bb77)
Loading...
Searching...
No Matches
qgsstacextent.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstacextent.h
3 ---------------------
4 begin : August 2024
5 copyright : (C) 2024 by Stefanos Natsis
6 email : uclaros at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSSTACEXTENT_H
17#define QGSSTACEXTENT_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21#include "qgsbox3d.h"
22#include "qgsrange.h"
23
35class CORE_EXPORT QgsStacExtent
36{
37 public:
39 QgsStacExtent() = default;
40
42 void setSpatialExtent( QgsBox3D extent );
43
45 void setSpatialExtent( QgsRectangle extent );
46
49
52
54 QgsBox3D spatialExtent() const;
55
58
61
64
66 QVector< QgsBox3D > detailedSpatialExtents() const;
67
69 QVector< QgsDateTimeRange > detailedTemporalExtents() const;
70
72 bool hasDetailedSpatialExtents() const;
73
75 bool hasDetailedTemporalExtents() const;
76
77 private:
78 QgsBox3D mSpatialExtent;
79 QgsDateTimeRange mTemporalExtent;
80 QVector< QgsBox3D > mDetailedSpatialExtents;
81 QVector< QgsDateTimeRange > mDetailedTemporalExtents;
82};
83
84#endif // QGSSTACEXTENT_H
A 3-dimensional box composed of x, y, z coordinates.
Definition qgsbox3d.h:45
A rectangle specified with double values.
QVector< QgsDateTimeRange > detailedTemporalExtents() const
Returns all detailed temporal sub extents defined.
bool hasDetailedSpatialExtents() const
Returns true if there are detailed spatial sub extents defined.
void addDetailedSpatialExtent(QgsBox3D extent)
Adds a more detailed spatial extent.
QgsStacExtent()=default
Default constructor for empty extent.
bool hasDetailedTemporalExtents() const
Returns true if there are detailed temporal sub extents defined.
void addDetailedTemporalExtent(QgsDateTimeRange extent)
Adds a more detailed temporal extent.
QgsDateTimeRange temporalExtent() const
Returns the overall temporal extent.
QgsBox3D spatialExtent() const
Returns the overall spatial extent.
void setSpatialExtent(QgsBox3D extent)
Sets the overall spatial extent to extent.
void setTemporalExtent(QgsDateTimeRange extent)
Sets the overall temporal extent to extent.
QVector< QgsBox3D > detailedSpatialExtents() const
Returns all detailed spatial sub extents defined.
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition qgsrange.h:705