The Qgis class provides global constants for use throughout the application.
More...
#include <qgis.h>
|
enum | DataType {
UnknownDataType = 0,
Byte = 1,
UInt16 = 2,
Int16 = 3,
UInt32 = 4,
Int32 = 5,
Float32 = 6,
Float64 = 7,
CInt16 = 8,
CInt32 = 9,
CFloat32 = 10,
CFloat64 = 11,
ARGB32 = 12,
ARGB32_Premultiplied = 13
} |
| Raster data types. More...
|
|
enum | MessageLevel {
Info = 0,
Warning = 1,
Critical = 2,
Success = 3,
None = 4
} |
| Level for messages This will be used both for message log and message bar in application. More...
|
|
The Qgis class provides global constants for use throughout the application.
Definition at line 45 of file qgis.h.
◆ DataType
Raster data types.
This is modified and extended copy of GDALDataType.
Enumerator |
---|
UnknownDataType | Unknown or unspecified type.
|
Byte | Eight bit unsigned integer (quint8)
|
UInt16 | Sixteen bit unsigned integer (quint16)
|
Int16 | Sixteen bit signed integer (qint16)
|
UInt32 | Thirty two bit unsigned integer (quint32)
|
Int32 | Thirty two bit signed integer (qint32)
|
Float32 | Thirty two bit floating point (float)
|
Float64 | Sixty four bit floating point (double)
|
CInt16 | Complex Int16.
|
CInt32 | Complex Int32.
|
CFloat32 | Complex Float32.
|
CFloat64 | Complex Float64.
|
ARGB32 | Color, alpha, red, green, blue, 4 bytes the same as QImage::Format_ARGB32.
|
ARGB32_Premultiplied | Color, alpha, red, green, blue, 4 bytes the same as QImage::Format_ARGB32_Premultiplied.
|
Definition at line 79 of file qgis.h.
◆ MessageLevel
Level for messages This will be used both for message log and message bar in application.
Enumerator |
---|
Info | |
Warning | |
Critical | |
Success | |
None | |
Definition at line 66 of file qgis.h.
◆ DEFAULT_HIGHLIGHT_BUFFER_MM
const double Qgis::DEFAULT_HIGHLIGHT_BUFFER_MM = 0.5 |
|
static |
Default highlight buffer in mm.
- Since
- QGIS 2.3
Definition at line 114 of file qgis.h.
◆ DEFAULT_HIGHLIGHT_COLOR
const QColor Qgis::DEFAULT_HIGHLIGHT_COLOR = QColor( 255, 0, 0, 128 ) |
|
static |
Default highlight color.
The transparency is expected to only be applied to polygon fill. Lines and outlines are rendered opaque.
- Since
- QGIS 2.3
Definition at line 109 of file qgis.h.
◆ DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
const double Qgis::DEFAULT_HIGHLIGHT_MIN_WIDTH_MM = 1.0 |
|
static |
Default highlight line/stroke minimum width in mm.
- Since
- QGIS 2.3
Definition at line 119 of file qgis.h.
◆ DEFAULT_MAPTOPIXEL_THRESHOLD
const float Qgis::DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0f |
|
static |
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition at line 103 of file qgis.h.
◆ DEFAULT_SEARCH_RADIUS_MM
const double Qgis::DEFAULT_SEARCH_RADIUS_MM = 2. |
|
static |
Identify search radius in mm.
- Since
- QGIS 2.3
Definition at line 100 of file qgis.h.
◆ DEFAULT_SNAP_TOLERANCE
const double Qgis::DEFAULT_SNAP_TOLERANCE = 12.0 |
|
static |
Default snapping distance tolerance.
- Since
- QGIS 3.0
Definition at line 145 of file qgis.h.
◆ DEFAULT_SNAP_UNITS
Default snapping distance units.
- Since
- QGIS 3.0
Definition at line 151 of file qgis.h.
◆ DEFAULT_Z_COORDINATE
const double Qgis::DEFAULT_Z_COORDINATE = 0.0 |
|
static |
Default Z coordinate value for 2.5d geometry This value have to be assigned to the Z coordinate for the new 2.5d geometry vertex.
- Since
- QGIS 3.0
Definition at line 132 of file qgis.h.
◆ QGIS_DEV_VERSION
const char * Qgis::QGIS_DEV_VERSION = QGSVERSION |
|
static |
The development version.
Definition at line 57 of file qgis.h.
◆ QGIS_RELEASE_NAME
const QString Qgis::QGIS_RELEASE_NAME |
|
static |
Release name.
Definition at line 55 of file qgis.h.
◆ QGIS_VERSION
const QString Qgis::QGIS_VERSION |
|
static |
Version string.
Definition at line 51 of file qgis.h.
◆ QGIS_VERSION_INT
const int Qgis::QGIS_VERSION_INT = VERSION_INT |
|
static |
Version number used for comparing versions using the "Check QGIS Version" function.
Definition at line 53 of file qgis.h.
◆ SCALE_PRECISION
const double Qgis::SCALE_PRECISION = 0.9999999999 |
|
static |
Fudge factor used to compare two scales.
The code is often going from scale to scale denominator. So it looses precision and, when a limit is inclusive, can lead to errors. To avoid that, use this factor instead of using <= or >=.
- Since
- QGIS 2.15
Definition at line 126 of file qgis.h.
◆ UI_SCALE_FACTOR
const double Qgis::UI_SCALE_FACTOR = 1 |
|
static |
UI scaling factor.
This should be applied to all widget sizes obtained from font metrics, to account for differences in the default font sizes across different platforms.
- Since
- QGIS 3.0
Definition at line 139 of file qgis.h.
The documentation for this class was generated from the following files:
- /tmp/buildd/qgis-3.6.0+99unstable/src/core/qgis.h
- /tmp/buildd/qgis-3.6.0+99unstable/src/core/qgis.cpp