[GRASS5] drawing icons

Hallo developers,
is there quick manual, which would tell me, how to draw icons on the monitor? I
would like to add these in d.legend. I looked at the code of d.vect, but I can
not say, that I would understand it much. Is there some better place, where to
look?

Thank you

Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/

On Mon, May 23, 2005 19:56, Jachym Cepicky said:

Hallo developers,
is there quick manual, which would tell me, how to draw icons on the monitor?
I
would like to add these in d.legend. I looked at the code of d.vect, but I can
not say, that I would understand it much. Is there some better place, where to
look?

Check here:
http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassProgrammingHowto#Display_Symbols

Moritz

is there quick manual, which would tell me, how to draw icons on the
monitor? I would like to add these in d.legend. I looked at the code
of d.vect, but I can not say, that I would understand it much. Is
there some better place, where to look?

see lib/symbol/README

Otherwise d.vect source code is the best place to look.

display/d.vect/plot1.c

starting with line 81:
/* Note: this should go to some library function */

also main.c, lib/symbol/*.c, and include/symbol.h

It would be really great to make a D_symbol() and D_polygon() functions
in lib/display/ and then add to d.graph. (as a similar tool to ps.map's
point command)

Hamish

That is nearly the same, what my plot_icon does.
As soon as I get it work, I could
rewrite it a bit, so it can be copyed to lib/symbol...

But I can not get it work :frowning:

I am quite busy currently, so still haven't gotten a chance to review
your legend code, but a thought: are you calling R_stabilize() ?

* Send all pending graphics
* commands to the graphics driver and cause all pending graphics to be
* drawn (provided the driver is written to comply). This routine does
* more than <i>R_flush</i> and in many instances is the more
* appropriate routine of the two to use.

you need to call that to actually "apply" any drawing commands.

Hamish