QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
QgsRectangle Class Reference

A rectangle specified with double values. More...

#include <qgsrectangle.h>

Public Member Functions

 QgsRectangle (double xmin=0, double ymin=0, double xmax=0, double ymax=0)
 Constructor.
 QgsRectangle (const QgsPoint &p1, const QgsPoint &p2)
 Construct a rectangle from two points. The rectangle is normalized after construction.
 QgsRectangle (const QRectF &qRectF)
 Construct a rectangle from a QRectF. The rectangle is normalized after construction.
 QgsRectangle (const QgsRectangle &other)
 Copy constructor.
 ~QgsRectangle ()
 Destructor.
void set (const QgsPoint &p1, const QgsPoint &p2)
 Set the rectangle from two QgsPoints. The rectangle is.
void set (double xmin, double ymin, double xmax, double ymax)
 Set the rectangle from four points. The rectangle is.
void setXMinimum (double x)
 Set the minimum x value.
void setXMaximum (double x)
 Set the maximum x value.
void setYMinimum (double y)
 Set the minimum y value.
void setYMaximum (double y)
 Set the maximum y value.
void setMinimal ()
 Set a rectangle so that min corner is at max.
double xMaximum () const
 Get the x maximum value (right side of rectangle)
double xMinimum () const
 Get the x minimum value (left side of rectangle)
double yMaximum () const
 Get the y maximum value (top side of rectangle)
double yMinimum () const
 Get the y minimum value (bottom side of rectangle)
void normalize ()
 Normalize the rectangle so it has non-negative width/height.
double width () const
 Width of the rectangle.
double height () const
 Height of the rectangle.
QgsPoint center () const
 Center point of the rectangle.
void scale (double scaleFactor, const QgsPoint *c=0)
 Scale the rectangle around its center point.
QgsRectangle intersect (const QgsRectangle *rect) const
 return the intersection with the given rectangle
bool intersects (const QgsRectangle &rect) const
 returns true when rectangle intersects with other rectangle
bool contains (const QgsRectangle &rect) const
 return true when rectangle contains other rectangle
bool contains (const QgsPoint &p) const
 return true when rectangle contains a point
void combineExtentWith (QgsRectangle *rect)
 expand the rectangle so that covers both the original rectangle and the given rectangle
void combineExtentWith (double x, double y)
 expand the rectangle so that covers both the original rectangle and the given point
bool isEmpty () const
 test if rectangle is empty
QString asWktCoordinates () const
 returns string representation in Wkt form
QString asWktPolygon () const
 returns string representation as WKT Polygon
QRectF toRectF () const
 returns a QRectF with same coordinates.
QString toString (bool automaticPrecision=false) const
 returns string representation of form xmin,ymin xmax,ymax
QString toString (int thePrecision) const
 overloaded toString that allows precision of numbers to be set
QString asPolygon () const
 returns rectangle as a polygon
bool operator== (const QgsRectangle &r1) const
bool operator!= (const QgsRectangle &r1) const
QgsRectangleoperator= (const QgsRectangle &r1)
void unionRect (const QgsRectangle &rect)
 updates rectangle to include passed argument
bool isFinite () const
 Returns true if the rectangle has finite boundaries.
void invert ()
 swap x/y

Protected Attributes

double xmin
double ymin
double xmax
double ymax

Detailed Description

A rectangle specified with double values.

QgsRectangle is used to store a rectangle when double values are required. Examples are storing a layer extent or the current view extent of a map

Definition at line 35 of file qgsrectangle.h.

Constructor & Destructor Documentation

QgsRectangle::QgsRectangle ( double  xmin = 0,
double  ymin = 0,
double  xmax = 0,
double  ymax = 0 
)

Constructor.

Definition at line 31 of file qgsrectangle.cpp.

References normalize().

Referenced by intersect().

QgsRectangle::QgsRectangle ( const QgsPoint p1,
const QgsPoint p2 
)

Construct a rectangle from two points. The rectangle is normalized after construction.

Definition at line 37 of file qgsrectangle.cpp.

QgsRectangle::QgsRectangle ( const QRectF &  qRectF)

Construct a rectangle from a QRectF. The rectangle is normalized after construction.

Definition at line 42 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

QgsRectangle::QgsRectangle ( const QgsRectangle other)

Copy constructor.

Definition at line 50 of file qgsrectangle.cpp.

References xmax, xMaximum(), xmin, xMinimum(), ymax, yMaximum(), ymin, and yMinimum().

QgsRectangle::~QgsRectangle ( )
inline

Destructor.

Definition at line 151 of file qgsrectangle.h.

Member Function Documentation

QString QgsRectangle::asPolygon ( ) const

returns rectangle as a polygon

Definition at line 257 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

QString QgsRectangle::asWktCoordinates ( ) const

returns string representation in Wkt form

Definition at line 187 of file qgsrectangle.cpp.

References qgsDoubleToString(), xmax, xmin, ymax, and ymin.

QString QgsRectangle::asWktPolygon ( ) const

returns string representation as WKT Polygon

Definition at line 196 of file qgsrectangle.cpp.

References qgsDoubleToString(), xmax, xmin, ymax, and ymin.

QgsPoint QgsRectangle::center ( ) const
inline
void QgsRectangle::combineExtentWith ( QgsRectangle rect)

expand the rectangle so that covers both the original rectangle and the given rectangle

Definition at line 160 of file qgsrectangle.cpp.

References xmax, xMaximum(), xmin, xMinimum(), ymax, yMaximum(), ymin, and yMinimum().

Referenced by QgsVectorLayer::boundingBoxOfSelected(), QgsRasterProjector::calcSrcExtent(), QgsVectorLayer::extent(), QgsCoordinateTransform::transformBoundingBox(), and QgsRubberBand::updateRect().

void QgsRectangle::combineExtentWith ( double  x,
double  y 
)

expand the rectangle so that covers both the original rectangle and the given point

Definition at line 171 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

bool QgsRectangle::contains ( const QgsRectangle rect) const

return true when rectangle contains other rectangle

Note
added in version 1.1

Definition at line 149 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

Referenced by QgsMapToolIdentify::identifyRasterLayer(), QgsVectorLayer::snapWithContext(), and QgsRasterFileWriter::writeDataRaster().

bool QgsRectangle::contains ( const QgsPoint p) const

return true when rectangle contains a point

Note
added in version 1.3

Definition at line 154 of file qgsrectangle.cpp.

References QgsPoint::x(), xmax, xmin, QgsPoint::y(), ymax, and ymin.

double QgsRectangle::height ( ) const
inline

Height of the rectangle.

Definition at line 200 of file qgsrectangle.h.

