20 #include <QTextStream>
29 : mMapUnitsPerPixel( mapUnitsPerPixel )
101 <<
" X minimum: " <<
xMin <<
" Y minimum: " <<
yMin <<
" Y maximum: " <<
yMax;
150 QVector<double>& y )
const
152 assert( x.size() == y.size() );
153 for (
int i = 0; i < x.size(); ++i )
165 QVector<float>& y )
const
167 assert( x.size() == y.size() );
168 for (
unsigned int i = 0; i < x.size(); ++i )
QgsMapToPixel(double mapUnitsPerPixel=0, double ymax=0, double ymin=0, double xmin=0)
void setYMaximum(double ymax)
Set maximum y value.
QgsPoint transform(const QgsPoint &p) const
void transformInPlace(double &x, double &y) const
void setXMinimum(double xmin)
set minimum x value
QString showParameters()
String representation of the parameters used in the transform.
double mapUnitsPerPixel() const
Return current map units per pixel.
void set(double x, double y)
A class to represent a point geometry.
QgsPoint toMapCoordinatesF(double x, double y) const
QgsPoint toMapCoordinates(int x, int y) const
void setParameters(double mapUnitsPerPixel, double xmin, double ymin, double ymax)
void setMapUnitsPerPixel(double mapUnitsPerPixel)
~QgsMapToPixel()
destructor
QgsPoint toMapPoint(double x, double y) const
void setYMinimum(double ymin)
Set minimum y value.