22 #include <QDomDocument>
39 QgsRectangle(
double xmin = 0,
double ymin = 0,
double xmax = 0,
double ymax = 0 );
54 void set(
double xmin,
double ymin,
double xmax,
double ymax );
56 void setXMinimum(
double x );
58 void setXMaximum(
double x );
60 void setYMinimum(
double y );
62 void setYMaximum(
double y );
67 double xMaximum()
const;
69 double xMinimum()
const;
71 double yMaximum()
const;
73 double yMinimum()
const;
79 double height()
const;
83 void scale(
double scaleFactor,
const QgsPoint *c = 0 );
84 void scale(
double scaleFactor,
double centerX,
double centerY );
97 bool contains(
const QgsPoint &p )
const;
101 void combineExtentWith(
double x,
double y );
104 bool isEmpty()
const;
110 QString asWktCoordinates()
const;
113 QString asWktPolygon()
const;
116 QRectF toRectF()
const;
118 QString toString(
bool automaticPrecision =
false )
const;
120 QString toString(
int thePrecision )
const;
122 QString asPolygon()
const;
141 bool isFinite()
const;
220 return os << r.
toString().toLocal8Bit().data();
A rectangle specified with double values.
void setXMaximum(double x)
Set the maximum x value.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
double yMaximum() const
Get the y maximum value (top side of rectangle)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
~QgsRectangle()
Destructor.
double yMinimum() const
Get the y minimum value (bottom side of rectangle)
double xMaximum() const
Get the x maximum value (right side of rectangle)
void setYMinimum(double y)
Set the minimum y value.
A class to represent a point geometry.
std::ostream & operator<<(std::ostream &os, const QgsRectangle &r)
void setYMaximum(double y)
Set the maximum y value.
double width() const
Width of the rectangle.
QString toString(bool automaticPrecision=false) const
returns string representation of form xmin,ymin xmax,ymax
double xMinimum() const
Get the x minimum value (left side of rectangle)
QgsPoint center() const
Center point of the rectangle.
bool isNull(const QVariant &v)
void setXMinimum(double x)
Set the minimum x value.
double height() const
Height of the rectangle.