QgsFeatureRendererV2* QgsSingleSymbolRendererV2::clone() { QgsSingleSymbolRendererV2* r = new QgsSingleSymbolRendererV2( mSymbol->clone() ); r->setUsingSymbolLevels( usingSymbolLevels() ); r->setRotationField( rotationField() ); r->setSizeScaleField( sizeScaleField() ); r->setScaleMethod( scaleMethod() ); return r; }
QgsFeatureRendererV2* QgsCategorizedSymbolRendererV2::clone() { QgsCategorizedSymbolRendererV2* r = new QgsCategorizedSymbolRendererV2( mAttrName, mCategories ); if ( mSourceSymbol ) r->setSourceSymbol( mSourceSymbol->clone() ); if ( mSourceColorRamp ) r->setSourceColorRamp( mSourceColorRamp->clone() ); r->setUsingSymbolLevels( usingSymbolLevels() ); r->setRotationField( rotationField() ); r->setSizeScaleField( sizeScaleField() ); return r; }
QgsFeatureRendererV2* QgsGraduatedSymbolRendererV2::clone() { QgsGraduatedSymbolRendererV2* r = new QgsGraduatedSymbolRendererV2( mAttrName, mRanges ); r->setMode( mMode ); if ( mSourceSymbol ) r->setSourceSymbol( mSourceSymbol->clone() ); if ( mSourceColorRamp ) r->setSourceColorRamp( mSourceColorRamp->clone() ); r->setUsingSymbolLevels( usingSymbolLevels() ); r->setRotationField( rotationField() ); r->setSizeScaleField( sizeScaleField() ); r->setScaleMethod( scaleMethod() ); return r; }
QgsFeatureRendererV2* QgsCategorizedSymbolRendererV2::clone() const { QgsCategorizedSymbolRendererV2* r = new QgsCategorizedSymbolRendererV2( mAttrName, mCategories ); if ( mSourceSymbol.data() ) r->setSourceSymbol( mSourceSymbol->clone() ); if ( mSourceColorRamp.data() ) { r->setSourceColorRamp( mSourceColorRamp->clone() ); r->setInvertedColorRamp( mInvertedColorRamp ); } r->setUsingSymbolLevels( usingSymbolLevels() ); r->setSizeScaleField( sizeScaleField() ); copyPaintEffect( r ); return r; }
QgsFeatureRendererV2* QgsGraduatedSymbolRendererV2::clone() const { QgsGraduatedSymbolRendererV2* r = new QgsGraduatedSymbolRendererV2( mAttrName, mRanges ); r->setMode( mMode ); if ( mSourceSymbol.data() ) r->setSourceSymbol( mSourceSymbol->clone() ); if ( mSourceColorRamp.data() ) { r->setSourceColorRamp( mSourceColorRamp->clone() ); r->setInvertedColorRamp( mInvertedColorRamp ); } r->setUsingSymbolLevels( usingSymbolLevels() ); r->setSizeScaleField( sizeScaleField() ); r->setLabelFormat( labelFormat() ); r->setGraduatedMethod( graduatedMethod() ); copyPaintEffect( r ); return r; }