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 );
88 QgsPoint transform( qreal x, qreal y )
const;
95 void transformInPlace(
double& x,
double& y )
const;
98 void transformInPlace(
float& x,
float& y )
const;
110 for (
int i = 0; i < x.
size(); ++i )
111 transformInPlace( x[i], y[i] );
114 QgsPoint toMapCoordinates(
int x,
int y )
const;
117 QgsPoint toMapCoordinatesF(
double x,
double y )
const;
126 QgsPoint toMapPoint(
double x,
double y )
const;
132 void setMapUnitsPerPixel(
double mapUnitsPerPixel );
135 double mapUnitsPerPixel()
const;
142 int mapWidth()
const;
148 int mapHeight()
const;
157 void setMapRotation(
double degrees,
double cx,
double cy );
163 double mapRotation()
const;
170 Q_DECL_DEPRECATED
void setYMaximum(
double yMax ) { mHeight =
static_cast< int >( yMax ); }
176 Q_DECL_DEPRECATED
void setYMinimum(
double ymin );
182 Q_DECL_DEPRECATED
void setXMinimum(
double xmin );
193 Q_DECL_DEPRECATED
void setParameters(
double mapUnitsPerPixel,
double xmin,
double ymin,
double height );
205 void setParameters(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
208 QString showParameters()
const;
213 double mMapUnitsPerPixel;
227 #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.