Hi,
Solved it myself. Finally I inherited from the QgsXXXRendererV2 and
overrided the startRender() method in order to modify the renderContext to
meet my project needs. This is not a perfect solution, but it works for me
as the layers I want to render are quite small and it does not become in an
overhead.
Thanks anyway.
Cheers.
2014-02-24 15:35 GMT+01:00 Jordi Torres :
> Hi all,
>
> I'm trying to render marker symbols that are bigger than the feature
> geometry bounding box. When the feature is not visible (because it is out
> of the current extent) the symbol isn't rendered.
>
> I think the code in the draw method of qgsvectorlayer.cpp is:
>
>
> QgsFeatureIterator fit = getFeatures( QgsFeatureRequest()
>
> .setFilterRect(
> rendererContext.extent() )
>
> .setSubsetOfAttributes( attributes )
> );
>
>
> Ok, this is a expected behaviour, but is there anyway (using C++ API) to
> change this behaviour without extending QgsVectorLayer? I suppose that if
> I could pass the renderContext with the whole layer extent it would do the
> trick.
>
>
> Any suggestions or ideas?
>
>
> Thanks in advance.
>
>
>
>
> --
> Jordi Torres
>
>
>
--
Jordi Torres
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer