<div dir="ltr">Hi, <div><br></div><div>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. </div>
<div><br></div><div>Thanks anyway. </div><div><br></div><div>Cheers. </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-24 15:35 GMT+01:00 Jordi Torres <span dir="ltr"><<a href="mailto:jtorresfabra@gmail.com" target="_blank">jtorresfabra@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all, </div><div><br></div><div>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.</div>

<div><br></div><div>I think the code in the draw method of qgsvectorlayer.cpp is:  </div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(128,0,128)">QgsFeatureIterator</span><span style="color:rgb(192,192,192)"> </span><span style>fit</span><span style="color:rgb(192,192,192)"> </span><span style>=</span><span style="color:rgb(192,192,192)"> </span><span style>getFeatures</span><span style>(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QgsFeatureRequest</span><span style>()</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">                                        </span><span style>.</span><span style>setFilterRect</span><span style>(</span><span style="color:rgb(192,192,192)"> </span><span style>rendererContext</span><span style>.</span><span style>extent</span><span style>()</span><span style="color:rgb(192,192,192)"> </span><span style>)</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">                                        </span><span style>.</span><span style>setSubsetOfAttributes</span><span style>(</span><span style="color:rgb(192,192,192)"> </span><span style>attributes</span><span style="color:rgb(192,192,192)"> </span><span style>)</span><span style="color:rgb(192,192,192)"> </span><span style>);</span></pre>

</div><div><br></div><div>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. </div>

<div><br></div><div><br></div><div>Any suggestions or ideas?</div><div><br></div><div><br></div><div>Thanks in advance. </div><span class="HOEnZb"><font color="#888888"><div> </div><div><br></div><br clear="all"><div><br>
</div>-- <br><div dir="ltr">Jordi Torres<br>
<br><br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Jordi Torres<br><br><br></div>
</div>