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( qreal& x, qreal& y )
const;
117 for (
int i = 0; i < x.
size(); ++i )
118 transformInPlace( x[i], y[i] );
121 QgsPoint toMapCoordinates(
int x,
int y )
const;
124 QgsPoint toMapCoordinatesF(
double x,
double y )
const;
133 QgsPoint toMapPoint( qreal x, qreal y )
const;
139 void setMapUnitsPerPixel(
double mapUnitsPerPixel );
142 double mapUnitsPerPixel()
const;
149 int mapWidth()
const;
155 int mapHeight()
const;
164 void setMapRotation(
double degrees,
double cx,
double cy );
170 double mapRotation()
const;
177 Q_DECL_DEPRECATED
void setYMaximum(
double yMax ) { mHeight = yMax; }
183 Q_DECL_DEPRECATED
void setYMinimum(
double ymin );
189 Q_DECL_DEPRECATED
void setXMinimum(
double xmin );
199 Q_DECL_DEPRECATED
void setParameters(
double mapUnitsPerPixel,
double xmin,
double ymin,
double height );
211 void setParameters(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
214 QString showParameters()
const;
219 double mMapUnitsPerPixel;
233 #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.