[GRASS-dev] Thank you and a request on g.gui.mapswipe

Vaclav and Anna,

thank yo so muuch for the advancments in g.gui.mapswipes. Really, very useful.

There is one issue in mirror mode: the cross pointer (othen than the one
set/used by the Operating System) might be in some cases too difficult to
identify. This leads in trying to look for the pointer instead of focusing in
comparing differences between mirrored images.

A screenshot here:
<http://nikosalexandris.net/owncloud/public.php?service=files&t=644f7a4dabe6e48b4696ae3b67a25cb3&gt;\.

In the left part, the pinky one is set by the OS. On the right one, it's hard
to trace the thin cross-pointer. Can at least an implementation of changing
the color be made? Or, any other
smart solution...

Thanks again :slight_smile:

Nikos

Hi Nikos.

···

On Wed, Dec 4, 2013 at 2:11 AM, Nikos Alexandris <nik@nikosalexandris.net> wrote:

Vaclav and Anna,

thank yo so muuch for the advancments in g.gui.mapswipes. Really, very useful.

I am glad you find it useful.

There is one issue in mirror mode: the cross pointer (othen than the one
set/used by the Operating System) might be in some cases too difficult to
identify. This leads in trying to look for the pointer instead of focusing in
comparing differences between mirrored images.

A screenshot here:
<http://nikosalexandris.net/owncloud/public.php?service=files&t=644f7a4dabe6e48b4696ae3b67a25cb3>.

In the left part, the pinky one is set by the OS. On the right one, it’s hard
to trace the thin cross-pointer. Can at least an implementation of changing
the color be made? Or, any other
smart solution…

In the picture I cannot really see it, it’s just not good quality screenshot or the cursor disappears?

I will try to add the settings of the cursor width and color when I have more time, the only problem is to create the gui for this. In the meantime, if you really need to change it, you can always edit the line which draws the cursor:

Index: gui/wxpython/mapswipe/mapwindow.py

— gui/wxpython/mapswipe/mapwindow.py (revision 58342)
+++ gui/wxpython/mapswipe/mapwindow.py (working copy)
@@ -184,7 +184,7 @@
def DrawMouseCross(self, coords):
“”“!Draw moving cross.”“”
self.pdcTmp.ClearId(self.lineid)

  • self.lineid = self.DrawCross(pdc = self.pdcTmp, coords = coords, size = 10, pen = wx.BLACK_PEN)
  • self.lineid = self.DrawCross(pdc = self.pdcTmp, coords = coords, size = 10, pen = wx.Pen(wx.Colour(250, 250, 250), 3))

So tuple (250, 250, 250) is the color as R, G, B and the 3 is the desired width (currently it uses width 1).

You can then compile it with ‘make’ in the gui/wxpython directory.

Best,
Anna

Anna Petrášová wrote:
..

In the picture I cannot really see it, it's just not good quality
screenshot or the cursor disappears?

The cursor is really only easy to identify in white or very light-grey areas.
Indeed, it kinda "disappears".

Thanks for the handcrafting details :slight_smile:

Nikos

Anna Petrášová wrote:

-- cut ---

- self.lineid = self.DrawCross(pdc = self.pdcTmp, coords = coords,
size = 10, pen = wx.BLACK_PEN)

-- cut ---

Anna, is it possible to draw a circle? Is this DrawCross pre-defined or is it
handmade? If you don't have the time to reply to this I'll look upon it at
some point later... !? :slight_smile:

Thanks, Nikos

On Wed, Dec 4, 2013 at 9:07 AM, Nikos Alexandris <nik@nikosalexandris.net>wrote:

Anna Petrášová wrote:

-- cut ---
> - self.lineid = self.DrawCross(pdc = self.pdcTmp, coords = coords,
> size = 10, pen = wx.BLACK_PEN)
-- cut ---

Anna, is it possible to draw a circle? Is this DrawCross pre-defined or is
it
handmade? If you don't have the time to reply to this I'll look upon it at
some point later... !? :slight_smile:

It's handmade, defined in mapwin/buffered. I guess drawing circle would be
possible but I am not sure if I would advise you to try it and dig into the
code ... But there is also DrawRectangle method so you can try this one.

Anna

Thanks, Nikos

Hi Nikos,

···

On Wed, Dec 4, 2013 at 2:11 AM, Nikos Alexandris <nik@nikosalexandris.net> wrote:

Vaclav and Anna,

thank yo so muuch for the advancments in g.gui.mapswipes. Really, very useful.

There is one issue in mirror mode: the cross pointer (othen than the one
set/used by the Operating System) might be in some cases too difficult to
identify. This leads in trying to look for the pointer instead of focusing in
comparing differences between mirrored images.

A screenshot here:
<http://nikosalexandris.net/owncloud/public.php?service=files&t=644f7a4dabe6e48b4696ae3b67a25cb3>.

In the left part, the pinky one is set by the OS. On the right one, it’s hard
to trace the thin cross-pointer. Can at least an implementation of changing
the color be made? Or, any other
smart solution…

Try r58534. When in Map Swipe, go to settings in toolbar and you can change the cursor there. Enjoy :slight_smile:

Anna

Thanks again :slight_smile:

Nikos

On Thursday 26 of December 2013 21:39:13 Anna Petrášová wrote:

Try r58534. When in Map Swipe, go to settings in toolbar and you can change
the cursor there. Enjoy :slight_smile:

Hmmm... I am not satisfied at all! The circle is pixelated :-!

...
..
.

Ha-Ha! Just kidding of course... :smiley: Thank you so much. It makes life so much
easier now :slight_smile:

Also, as a general comment: I don't know what has been changed in past months
(summer and on), but the GUI seems to be really faster than before. I
enjoy(ed) really using MapSwipe and g.gui.gcp! What have you folks done. I
don't know if it's my new machine, but I think there have been significant
changes.

Kudos!!

Nikos

On Mon, Dec 30, 2013 at 9:03 AM, Nikos Alexandris
<nik@nikosalexandris.net>wrote:

On Thursday 26 of December 2013 21:39:13 Anna Petrášová wrote:
> Try r58534. When in Map Swipe, go to settings in toolbar and you can
change
> the cursor there. Enjoy :slight_smile:

Hmmm... I am not satisfied at all! The circle is pixelated :-!

...
..
.

Ha-Ha! Just kidding of course... :smiley: Thank you so much. It makes life so
much
easier now :slight_smile:

Also, as a general comment: I don't know what has been changed in past
months
(summer and on), but the GUI seems to be really faster than before. I
enjoy(ed) really using MapSwipe and g.gui.gcp! What have you folks done. I
don't know if it's my new machine, but I think there have been significant
changes.

Hm, nothing important really changed in wxGUI rendering so it must be your
new machine. Maybe you have SSD disk, that might speed it up?

Anna

Kudos!!

Nikos