mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Do not force vector output by default (use only in composer map), enable setting of the flag
git-svn-id: http://svn.osgeo.org/qgis/trunk@13418 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c9d34fd8c7
commit
1981f60445
@ -47,6 +47,8 @@ class QgsRenderContext
|
||||
void setRasterScaleFactor(double factor);
|
||||
void setRendererScale( double scale );
|
||||
void setPainter(QPainter* p);
|
||||
//! Added in QGIS v1.5
|
||||
void setForceVectorOutput( bool force );
|
||||
//! Added in QGIS v1.4
|
||||
void setLabelingEngine(QgsLabelingEngineInterface* iface);
|
||||
};
|
||||
|
@ -142,6 +142,9 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
|
||||
theRendererContext->setRenderingStopped( false );
|
||||
}
|
||||
|
||||
// force vector output (no caching of marker images etc.)
|
||||
theRendererContext->setForceVectorOutput( true );
|
||||
|
||||
//force composer map scale for scale dependent visibility
|
||||
double bk_scale = theMapRenderer.scale();
|
||||
theMapRenderer.setScale( scale() );
|
||||
|
@ -22,7 +22,7 @@ QgsRenderContext::QgsRenderContext()
|
||||
: mPainter( 0 ),
|
||||
mCoordTransform( 0 ),
|
||||
mDrawEditingInformation( false ),
|
||||
mForceVectorOutput( true ),
|
||||
mForceVectorOutput( false ),
|
||||
mRenderingStopped( false ),
|
||||
mScaleFactor( 1.0 ),
|
||||
mRasterScaleFactor( 1.0 ),
|
||||
|
@ -75,6 +75,8 @@ class CORE_EXPORT QgsRenderContext
|
||||
void setRasterScaleFactor( double factor ) {mRasterScaleFactor = factor;}
|
||||
void setRendererScale( double scale ) {mRendererScale = scale;}
|
||||
void setPainter( QPainter* p ) {mPainter = p;}
|
||||
//! Added in QGIS v1.5
|
||||
void setForceVectorOutput( bool force ) {mForceVectorOutput = force;}
|
||||
//! Added in QGIS v1.4
|
||||
void setLabelingEngine( QgsLabelingEngineInterface* iface ) { mLabelingEngine = iface; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user