44 Q_DECL_DEPRECATED
QgsMapToPixel(
double mapUnitsPerPixel,
double height = 0,
double ymin = 0,
double xmin = 0 );
55 QgsMapToPixel(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
77 QgsPoint transform(
double x,
double y )
const;
87 void transformInPlace( qreal& x, qreal& y )
const;
95 void transformInPlace( QVector<T>& x, QVector<T>& y )
const
97 assert( x.size() == y.size() );
98 for (
int i = 0; i < x.size(); ++i )
99 transformInPlace( x[i], y[i] );
102 QgsPoint toMapCoordinates(
int x,
int y )
const;
105 QgsPoint toMapCoordinatesF(
double x,
double y )
const;
111 QgsPoint toMapCoordinates( QPoint p )
const;
113 QgsPoint toMapPoint(
double x,
double y )
const;
118 void setMapUnitsPerPixel(
double mapUnitsPerPixel );
121 double mapUnitsPerPixel()
const;
126 int mapWidth()
const;
130 int mapHeight()
const;
137 void setMapRotation(
double degrees,
double cx,
double cy );
141 double mapRotation()
const;
146 Q_DECL_DEPRECATED
void setYMaximum(
double yMax ) { mHeight = yMax; }
150 Q_DECL_DEPRECATED
void setYMinimum(
double ymin );
154 Q_DECL_DEPRECATED
void setXMinimum(
double xmin );
163 Q_DECL_DEPRECATED
void setParameters(
double mapUnitsPerPixel,
double xmin,
double ymin,
double height );
174 void setParameters(
double mapUnitsPerPixel,
double xc,
double yc,
int width,
int height,
double rotation );
177 QString showParameters()
const;
180 double mMapUnitsPerPixel;
194 #endif // QGSMAPTOPIXEL