|
| QgsMapToPixel () |
| Constructor for an invalid QgsMapToPixel. More...
|
|
| QgsMapToPixel (double mapUnitsPerPixel) |
| Constructor. More...
|
|
| QgsMapToPixel (double mapUnitsPerPixel, double centerX, double centerY, int widthPixels, int heightPixels, double rotation) |
| Constructor. More...
|
|
bool | isValid () const |
| Returns true if the object is valid (i.e. More...
|
|
int | mapHeight () const |
| Returns current map height in pixels. More...
|
|
double | mapRotation () const |
| Returns the current map rotation in degrees (clockwise). More...
|
|
double | mapUnitsPerPixel () const |
| Returns the current map units per pixel. More...
|
|
int | mapWidth () const |
| Returns the current map width in pixels. More...
|
|
bool | operator!= (const QgsMapToPixel &other) const |
|
bool | operator== (const QgsMapToPixel &other) const |
|
void | setMapRotation (double degrees, double cx, double cy) |
| Sets map rotation in degrees (clockwise). More...
|
|
void | setMapUnitsPerPixel (double mapUnitsPerPixel) |
| Sets the map units per pixel. More...
|
|
void | setParameters (double mapUnitsPerPixel, double centerX, double centerY, int widthPixels, int heightPixels, double rotation) |
| Sets parameters for use in transforming coordinates. More...
|
|
void | setParameters (double mapUnitsPerPixel, double centerX, double centerY, int widthPixels, int heightPixels, double rotation, bool *ok) |
| Sets parameters for use in transforming coordinates. More...
|
|
QString | showParameters () const |
| Returns a string representation of the parameters used in the transform. More...
|
|
QgsPointXY | toMapCoordinates (double x, double y) const |
| Transforms device coordinates to map (world) coordinates. More...
|
|
QgsPointXY | toMapCoordinates (int x, int y) const |
| Transforms device coordinates to map (world) coordinates. More...
|
|
QgsPointXY | toMapCoordinates (QPoint p) const |
| Transforms device coordinates to map (world) coordinates. More...
|
|
Q_DECL_DEPRECATED QgsPointXY | toMapPoint (double x, double y) const |
| Transforms device coordinates to map (world) coordinates. More...
|
|
QTransform | transform () const |
| Returns a QTransform encapsulating the map to pixel conversion. More...
|
|
QgsPointXY | transform (const QgsPointXY &p) const |
| Transforms a point p from map (world) coordinates to device coordinates. More...
|
|
void | transform (QgsPointXY *p) const |
| Transforms a point p from map (world) coordinates to device coordinates in place. More...
|
|
QgsPointXY | transform (qreal x, qreal y) const |
| Transforms the point specified by x,y from map (world) coordinates to device coordinates. More...
|
|
void | transformInPlace (double &x, double &y) const |
| Transforms device coordinates to map coordinates. More...
|
|
void | transformInPlace (float &x, float &y) const |
| Transforms device coordinates to map coordinates. More...
|
|
template<class T > |
void | transformInPlace (QVector< T > &x, QVector< T > &y) const |
| Transforms device coordinates to map coordinates. More...
|
|
double | xCenter () const |
| Returns the center x-coordinate for the transform. More...
|
|
double | yCenter () const |
| Returns the center y-coordinate for the transform. More...
|
|