QGIS API Documentation
2.2.0-Valmiera
|
The QGis class provides global constants for use throughout the application. More...
#include <qgis.h>
Public Types | |
enum | WkbType { WKBUnknown = 0, WKBPoint = 1, WKBLineString, WKBPolygon, WKBMultiPoint, WKBMultiLineString, WKBMultiPolygon, WKBNoGeometry = 100, WKBPoint25D = 0x80000001, WKBLineString25D, WKBPolygon25D, WKBMultiPoint25D, WKBMultiLineString25D, WKBMultiPolygon25D } |
Used for symbology operations. More... | |
enum | GeometryType { Point, Line, Polygon, UnknownGeometry, NoGeometry } |
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 | UnitType { Meters = 0, Feet = 1, Degrees = 2, UnknownUnit = 3, DecimalDegrees = 2, DegreesMinutesSeconds = 2, DegreesDecimalMinutes = 2, NauticalMiles = 7 } |
Map units that qgis supports. More... | |
enum | UserEvent { ProviderExtentCalcEvent = ( QEvent::User + 1 ), ProviderCountCalcEvent } |
User defined event types. More... |
Static Public Member Functions | |
static WkbType | singleType (WkbType type) |
static WkbType | multiType (WkbType type) |
static WkbType | flatType (WkbType type) |
static bool | isSingleType (WkbType type) |
static bool | isMultiType (WkbType type) |
static int | wkbDimensions (WkbType type) |
static const char * | vectorGeometryType (GeometryType type) |
description strings for geometry types | |
static const char * | featureType (WkbType type) |
description strings for feature types | |
static QString | toLiteral (QGis::UnitType unit) |
Provides the canonical name of the type value. | |
static UnitType | fromLiteral (QString literal, QGis::UnitType defaultType=UnknownUnit) |
Converts from the canonical name to the type value. | |
static QString | tr (QGis::UnitType unit) |
Provides translated version of the type value. | |
static double | fromUnitToUnitFactor (QGis::UnitType fromUnit, QGis::UnitType toUnit) |
Returns the conversion factor between the specified units. |
Static Public Attributes | |
static const char * | QGIS_VERSION = VERSION |
static const int | QGIS_VERSION_INT = VERSION_INT |
static const char * | QGIS_RELEASE_NAME = RELEASE_NAME |
static const char * | QGIS_DEV_VERSION = QGSVERSION |
static const double | DEFAULT_IDENTIFY_RADIUS = 0.5 |
static const float | DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0f |
Default threshold between map coordinates and device coordinates for map2pixel simplification. |
Static Private Attributes | |
static const char * | qgisUnitTypes [] |
The QGis class provides global constants for use throughout the application.
enum QGis::DataType |
Raster data types.
This is modified and extended copy of GDALDataType.
enum QGis::GeometryType |
enum QGis::UnitType |
enum QGis::UserEvent |
enum QGis::WkbType |
|
inlinestatic |
Definition at line 99 of file qgis.h.
Referenced by QgsGeometry::deleteVertex(), generalizeWkbGeometry(), QgsGeometry::insertVertex(), and QgsMapToPixelSimplifier::simplifyWkbGeometry().
|
static |
Converts from the canonical name to the type value.
Definition at line 93 of file qgis.cpp.
References qgisUnitTypes.
|
static |
Returns the conversion factor between the specified units.
Definition at line 115 of file qgis.cpp.
References DecimalDegrees, DEGREE_TO_METER, Degrees, DegreesDecimalMinutes, DegreesMinutesSeconds, Feet, FEET_TO_METER, Meters, NauticalMiles, NMILE_TO_METER, and UnknownUnit.
Referenced by QgsDistanceArea::convertMeasurement(), and QgsComposerScaleBar::mapWidth().
|
inlinestatic |
Definition at line 126 of file qgis.h.
Referenced by QgsGeometry::isMultipart().
Definition at line 71 of file qgis.h.
Referenced by QgsVectorFileWriter::createFeature(), generalizeWkbGeometry(), and QgsMapToPixelSimplifier::simplifyWkbGeometry().
|
static |
Provides the canonical name of the type value.
Definition at line 105 of file qgis.cpp.
References qgisUnitTypes.
Referenced by QgsDistanceArea::convertMeasurement(), and tr().
|
static |
Provides translated version of the type value.
Definition at line 110 of file qgis.cpp.
References toLiteral().
|
inlinestatic |
description strings for geometry types
Definition at line 165 of file qgis.h.
Referenced by QgsVectorLayer::metadata(), and QgsVectorLayer::writeXml().
|
inlinestatic |
Definition at line 139 of file qgis.h.
Referenced by calculateBoundingBox(), QgsGeometry::deleteVertex(), generalizeWkbGeometry(), QgsGeometry::insertVertex(), and QgsMapToPixelSimplifier::simplifyWkbGeometry().
|
static |
Definition at line 267 of file qgis.h.
Referenced by QgsMapTip::fetchFeature(), QgsMapToolIdentify::identifyVectorLayer(), QgsFormAnnotationItem::setFeatureForMapPosition(), and QgsHtmlAnnotationItem::setFeatureForMapPosition().
|
static |
|
static |
Definition at line 46 of file qgis.h.
Referenced by QgsError::message().
|
static |
Definition at line 40 of file qgis.h.
Referenced by QgsNetworkAccessManager::createRequest(), QgsMapLayer::exportNamedStyle(), QgsMapLayer::loadNamedStyle(), QgsProject::read(), and QgsProject::write().
|
static |
Definition at line 42 of file qgis.h.
Referenced by QgsApplication::init().
|
staticprivate |
Definition at line 274 of file qgis.h.
Referenced by fromLiteral(), and toLiteral().