QgsMapRenderer Class Reference
[Core]

#include <qgsmaprenderer.h>

Collaboration diagram for QgsMapRenderer:

Collaboration graph
[legend]
List of all members.

Detailed Description

A non GUI class for rendering a map layer set onto a QPainter.

Definition at line 41 of file qgsmaprenderer.h.

Public Types

enum  OutputUnits { Millimeters, Pixels }
 Output units for pen width and point marker width/height. More...

Public Slots

void onDrawingProgress (int current, int total)
 called by signal from layer current being drawn

Signals

void drawingProgress (int current, int total)
void hasCrsTransformEnabled (bool flag)
void destinationSrsChanged ()
void updateMap ()
void mapUnitsChanged ()
void drawError (QgsMapLayer *)
 emitted when layer's draw() returned FALSE

Public Member Functions

 QgsMapRenderer ()
 constructor
 ~QgsMapRenderer ()
 destructor
void render (QPainter *painter)
 starts rendering
bool setExtent (const QgsRectangle &extent)
 sets extent and checks whether suitable (returns false if not)
QgsRectangle extent () const
 returns current extent
const QgsMapToPixelcoordinateTransform ()
double scale () const
void setScale (double scale)
 Sets scale for scale based visibility.
double mapUnitsPerPixel () const
int width () const
int height () const
void updateScale ()
 Recalculate the map scale.
QgsDistanceAreadistanceArea ()
 Return the measuring object.
QGis::UnitType mapUnits () const
void setMapUnits (QGis::UnitType u)
void enableOverviewMode (bool isOverview=true)
 sets whether map image will be for overview
void setOutputSize (QSize size, int dpi)
int outputDpi ()
 accessor for output dpi
QSize outputSize ()
 accessor for output size
QgsRectangle layerExtentToOutputExtent (QgsMapLayer *theLayer, QgsRectangle extent)
 transform extent in layer's CRS to extent in output CRS
QgsPoint layerToMapCoordinates (QgsMapLayer *theLayer, QgsPoint point)
 transform coordinates from layer's CRS to output CRS
QgsPoint mapToLayerCoordinates (QgsMapLayer *theLayer, QgsPoint point)
 transform coordinates from output CRS to layer's CRS
QgsRectangle mapToLayerCoordinates (QgsMapLayer *theLayer, QgsRectangle rect)
 transform rect's coordinates from output CRS to layer's CRS
void setProjectionsEnabled (bool enabled)
 sets whether to use projections for this layer set
bool hasCrsTransformEnabled ()
 returns true if projections are enabled for this layer set
void setDestinationSrs (const QgsCoordinateReferenceSystem &srs)
 sets destination spatial reference system
const QgsCoordinateReferenceSystemdestinationSrs ()
 returns CRS ID of destination spatial reference system
void setOutputUnits (OutputUnits u)
OutputUnits outputUnits () const
QgsRectangle fullExtent ()
 returns current extent of layer set
QStringList & layerSet ()
 returns current layer set
void setLayerSet (const QStringList &layers)
 change current layer set
void updateFullExtent ()
 updates extent of the layer set
bool readXML (QDomNode &theNode)
 read settings
bool writeXML (QDomNode &theNode, QDomDocument &theDoc)
 write settings
QgsRenderContextrendererContext ()
 Accessor for render context.

Protected Member Functions

void adjustExtentToSize ()
 adjust extent to fit the pixmap size
bool splitLayersExtent (QgsMapLayer *layer, QgsRectangle &extent, QgsRectangle &r2)
 Convenience function to project an extent into the layer source CRS, but also split it into two extents if it crosses the +/- 180 degree line.

Protected Attributes

bool mDrawing
 indicates drawing in progress
double mMapUnitsPerPixel
 map units per pixel
double mScale
 Map scale at its current zool level.
QgsScaleCalculatormScaleCalculator
 scale calculator
QgsRectangle mExtent
 current extent to be drawn
bool mOverview
 indicates whether it's map image for overview
QSize mSize
bool mProjectionsEnabled
 detemines whether on the fly projection support is enabled
QgsCoordinateReferenceSystemmDestCRS
 destination spatial reference system of the projection
QStringList mLayerSet
 stores array of layers to be rendered (identified by string)
QgsRectangle mFullExtent
 full extent of the layer set
QgsDistanceAreamDistArea
 tool for measuring
QgsRenderContext mRenderContext
 Encapsulates context of rendering.
OutputUnits mOutputUnits
 Output units.


Member Enumeration Documentation

enum QgsMapRenderer::OutputUnits

Output units for pen width and point marker width/height.

Enumerator:
Millimeters 
Pixels 

Definition at line 48 of file qgsmaprenderer.h.


Constructor & Destructor Documentation

QgsMapRenderer::QgsMapRenderer (  ) 

constructor

Definition at line 38 of file qgsmaprenderer.cpp.

References QGis::Degrees, QgsCoordinateReferenceSystem::EpsgCrsId, GEO_EPSG_CRS_ID, mDestCRS, mDistArea, mDrawing, Millimeters, mOutputUnits, mOverview, mProjectionsEnabled, mScaleCalculator, mSize, and setMapUnits().

QgsMapRenderer::~QgsMapRenderer (  ) 

destructor

Definition at line 57 of file qgsmaprenderer.cpp.

References mDestCRS, mDistArea, and mScaleCalculator.


Member Function Documentation

void QgsMapRenderer::render ( QPainter *  painter  ) 

starts rendering

Definition at line 202 of file qgsmaprenderer.cpp.

References QgsLogger::debug(), QgsScaleCalculator::dpi(), drawError(), drawingProgress(), QgsMapLayer::drawLabels(), QgsMapLayer::extent(), hasCrsTransformEnabled(), QgsMapLayer::hasScaleBasedVisibility(), QgsMapLayerRegistry::instance(), QgsRectangle::isEmpty(), QgsMapLayerRegistry::mapLayer(), QgsRenderContext::mapToPixel(), QgsMapToPixel::mapUnitsPerPixel(), QgsMapLayer::maximumScale(), mDestCRS, mDrawing, mExtent, Millimeters, QgsMapLayer::minimumScale(), mLayerSet, mOutputUnits, mOverview, mRenderContext, mScale, mScaleCalculator, mSize, QgsMapLayer::name(), onDrawingProgress(), QgsRenderContext::painter(), QgsDebugMsg, QgsMapLayer::RasterLayer, QgsRenderContext::renderingStopped(), QgsRenderContext::setCoordinateTransform(), QgsRenderContext::setDrawEditingInformation(), QgsRenderContext::setExtent(), QgsRenderContext::setMapToPixel(), QgsMapToPixel::setMapUnitsPerPixel(), QgsRenderContext::setPainter(), QgsRenderContext::setRasterScaleFactor(), QgsRenderContext::setRendererScale(), QgsRenderContext::setRenderingStopped(), QgsRenderContext::setScaleFactor(), QgsMapToPixel::setYMaximum(), splitLayersExtent(), QgsMapLayer::srs(), QgsRectangle::toString(), QgsMapLayer::type(), and QgsLogger::warning().

Referenced by QgsComposerMap::draw(), QgsQuickPrint::printMap(), QgsMapOverviewCanvas::refresh(), QgsMapCanvasMap::render(), and QgsMapCanvas::saveAsImage().

bool QgsMapRenderer::setExtent ( const QgsRectangle extent  ) 

sets extent and checks whether suitable (returns false if not)

Definition at line 75 of file qgsmaprenderer.cpp.

References adjustExtentToSize(), extent(), QgsRectangle::height(), QgsRectangle::isEmpty(), mExtent, QgsRectangle::width(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsRectangle::yMaximum(), and QgsRectangle::yMinimum().

Referenced by QgsComposerMap::draw(), readXML(), QgsMapCanvas::setExtent(), and QgsMapOverviewCanvas::updateFullExtent().

QgsRectangle QgsMapRenderer::extent (  )  const

returns current extent

Definition at line 65 of file qgsmaprenderer.cpp.

References mExtent.

Referenced by QgsMapCanvas::extent(), QgsMapCanvas::keyPressEvent(), layerExtentToOutputExtent(), QgsMapCanvas::panActionEnd(), QgsComposerMap::QgsComposerMap(), setExtent(), splitLayersExtent(), updateFullExtent(), QgsMapCanvas::wheelEvent(), writeXML(), QgsMapCanvas::zoomByFactor(), and QgsMapCanvas::zoomWithCenter().

const QgsMapToPixel* QgsMapRenderer::coordinateTransform (  )  [inline]

Definition at line 70 of file qgsmaprenderer.h.

Referenced by QgsMapOverviewCanvas::drawExtentRect(), QgsMapCanvas::getCoordinateTransform(), QgsMapOverviewCanvas::mouseReleaseEvent(), and QgsSnapper::snapPoint().

double QgsMapRenderer::scale (  )  const [inline]

Definition at line 72 of file qgsmaprenderer.h.

Referenced by QgsComposerMap::draw(), QgsMapCanvas::scale(), and QgsMapCanvas::updateScale().

void QgsMapRenderer::setScale ( double  scale  )  [inline]

Sets scale for scale based visibility.

Normally, the scale is calculated automatically. This function is only used to force a preview scale (e.g. for print composer)

Definition at line 75 of file qgsmaprenderer.h.

Referenced by QgsComposerMap::draw().

double QgsMapRenderer::mapUnitsPerPixel (  )  const [inline]

Definition at line 76 of file qgsmaprenderer.h.

Referenced by QgsMapCanvas::mapUnitsPerPixel(), and QgsQuickPrint::renderPrintScaleBar().

int QgsMapRenderer::width (  )  const [inline]

Definition at line 78 of file qgsmaprenderer.h.

int QgsMapRenderer::height (  )  const [inline]

Definition at line 79 of file qgsmaprenderer.h.

void QgsMapRenderer::updateScale (  ) 

Recalculate the map scale.

Definition at line 70 of file qgsmaprenderer.cpp.

References QgsScaleCalculator::calculate(), mExtent, mScale, mScaleCalculator, and mSize.

Referenced by adjustExtentToSize(), and setMapUnits().

QgsDistanceArea* QgsMapRenderer::distanceArea (  )  [inline]

Return the measuring object.

Definition at line 85 of file qgsmaprenderer.h.

QGis::UnitType QgsMapRenderer::mapUnits (  )  const

Definition at line 440 of file qgsmaprenderer.cpp.

References QgsScaleCalculator::mapUnits(), and mScaleCalculator.

Referenced by QgsMapCanvas::mapUnits(), QgsQuickPrint::renderPrintScaleBar(), QgsComposerMap::scale(), and writeXML().

void QgsMapRenderer::setMapUnits ( QGis::UnitType  u  ) 

Definition at line 430 of file qgsmaprenderer.cpp.

References mapUnitsChanged(), mScaleCalculator, QgsScaleCalculator::setMapUnits(), and updateScale().

Referenced by QgsMapRenderer(), readXML(), and QgsMapCanvas::setMapUnits().

void QgsMapRenderer::enableOverviewMode ( bool  isOverview = true  )  [inline]

sets whether map image will be for overview

Definition at line 90 of file qgsmaprenderer.h.

Referenced by QgsMapOverviewCanvas::QgsMapOverviewCanvas().

void QgsMapRenderer::setOutputSize ( QSize  size,
int  dpi 
)

Definition at line 115 of file qgsmaprenderer.cpp.

References adjustExtentToSize(), mScaleCalculator, mSize, and QgsScaleCalculator::setDpi().

Referenced by QgsComposerMap::draw(), QgsQuickPrint::printMap(), QgsMapCanvasMap::resize(), and QgsMapOverviewCanvas::resizeEvent().

int QgsMapRenderer::outputDpi (  ) 

accessor for output dpi

Definition at line 121 of file qgsmaprenderer.cpp.

References QgsScaleCalculator::dpi(), and mScaleCalculator.

Referenced by QgsQuickPrint::printMap().

QSize QgsMapRenderer::outputSize (  ) 

accessor for output size

Definition at line 125 of file qgsmaprenderer.cpp.

References mSize.

Referenced by QgsQuickPrint::printMap().

QgsRectangle QgsMapRenderer::layerExtentToOutputExtent ( QgsMapLayer theLayer,
QgsRectangle  extent 
)

transform extent in layer's CRS to extent in output CRS

Definition at line 552 of file qgsmaprenderer.cpp.

References extent(), hasCrsTransformEnabled(), mDestCRS, QgsMapLayer::srs(), and QgsException::what().

Referenced by updateFullExtent(), and QgsMapCanvas::zoomToSelected().

QgsPoint QgsMapRenderer::layerToMapCoordinates ( QgsMapLayer theLayer,
QgsPoint  point 
)

transform coordinates from layer's CRS to output CRS

Definition at line 574 of file qgsmaprenderer.cpp.

References QgsCoordinateTransform::ForwardTransform, hasCrsTransformEnabled(), mDestCRS, QgsMapLayer::srs(), and QgsException::what().

Referenced by QgsRubberBand::setToGeometry(), QgsSnapper::snapPoint(), and QgsMapTool::toMapCoordinates().

QgsPoint QgsMapRenderer::mapToLayerCoordinates ( QgsMapLayer theLayer,
QgsPoint  point 
)

transform coordinates from output CRS to layer's CRS

Definition at line 595 of file qgsmaprenderer.cpp.

References hasCrsTransformEnabled(), mDestCRS, QgsCoordinateTransform::ReverseTransform, QgsMapLayer::srs(), and QgsException::what().

Referenced by QgsSnapper::snapPoint(), and QgsMapTool::toLayerCoordinates().

QgsRectangle QgsMapRenderer::mapToLayerCoordinates ( QgsMapLayer theLayer,
QgsRectangle  rect 
)

transform rect's coordinates from output CRS to layer's CRS

Definition at line 617 of file qgsmaprenderer.cpp.

References hasCrsTransformEnabled(), mDestCRS, QgsCoordinateTransform::ReverseTransform, QgsMapLayer::srs(), and QgsException::what().

void QgsMapRenderer::setProjectionsEnabled ( bool  enabled  ) 

sets whether to use projections for this layer set

Definition at line 454 of file qgsmaprenderer.cpp.

References hasCrsTransformEnabled(), mDistArea, mProjectionsEnabled, QgsDebugMsg, QgsDistanceArea::setProjectionsEnabled(), and updateFullExtent().

Referenced by QgsComposerMap::draw(), QgsMapOverviewCanvas::hasCrsTransformEnabled(), and readXML().

bool QgsMapRenderer::hasCrsTransformEnabled (  ) 

returns true if projections are enabled for this layer set

Definition at line 466 of file qgsmaprenderer.cpp.

References mProjectionsEnabled.

Referenced by QgsComposerMap::draw(), QgsMapCanvas::hasCrsTransformEnabled(), layerExtentToOutputExtent(), layerToMapCoordinates(), mapToLayerCoordinates(), render(), setProjectionsEnabled(), splitLayersExtent(), and writeXML().

void QgsMapRenderer::setDestinationSrs ( const QgsCoordinateReferenceSystem srs  ) 

sets destination spatial reference system

Definition at line 471 of file qgsmaprenderer.cpp.

References destinationSrsChanged(), mDestCRS, mDistArea, QgsDebugMsg, QgsDistanceArea::setSourceCrs(), QgsCoordinateReferenceSystem::srsid(), QgsCoordinateReferenceSystem::toProj4(), and updateFullExtent().

Referenced by QgsMapOverviewCanvas::destinationSrsChanged(), QgsComposerMap::draw(), and readXML().

const QgsCoordinateReferenceSystem & QgsMapRenderer::destinationSrs (  ) 

returns CRS ID of destination spatial reference system

Definition at line 485 of file qgsmaprenderer.cpp.

References mDestCRS, QgsDebugMsg, QgsCoordinateReferenceSystem::srsid(), and QgsCoordinateReferenceSystem::toProj4().

Referenced by QgsMapOverviewCanvas::destinationSrsChanged(), QgsComposerMap::draw(), and writeXML().

void QgsMapRenderer::setOutputUnits ( OutputUnits  u  )  [inline]

Definition at line 123 of file qgsmaprenderer.h.

OutputUnits QgsMapRenderer::outputUnits (  )  const [inline]

Definition at line 125 of file qgsmaprenderer.h.

QgsRectangle QgsMapRenderer::fullExtent (  ) 

returns current extent of layer set

Definition at line 698 of file qgsmaprenderer.cpp.

References mFullExtent, and updateFullExtent().

Referenced by QgsMapCanvas::fullExtent().

QStringList & QgsMapRenderer::layerSet (  ) 

returns current layer set

Definition at line 710 of file qgsmaprenderer.cpp.

References mLayerSet.

Referenced by QgsComposerMap::containsWMSLayer(), QgsComposerMap::draw(), QgsMapCanvas::layer(), QgsMapCanvas::layerCount(), QgsMapOverviewCanvas::layerSet(), QgsComposerLegend::paintAndDetermineSize(), QgsQuickPrint::printMap(), QgsQuickPrint::renderPrintScaleBar(), QgsQuickPrint::scalePointSymbols(), QgsQuickPrint::scaleTextLabels(), and QgsMapCanvas::setLayerSet().

void QgsMapRenderer::setLayerSet ( const QStringList &  layers  ) 

change current layer set

Definition at line 704 of file qgsmaprenderer.cpp.

References mLayerSet, and updateFullExtent().

Referenced by QgsComposerMap::draw(), QgsMapOverviewCanvas::setLayerSet(), and QgsMapCanvas::setLayerSet().

void QgsMapRenderer::updateFullExtent (  ) 

updates extent of the layer set

Definition at line 636 of file qgsmaprenderer.cpp.

References extent(), QgsRectangle::height(), QgsMapLayerRegistry::instance(), layerExtentToOutputExtent(), QgsMapLayerRegistry::mapLayer(), mFullExtent, mLayerSet, QgsDebugMsg, QgsRectangle::set(), QgsRectangle::setMinimal(), QgsRectangle::toString(), QgsRectangle::unionRect(), QgsLogger::warning(), QgsRectangle::width(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsRectangle::yMaximum(), and QgsRectangle::yMinimum().

Referenced by fullExtent(), setDestinationSrs(), setLayerSet(), setProjectionsEnabled(), and QgsMapCanvas::updateFullExtent().

bool QgsMapRenderer::readXML ( QDomNode &  theNode  ) 

read settings

Definition at line 715 of file qgsmaprenderer.cpp.

References QGis::Degrees, QGis::Feet, QGis::Meters, QgsDebugMsg, setDestinationSrs(), setExtent(), setMapUnits(), setProjectionsEnabled(), QgsRectangle::setXMaximum(), QgsRectangle::setXMinimum(), QgsRectangle::setYMaximum(), QgsRectangle::setYMinimum(), and QGis::UnknownUnit.

Referenced by QgsMapCanvas::readProject().

bool QgsMapRenderer::writeXML ( QDomNode &  theNode,
QDomDocument &  theDoc 
)

write settings

Definition at line 787 of file qgsmaprenderer.cpp.

References QGis::Degrees, destinationSrs(), extent(), QGis::Feet, hasCrsTransformEnabled(), mapUnits(), QGis::Meters, QGis::UnknownUnit, QgsCoordinateReferenceSystem::writeXML(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsRectangle::yMaximum(), and QgsRectangle::yMinimum().

Referenced by QgsMapCanvas::writeProject().

QgsRenderContext* QgsMapRenderer::rendererContext (  )  [inline]

Accessor for render context.

Definition at line 146 of file qgsmaprenderer.h.

Referenced by QgsComposerMap::draw(), and QgsMapCanvas::setRenderFlag().

void QgsMapRenderer::drawingProgress ( int  current,
int  total 
) [signal]

Referenced by render().

void QgsMapRenderer::hasCrsTransformEnabled ( bool  flag  )  [signal]

void QgsMapRenderer::destinationSrsChanged (  )  [signal]

Referenced by setDestinationSrs().

void QgsMapRenderer::updateMap (  )  [signal]

Referenced by onDrawingProgress().

void QgsMapRenderer::mapUnitsChanged (  )  [signal]

Referenced by setMapUnits().

void QgsMapRenderer::drawError ( QgsMapLayer  )  [signal]

emitted when layer's draw() returned FALSE

Referenced by render().

void QgsMapRenderer::onDrawingProgress ( int  current,
int  total 
) [slot]

called by signal from layer current being drawn

Definition at line 445 of file qgsmaprenderer.cpp.

References updateMap().

Referenced by render().

void QgsMapRenderer::adjustExtentToSize (  )  [protected]

adjust extent to fit the pixmap size

Definition at line 130 of file qgsmaprenderer.cpp.

References QgsLogger::debug(), QgsRectangle::height(), mExtent, mMapUnitsPerPixel, mRenderContext, mScale, mSize, QgsRenderContext::setExtent(), QgsRenderContext::setMapToPixel(), QgsMapToPixel::setParameters(), QgsRectangle::setXMaximum(), QgsRectangle::setXMinimum(), QgsRectangle::setYMaximum(), QgsRectangle::setYMinimum(), QgsRectangle::toString(), updateScale(), QgsRectangle::width(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsRectangle::yMaximum(), and QgsRectangle::yMinimum().

Referenced by setExtent(), and setOutputSize().

bool QgsMapRenderer::splitLayersExtent ( QgsMapLayer layer,
QgsRectangle extent,
QgsRectangle r2 
) [protected]

Convenience function to project an extent into the layer source CRS, but also split it into two extents if it crosses the +/- 180 degree line.

Modifies the given extent to be in the source CRS coordinates, and if it was split, returns true, and also sets the contents of the r2 parameter

Definition at line 494 of file qgsmaprenderer.cpp.

References extent(), hasCrsTransformEnabled(), mDestCRS, QgsCoordinateTransform::ReverseTransform, QgsRectangle::set(), QgsMapLayer::srs(), QgsLogger::warning(), QgsPoint::x(), QgsRectangle::xMaximum(), QgsRectangle::xMinimum(), QgsPoint::y(), QgsRectangle::yMaximum(), and QgsRectangle::yMinimum().

Referenced by render().


Member Data Documentation

bool QgsMapRenderer::mDrawing [protected]

indicates drawing in progress

Definition at line 184 of file qgsmaprenderer.h.

Referenced by QgsMapRenderer(), and render().

double QgsMapRenderer::mMapUnitsPerPixel [protected]

map units per pixel

Definition at line 187 of file qgsmaprenderer.h.

Referenced by adjustExtentToSize().

double QgsMapRenderer::mScale [protected]

Map scale at its current zool level.

Definition at line 190 of file qgsmaprenderer.h.

Referenced by adjustExtentToSize(), render(), and updateScale().

QgsScaleCalculator* QgsMapRenderer::mScaleCalculator [protected]

scale calculator

Definition at line 193 of file qgsmaprenderer.h.

Referenced by mapUnits(), outputDpi(), QgsMapRenderer(), render(), setMapUnits(), setOutputSize(), updateScale(), and ~QgsMapRenderer().

QgsRectangle QgsMapRenderer::mExtent [protected]

current extent to be drawn

Definition at line 196 of file qgsmaprenderer.h.

Referenced by adjustExtentToSize(), extent(), render(), setExtent(), and updateScale().

bool QgsMapRenderer::mOverview [protected]

indicates whether it's map image for overview

Definition at line 199 of file qgsmaprenderer.h.

Referenced by QgsMapRenderer(), and render().

QSize QgsMapRenderer::mSize [protected]

Definition at line 201 of file qgsmaprenderer.h.

Referenced by adjustExtentToSize(), outputSize(), QgsMapRenderer(), render(), setOutputSize(), and updateScale().

bool QgsMapRenderer::mProjectionsEnabled [protected]

detemines whether on the fly projection support is enabled

Definition at line 204 of file qgsmaprenderer.h.

Referenced by hasCrsTransformEnabled(), QgsMapRenderer(), and setProjectionsEnabled().

QgsCoordinateReferenceSystem* QgsMapRenderer::mDestCRS [protected]

destination spatial reference system of the projection

Definition at line 207 of file qgsmaprenderer.h.

Referenced by destinationSrs(), layerExtentToOutputExtent(), layerToMapCoordinates(), mapToLayerCoordinates(), QgsMapRenderer(), render(), setDestinationSrs(), splitLayersExtent(), and ~QgsMapRenderer().

QStringList QgsMapRenderer::mLayerSet [protected]

stores array of layers to be rendered (identified by string)

Definition at line 210 of file qgsmaprenderer.h.

Referenced by layerSet(), render(), setLayerSet(), and updateFullExtent().

QgsRectangle QgsMapRenderer::mFullExtent [protected]

full extent of the layer set

Definition at line 213 of file qgsmaprenderer.h.

Referenced by fullExtent(), and updateFullExtent().

QgsDistanceArea* QgsMapRenderer::mDistArea [protected]

tool for measuring

Definition at line 216 of file qgsmaprenderer.h.

Referenced by QgsMapRenderer(), setDestinationSrs(), setProjectionsEnabled(), and ~QgsMapRenderer().

QgsRenderContext QgsMapRenderer::mRenderContext [protected]

Encapsulates context of rendering.

Definition at line 219 of file qgsmaprenderer.h.

Referenced by adjustExtentToSize(), and render().

OutputUnits QgsMapRenderer::mOutputUnits [protected]

Output units.

Definition at line 222 of file qgsmaprenderer.h.

Referenced by QgsMapRenderer(), and render().


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 16:51:21 2009 for Quantum GIS API Documentation by  doxygen 1.5.1