45 Q_DECL_DEPRECATED
QgsMapToPixel(
double mapUnitsPerPixel,
double height,
double ymin = 0,
double xmin = 0 );
57 QgsMapToPixel(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
63 QgsMapToPixel(
double mapUnitsPerPixel );
91 QgsPoint transform( qreal x, qreal y )
const;
105 void transformInPlace(
double& x,
double& y )
const;
106 void transformInPlace(
float& x,
float& y )
const;
119 for (
int i = 0; i < x.
size(); ++i )
120 transformInPlace( x[i], y[i] );
123 QgsPoint toMapCoordinates(
int x,
int y )
const;
126 QgsPoint toMapCoordinatesF(
double x,
double y )
const;
135 QgsPoint toMapPoint(
double x,
double y )
const;
141 void setMapUnitsPerPixel(
double mapUnitsPerPixel );
144 double mapUnitsPerPixel()
const;
151 int mapWidth()
const;
157 int mapHeight()
const;
166 void setMapRotation(
double degrees,
double cx,
double cy );
172 double mapRotation()
const;
179 Q_DECL_DEPRECATED
void setYMaximum(
double yMax ) { mHeight = yMax; }
185 Q_DECL_DEPRECATED
void setYMinimum(
double ymin );
191 Q_DECL_DEPRECATED
void setXMinimum(
double xmin );
201 Q_DECL_DEPRECATED
void setParameters(
double mapUnitsPerPixel,
double xmin,
double ymin,
double height );
213 void setParameters(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
216 QString showParameters()
const;
221 double mMapUnitsPerPixel;
235 #endif // QGSMAPTOPIXEL
void transformInPlace(QVector< T > &x, QVector< T > &y) const
Transform device coordinates to map coordinates.
Q_DECL_DEPRECATED void setYMaximum(double yMax)
Set maximum y value.
Perform transforms between map coordinates and device coordinates.
A class to represent a point.