References ymax, and ymin.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterInterface::bandStatistics(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsComposerMap::cache(), QgsRasterProjector::calc(), QgsRasterProjector::calcSrcRowsCols(), QgsMapToolZoom::canvasReleaseEvent(), center(), QgsComposerMap::composerMapPosForItem(), QgsRasterProjector::destPointOnCPMatrix(), QgsComposerMap::drawOverviewMapExtent(), QgsRasterFileWriter::globalOutputParameters(), QgsRasterInterface::histogram(), QgsRasterDataProvider::identify(), QgsMapToolIdentify::identifyRasterLayer(), QgsRasterInterface::initHistogram(), QgsRasterInterface::initStatistics(), QgsMapOverviewCanvas::mouseReleaseEvent(), QgsRasterCalculator::outputGeoTransform(), QgsComposerMap::paint(), QgsAtlasComposition::prepareForFeature(), QgsRasterLayer::previewAsPixmap(), QgsRasterLayer::rasterUnitsPerPixelY(), QgsRasterIterator::readNextRasterPart(), QgsRasterLayerSaveAsDialog::recalcResolution(), QgsRasterLayerSaveAsDialog::recalcSize(), scale(), QgsMapCanvas::setExtent(), QgsMapRenderer::setExtent(), QgsComposerMap::setNewExtent(), QgsRasterLayerSaveAsDialog::setOriginalResolution(), QgsVectorLayerEditUtils::splitFeatures(), QgsRasterBlock::subRect(), toString(), QgsCoordinateTransform::transformBoundingBox(), and QgsMapRenderer::updateFullExtent().

QgsRectangle QgsRectangle::intersect ( const QgsRectangle rect) const
bool QgsRectangle::intersects ( const QgsRectangle rect) const

returns true when rectangle intersects with other rectangle

Definition at line 136 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

Referenced by intersect(), and QgsVectorLayer::snapWithContext().

void QgsRectangle::invert ( )

swap x/y

Note
added in 1.9

Definition at line 335 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

bool QgsRectangle::isEmpty ( ) const
bool QgsRectangle::isFinite ( ) const

Returns true if the rectangle has finite boundaries.

Will return false if any of the rectangle boundaries are NaN or Inf.

Definition at line 322 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

Referenced by QgsMapRenderer::render().

void QgsRectangle::normalize ( )
bool QgsRectangle::operator!= ( const QgsRectangle r1) const

Comparison operator

Returns
False if rectangles are equal

Definition at line 290 of file qgsrectangle.cpp.

QgsRectangle & QgsRectangle::operator= ( const QgsRectangle r1)

Assignment operator

Parameters
r1QgsRectangle to assign from

Definition at line 296 of file qgsrectangle.cpp.

References xmax, xMaximum(), xmin, xMinimum(), ymax, yMaximum(), ymin, and yMinimum().

bool QgsRectangle::operator== ( const QgsRectangle r1) const

Comparison operator

Returns
True if rectangles are equal

Definition at line 281 of file qgsrectangle.cpp.

References xMaximum(), xMinimum(), yMaximum(), and yMinimum().

void QgsRectangle::scale ( double  scaleFactor,
const QgsPoint c = 0 
)
void QgsRectangle::set ( const QgsPoint p1,
const QgsPoint p2 
)

Set the rectangle from two QgsPoints. The rectangle is.

Definition at line 59 of file qgsrectangle.cpp.

References normalize(), QgsPoint::x(), xmax, xmin, QgsPoint::y(), ymax, and ymin.

Referenced by QgsVectorLayer::boundingBoxOfSelected(), QgsGml::createBBoxFromCoordinateString(), QgsRasterLayer::draw(), and QgsMapRenderer::updateFullExtent().

void QgsRectangle::set ( double  xmin,
double  ymin,
double  xmax,
double  ymax 
)

Set the rectangle from four points. The rectangle is.

Definition at line 68 of file qgsrectangle.cpp.

References normalize(), xmax, xmin, ymax, and ymin.

void QgsRectangle::setMinimal ( )
void QgsRectangle::setXMaximum ( double  x)
inline
void QgsRectangle::setXMinimum ( double  x)
inline
void QgsRectangle::setYMaximum ( double  y)
inline
void QgsRectangle::setYMinimum ( double  y)
inline
QRectF QgsRectangle::toRectF ( ) const

returns a QRectF with same coordinates.

Definition at line 212 of file qgsrectangle.cpp.

References xmax, xmin, ymax, and ymin.

QString QgsRectangle::toString ( bool  automaticPrecision = false) const
QString QgsRectangle::toString ( int  thePrecision) const

overloaded toString that allows precision of numbers to be set

Definition at line 238 of file qgsrectangle.cpp.

References isEmpty(), QgsDebugMsgLevel, xmax, xmin, ymax, and ymin.

void QgsRectangle::unionRect ( const QgsRectangle rect)

updates rectangle to include passed argument

Definition at line 310 of file qgsrectangle.cpp.

References setXMaximum(), setXMinimum(), setYMaximum(), setYMinimum(), xMaximum(), xMinimum(), yMaximum(), and yMinimum().

Referenced by QgsGml::calculateExtentFromFeatures(), and QgsMapRenderer::updateFullExtent().

double QgsRectangle::width ( ) const
inline

Width of the rectangle.

Definition at line 195 of file qgsrectangle.h.

References xmax, and xmin.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterInterface::bandStatistics(), QgsRasterResampleFilter::block(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsComposerMap::cache(), QgsRasterProjector::calc(), QgsRasterProjector::calcSrcRowsCols(), QgsMapToolZoom::canvasReleaseEvent(), center(), QgsComposerMap::composerMapPosForItem(), QgsRasterFileWriter::createPartProvider(), QgsRasterProjector::destPointOnCPMatrix(), QgsComposerMap::drawOverviewMapExtent(), QgsMapTip::fetchFeature(), QgsRasterFileWriter::globalOutputParameters(), QgsRasterInterface::histogram(), QgsRasterDataProvider::identify(), QgsMapToolIdentify::identifyRasterLayer(), QgsMapToolIdentify::identifyVectorLayer(), QgsRasterInterface::initHistogram(), QgsRasterInterface::initStatistics(), QgsComposerMap::mapUnitsToMM(), QgsComposerScaleBar::mapWidth(), QgsMapOverviewCanvas::mouseReleaseEvent(), QgsRasterCalculator::outputGeoTransform(), QgsComposerMap::paint(), QgsHighlight::paintPoint(), QgsAtlasComposition::prepareForFeature(), QgsRasterLayer::previewAsPixmap(), QgsRasterLayer::rasterUnitsPerPixelX(), QgsRasterIterator::readNextRasterPart(), QgsRasterLayerSaveAsDialog::recalcResolution(), QgsRasterLayerSaveAsDialog::recalcSize(), scale(), QgsMapCanvas::setExtent(), QgsMapRenderer::setExtent(), QgsHtmlAnnotationItem::setFeatureForMapPosition(), QgsFormAnnotationItem::setFeatureForMapPosition(), QgsComposerMap::setNewExtent(), QgsRasterLayerSaveAsDialog::setOriginalResolution(), QgsComposerMap::setSceneRect(), QgsVectorLayerEditUtils::splitFeatures(), QgsRasterBlock::subRect(), toString(), QgsCoordinateTransform::transformBoundingBox(), QgsMapRenderer::updateFullExtent(), and QgsHighlight::updateRect().

double QgsRectangle::xMaximum ( ) const
inline

Get the x maximum value (right side of rectangle)

Definition at line 175 of file qgsrectangle.h.

References xmax.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsRasterProjector::calcSrcExtent(), QgsScaleCalculator::calculate(), QgsScaleCalculator::calculateGeographicDistance(), QgsZonalStatistics::cellInfoForBBox(), QgsClipper::clippedLineWKB(), combineExtentWith(), QgsClipper::connectSeparatedLines(), QgsRasterLayer::draw(), QgsMapOverviewCanvas::drawExtentRect(), QgsPalLabeling::drawLabeling(), QgsVectorLayer::extent(), QgsGeometry::fromRect(), intersect(), QgsClipper::intersectRect(), QgsMapCanvas::keyPressEvent(), QgsLabelSearchTree::labelsInRect(), QgsComposerMap::mapPolygon(), QgsComposerMap::mapToItemCoords(), QgsComposerScaleBar::mapWidth(), QgsVectorLayer::metadata(), QgsComposerMap::moveContent(), operator=(), operator==(), QgsComposerMap::paint(), QgsAtlasComposition::prepareForFeature(), QgsRectangle(), QgsRasterCalculator::readRasterPart(), QgsOgcUtils::rectangleToGMLBox(), QgsOgcUtils::rectangleToGMLEnvelope(), QgsSpatialIndex::rectToRegion(), QgsMapRenderer::setExtent(), QgsRasterLayerSaveAsDialog::setOutputExtent(), QgsMapCanvasItem::setRect(), QgsComposerMap::setSceneRect(), QgsVectorLayerEditUtils::splitFeatures(), QgsMapRenderer::splitLayersExtent(), QgsRasterBlock::subRect(), QgsCoordinateTransform::transform(), QgsComposerMap::transformedExtent(), QgsClipper::trimPolygon(), unionRect(), QgsMapRenderer::updateFullExtent(), QgsHighlight::updateRect(), QgsComposerMap::writeXML(), QgsMapRenderer::writeXML(), and QgsComposerMap::zoomContent().

double QgsRectangle::xMinimum ( ) const
inline

Get the x minimum value (left side of rectangle)

Definition at line 180 of file qgsrectangle.h.

References xmin.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterProjector::approximateSrcRowCol(), QgsRasterInterface::bandStatistics(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsComposerMap::cache(), QgsRasterProjector::calcHelper(), QgsRasterProjector::calcSrcExtent(), QgsScaleCalculator::calculate(), QgsScaleCalculator::calculateGeographicDistance(), QgsZonalStatistics::cellInfoForBBox(), QgsClipper::clippedLineWKB(), combineExtentWith(), QgsComposerMap::composerMapPosForItem(), QgsClipper::connectSeparatedLines(), QgsRasterFileWriter::createPartProvider(), QgsRasterProjector::destPointOnCPMatrix(), QgsRasterLayer::draw(), QgsMapOverviewCanvas::drawExtentRect(), QgsPalLabeling::drawLabeling(), QgsComposerMap::drawOverviewMapExtent(), QgsGeometryAnalyzer::extent(), QgsVectorLayer::extent(), QgsGeometry::fromRect(), QgsRasterFileWriter::globalOutputParameters(), QgsRasterInterface::histogram(), QgsRasterDataProvider::identify(), intersect(), QgsClipper::intersectRect(), QgsMapCanvas::keyPressEvent(), QgsLabelSearchTree::labelsInRect(), QgsComposerMap::mapPolygon(), QgsComposerMap::mapToItemCoords(), QgsComposerScaleBar::mapWidth(), QgsVectorLayer::metadata(), QgsComposerMap::moveContent(), operator=(), operator==(), QgsRasterCalculator::outputGeoTransform(), QgsComposerMap::paint(), QgsRasterProjector::preciseSrcRowCol(), QgsAtlasComposition::prepareForFeature(), QgsRectangle(), QgsRasterIterator::readNextRasterPart(), QgsRasterCalculator::readRasterPart(), QgsOgcUtils::rectangleToGMLBox(), QgsOgcUtils::rectangleToGMLEnvelope(), QgsSpatialIndex::rectToRegion(), QgsRenderChecker::runTest(), QgsMapCanvas::saveAsImage(), QgsMapRenderer::setExtent(), QgsRasterLayerSaveAsDialog::setOutputExtent(), QgsMapCanvasItem::setRect(), QgsComposerMap::setSceneRect(), QgsVectorLayerEditUtils::splitFeatures(), QgsMapRenderer::splitLayersExtent(), QgsZonalStatistics::statisticsFromMiddlePointTest(), QgsZonalStatistics::statisticsFromPreciseIntersection(), QgsRasterBlock::subRect(), QgsCoordinateTransform::transform(), QgsCoordinateTransform::transformBoundingBox(), QgsComposerMap::transformedExtent(), QgsClipper::trimPolygon(), unionRect(), QgsMapRenderer::updateFullExtent(), QgsHighlight::updateRect(), QgsGridFileWriter::writeFile(), QgsGridFileWriter::writeHeader(), QgsComposerMap::writeXML(), QgsMapRenderer::writeXML(), and QgsComposerMap::zoomContent().

double QgsRectangle::yMaximum ( ) const
inline

Get the y maximum value (top side of rectangle)

Definition at line 185 of file qgsrectangle.h.

References ymax.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterProjector::approximateSrcRowCol(), QgsRasterInterface::bandStatistics(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsRasterProjector::calcSrcExtent(), QgsScaleCalculator::calculateGeographicDistance(), QgsZonalStatistics::cellInfoForBBox(), QgsClipper::clippedLineWKB(), combineExtentWith(), QgsComposerMap::composerMapPosForItem(), QgsClipper::connectSeparatedLines(), QgsRasterFileWriter::createPartProvider(), QgsRasterProjector::destPointOnCPMatrix(), QgsRasterLayer::draw(), QgsMapOverviewCanvas::drawExtentRect(), QgsPalLabeling::drawLabeling(), QgsComposerMap::drawOverviewMapExtent(), QgsVectorLayer::extent(), QgsGeometry::fromRect(), QgsRasterFileWriter::globalOutputParameters(), QgsRasterInterface::histogram(), QgsRasterDataProvider::identify(), intersect(), QgsClipper::intersectRect(), QgsMapCanvas::keyPressEvent(), QgsLabelSearchTree::labelsInRect(), QgsComposerMap::mapPolygon(), QgsComposerMap::mapToItemCoords(), QgsVectorLayer::metadata(), QgsComposerMap::moveContent(), operator=(), operator==(), QgsRasterCalculator::outputGeoTransform(), QgsComposerMap::paint(), QgsRasterProjector::preciseSrcRowCol(), QgsAtlasComposition::prepareForFeature(), QgsRectangle(), QgsRasterIterator::readNextRasterPart(), QgsRasterCalculator::readRasterPart(), QgsOgcUtils::rectangleToGMLBox(), QgsOgcUtils::rectangleToGMLEnvelope(), QgsSpatialIndex::rectToRegion(), QgsRenderChecker::runTest(), QgsMapCanvas::saveAsImage(), QgsMapRenderer::setExtent(), QgsRasterLayerSaveAsDialog::setOutputExtent(), QgsMapCanvasItem::setRect(), QgsVectorLayerEditUtils::splitFeatures(), QgsMapRenderer::splitLayersExtent(), QgsZonalStatistics::statisticsFromMiddlePointTest(), QgsZonalStatistics::statisticsFromPreciseIntersection(), QgsRasterBlock::subRect(), QgsCoordinateTransform::transform(), QgsComposerMap::transformedExtent(), QgsClipper::trimPolygon(), unionRect(), QgsMapRenderer::updateFullExtent(), QgsHighlight::updateRect(), QgsGridFileWriter::writeFile(), QgsComposerMap::writeXML(), QgsMapRenderer::writeXML(), and QgsComposerMap::zoomContent().

double QgsRectangle::yMinimum ( ) const
inline

Get the y minimum value (bottom side of rectangle)

Definition at line 190 of file qgsrectangle.h.

References ymin.

Referenced by QgsFeatureRendererV2::_getLineString(), QgsFeatureRendererV2::_getPolygon(), QgsMapRenderer::adjustExtentToSize(), QgsRasterDataProvider::block(), QgsVectorLayer::boundingBoxOfSelected(), QgsComposerMap::cache(), QgsRasterProjector::calcSrcExtent(), QgsScaleCalculator::calculateGeographicDistance(), QgsZonalStatistics::cellInfoForBBox(), QgsClipper::clippedLineWKB(), combineExtentWith(), QgsClipper::connectSeparatedLines(), QgsRasterLayer::draw(), QgsMapOverviewCanvas::drawExtentRect(), QgsPalLabeling::drawLabeling(), QgsVectorLayer::extent(), QgsGeometry::fromRect(), intersect(), QgsClipper::intersectRect(), QgsMapCanvas::keyPressEvent(), QgsLabelSearchTree::labelsInRect(), QgsComposerMap::mapPolygon(), QgsComposerMap::mapToItemCoords(), QgsComposerScaleBar::mapWidth(), QgsVectorLayer::metadata(), QgsComposerMap::moveContent(), operator=(), operator==(), QgsComposerMap::paint(), QgsAtlasComposition::prepareForFeature(), QgsRectangle(), QgsRasterCalculator::readRasterPart(), QgsOgcUtils::rectangleToGMLBox(), QgsOgcUtils::rectangleToGMLEnvelope(), QgsSpatialIndex::rectToRegion(), QgsMapRenderer::setExtent(), QgsRasterLayerSaveAsDialog::setOutputExtent(), QgsMapCanvasItem::setRect(), QgsComposerMap::setSceneRect(), QgsVectorLayerEditUtils::splitFeatures(), QgsMapRenderer::splitLayersExtent(), QgsRasterBlock::subRect(), QgsCoordinateTransform::transform(), QgsCoordinateTransform::transformBoundingBox(), QgsComposerMap::transformedExtent(), QgsClipper::trimPolygon(), unionRect(), QgsMapRenderer::updateFullExtent(), QgsHighlight::updateRect(), QgsGridFileWriter::writeHeader(), QgsComposerMap::writeXML(), QgsMapRenderer::writeXML(), and QgsComposerMap::zoomContent().

Member Data Documentation

double QgsRectangle::xmax
protected
double QgsRectangle::xmin
protected
double QgsRectangle::ymax
protected
double QgsRectangle::ymin
protected

The documentation for this class was generated from the following files: