Quantum GIS API Documentation  1.7.4
src/core/qgsrendercontext.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                               qgsrendercontext.cpp
00003                               --------------------
00004   begin                : March 16, 2008
00005   copyright            : (C) 2008 by Marco Hugentobler
00006   email                : marco dot hugentobler at karto dot baug dot ethz dot ch
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 
00019 #include "qgsrendercontext.h"
00020 
00021 QgsRenderContext::QgsRenderContext()
00022     : mPainter( 0 ),
00023     mCoordTransform( 0 ),
00024     mDrawEditingInformation( true ),
00025     mForceVectorOutput( false ),
00026     mRenderingStopped( false ),
00027     mScaleFactor( 1.0 ),
00028     mRasterScaleFactor( 1.0 ),
00029     mLabelingEngine( NULL )
00030 {
00031 
00032 }
00033 
00034 QgsRenderContext::~QgsRenderContext()
00035 {
00036   delete mCoordTransform;
00037 }
00038 
00039 void QgsRenderContext::setCoordinateTransform( QgsCoordinateTransform* t )
00040 {
00041   delete mCoordTransform;
00042   mCoordTransform = t;
00043 }
00044 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines