<div dir="ltr">Hi,<div><br></div><div>thanks for reply,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 7:59 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Anna Petrášová wrote:<br>
<br>
> can anyone explain the difference between grass64 and 7 in clipping vector<br>
> data for display? I attached 2 pictures created with d.mon png and cairo<br>
> driver<br>
<br>
</span>Which is png and which is cairo?<br></blockquote><div><br></div><div>the map70.png is cairo, the other one is png.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> (to avoid influences from GUI) and you can see that in 64 the lines<br>
> are clipped to match computational region while in grass7 it seems to<br>
> display all vector features which have at least part in the region. Is this<br>
> bug or feature? I couldn't find any discussion on this topic...<br>
<br>
</span>In 7.0, there are two distinct sets of clipping operations.<br>
<br>
D_set_clip_mode, D_set_clip and D_clip_to_map control clipping which<br>
is performed within the display library. The default is no clipping.<br>
<br>
Using this functionality for graphical clipping is problematic if you<br>
use thick lines, as clipped lines will be capped at the point where<br>
they're clipped. It would also affect the dash offset for dashed lines<br>
(although that isn't implemented yet).<br></blockquote><div><br></div><div>Is there any way to set different default mode without modifying the code? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Additionally, the driver's Set_window function establishes a clip<br>
region (e.g. via cairo_clip() for the cairo driver). This defaults to<br>
the entire "screen", but can be overridden by setting the environment<br>
variable GRASS_FRAME.<br>
<br>
Arguably, the code which sets up the coordinate system so that the<br>
current region just fits the display (D_setup) should also set the<br>
clip region to fit the current region.<br>
<br>
However, this is complicated slightly be the fact that there's no<br>
distinction between the display "frame" (either the screen or the<br>
frame set by GRASS_FRAME) and the current clip region, so setting a<br>
clip region would lose the only record of the frame.<br></blockquote><div><br></div><div>I still don't understand if the current behavior in 7 is intended and if so, why no vector clipping is better?</div><div><br></div><div>Anna</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div></div></div>