QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsTileRange Class Reference

A range of tiles in a tile matrix. More...

#include <qgstiles.h>

Public Member Functions

 QgsTileRange (int c1=-1, int c2=-1, int r1=-1, int r2=-1)
 Constructs a range of tiles from given span of columns and rows.
int count () const
 Returns the total number of tiles in the range.
int endColumn () const
 Returns index of the last column in the range.
int endRow () const
 Returns index of the last row in the range.
bool isValid () const
 Returns whether the range is valid (when all row/column numbers are not negative).
int startColumn () const
 Returns index of the first column in the range.
int startRow () const
 Returns index of the first row in the range.

Detailed Description

A range of tiles in a tile matrix.

The selection is rectangular, given by start/end row and column numbers.

Since
QGIS 3.14

Definition at line 113 of file qgstiles.h.

Constructor & Destructor Documentation

◆ QgsTileRange()

QgsTileRange::QgsTileRange ( int c1 = -1,
int c2 = -1,
int r1 = -1,
int r2 = -1 )
inline

Constructs a range of tiles from given span of columns and rows.

Definition at line 117 of file qgstiles.h.

Member Function Documentation

◆ count()

int QgsTileRange::count ( ) const
inline

Returns the total number of tiles in the range.

Since
QGIS 3.44

Definition at line 137 of file qgstiles.h.

◆ endColumn()

int QgsTileRange::endColumn ( ) const
inline

Returns index of the last column in the range.

Definition at line 126 of file qgstiles.h.

◆ endRow()

int QgsTileRange::endRow ( ) const
inline

Returns index of the last row in the range.

Definition at line 130 of file qgstiles.h.

◆ isValid()

bool QgsTileRange::isValid ( ) const
inline

Returns whether the range is valid (when all row/column numbers are not negative).

Definition at line 121 of file qgstiles.h.

◆ startColumn()

int QgsTileRange::startColumn ( ) const
inline

Returns index of the first column in the range.

Definition at line 124 of file qgstiles.h.

◆ startRow()

int QgsTileRange::startRow ( ) const
inline

Returns index of the first row in the range.

Definition at line 128 of file qgstiles.h.


The documentation for this class was generated from the following file: