[GRASS5] antialiased vector layers in gis.m

Is it possible to use something like "pnmalias" in g.pnmcomp to
anti-alias vector, text, and/or d.graph layers before/during the merge?

also in gis.m:

v.label does a really funky resize dance if launched from the
display labels controls (both PS and normal flavours).

can PS labels have transparency?

upon redraw with PS labels added but not populated you get:

error reading "file10": illegal operation on a directory
error reading "file10": illegal operation on a directory
    while executing
"gets $labelfile in"
    (procedure "GmCLabels::display" line 23)
    invoked from within
"GmCLabels::display $node"
    ("clabels" arm line 2)
    invoked from within
"switch $type {
    clabels {
      GmCLabels::display $node
    }
    cgrid {
      GmcGridl::display $node
    }
    cframe {
      GmCframe::display $node
    }
    cbarsc..."
    (procedure "GmTree::display_cvnode" line 6)
    invoked from within
"GmTree::display_cvnode $n"
    (procedure "GmTree::cvdisplay" line 8)
    invoked from within
"GmTree::cvdisplay "root""
    (procedure "MapCanvas::composite" line 29)
    invoked from within
"MapCanvas::composite 1"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 $cmd"
    (procedure "Button::_release" line 18)
    invoked from within
"Button::_release .mapcan(1).mf.topf.tb0.bbox1.b0"
    (command bound to event)

Hamish

Hamish,

Is it possible to use something like "pnmalias" in g.pnmcomp to
anti-alias vector, text, and/or d.graph layers before/during the merge?

This can't be done here, as the incoming image is already aliased.
Antialiasing would have to go in the display drivers and it would need a way
to be controlled (turned on and off) on at least a per-module basis.

can PS labels have transparency?

My understanding is that this is being done on the tk canvas. None of tk
supports transparency beyond completely transparent/opaque.

--Cedric

AFAIK, there is no way to set a variable transparency for TclTk canvas text.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Cedric Shock <cedricgrass@shockfamily.net>
Date: Sat, 22 Apr 2006 12:48:27 -0700
To: <grass5@grass.itc.it>
Cc: Hamish <hamish_nospam@yahoo.com>, Michael Barton <michael.barton@asu.edu>
Subject: Re: [GRASS5] antialiased vector layers in gis.m

Hamish,

Is it possible to use something like "pnmalias" in g.pnmcomp to
anti-alias vector, text, and/or d.graph layers before/during the merge?

This can't be done here, as the incoming image is already aliased.
Antialiasing would have to go in the display drivers and it would need a way
to be controlled (turned on and off) on at least a per-module basis.

can PS labels have transparency?

My understanding is that this is being done on the tk canvas. None of tk
supports transparency beyond completely transparent/opaque.

--Cedric

also in gis.m:

v.label does a really funky resize dance if launched from the
display labels controls (both PS and normal flavours).

This seems to be happening in several modules now. Also, the options panels
are slow to come up. Has something changed in an underlying module for both
somewhere???

Cedrick, do you have any ideas??

can PS labels have transparency?

upon redraw with PS labels added but not populated you get:

error reading "file10": illegal operation on a directory
error reading "file10": illegal operation on a directory
    while executing
"gets $labelfile in"

...snip snip

I'll see if I can add some error checking for people who forget to fill in
the fields :wink:

Michael

Hamish wrote:

Is it possible to use something like "pnmalias" in g.pnmcomp to
anti-alias vector, text, and/or d.graph layers before/during the merge?

Right now, that's unnecessary functionality. If output quality is
important, it would be better to generate PostScript.

can PS labels have transparency?

You can get a translucent effect using a halftone fill.

--
Glynn Clements <glynn@gclements.plus.com>

Michael Barton wrote:

AFAIK, there is no way to set a variable transparency for TclTk canvas text.

You can use a stipple (halftone) mask; whether or not that's
acceptable depends upon the display resolution.

--
Glynn Clements <glynn@gclements.plus.com>