[GRASSLIST:8901]

Dear all, how could I be able to define new sybol in NVIZ ? (now is
diamond ... avialbe)

Regards

Peter

Dear all, how could I be able to define new sybol in NVIZ ? (now is
diamond ... avialbe)

It is pretty easy.

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

or lib/symbol/README in the source code.

look in $GISBASE/etc/symbol/ for examples.

Hamish

I tryed change existing symbol (diamound) before compilation . When
copmpilation finised symbol succesfull changed only in 2D in NVIZ
symbol diamound doesn't changed.
How I can cerating new symbol but editing in NVIZ???(now is
X,diamound and sphere)

That is unreleated to the vector point symbols. You'd have to look in
the nviz code. see visualization/nviz/src/map_obj.c in the source code.
(cube, trees, etc in there already??)
also visualization/nviz/scripts/panel_site.tcl

You don't need to recompile to edit the symbols by the way. Just
edit/add to $GISBASE/etc/symbols. But keep a backup in case of
reinstall.

Hamish

> > I tryed change existing symbol (diamound) before compilation .
> > When copmpilation finised symbol succesfull changed only in 2D in
> > NVIZ symbol diamound doesn't changed.
> > How I can cerating new symbol but editing in NVIZ???(now is
> > X,diamound and sphere)
>
> That is unreleated to the vector point symbols. You'd have to look
> in the nviz code. see visualization/nviz/src/map_obj.c in the source
> code. (cube, trees, etc in there already??)
> also visualization/nviz/scripts/panel_site.tcl
>
> You don't need to recompile to edit the symbols by the way. Just
> edit/add to $GISBASE/etc/symbols. But keep a backup in case of
> reinstall.

..

I try your solution I modified panlel_site.tcl

radiobutton $tmp.siteshape.x -relief flat -text "use X" -value x \
-anchor nw -variable Nv_(siteshape) -command change_marker
radiobutton $tmp.siteshape.sphere -relief flat -text "use sphere" \
-value sphere -anchor nw -variable Nv_(siteshape) \
-command change_marker
radiobutton $tmp.siteshape.diamond -relief flat -text "use diamond" \
-value diamond -anchor nw -variable Nv_(siteshape) \
-command change_marker
radiobutton $tmp.siteshape.box -relief flat -text "use box" \
-value box -anchor nw -variable Nv_(siteshape) \
-command change_marker
radiobutton $tmp.siteshape.cube -relief flat -text "use cube" \
-value cube -anchor nw -variable Nv_(siteshape) \
-command change_marker

pack $tmp.siteshape.x $tmp.siteshape.sphere $tmp.siteshape.diamond
$tmp.siteshape.box
$tmp.siteshape.cube \

Its all? Because nothing displayed when I click on cube ,box. Other
symbols is correct.

What is the wrong??

I don't know- it was just a guess. I don't know if it is simple or
hard to fix, maybe someone else more familiar with the NVIZ code can
comment.

Hamish

Dear all,
as I can see, there is a misunderstanding beetween you guys. If I
understood it well, Peter wants to add new symbol to 3D NVIZ. Not in
2D Manager as you understood it at all. Of course, 2D symbol can be
added in very simple way. Source for 2D symbol is se to
$GISBASE/etc/symbols. But he wants to know, where is the storage (or
source) for symbols used in NVIZ (actualy Diamond, Spehere and X are
showed) ? As I can see from pasted code, he tried to use box, but with
no effect at all.

Peter

On 11/8/05, Hamish <hamish_nospam@yahoo.com> wrote:

> > > I tryed change existing symbol (diamound) before compilation .
> > > When copmpilation finised symbol succesfull changed only in 2D in
> > > NVIZ symbol diamound doesn't changed.
> > > How I can cerating new symbol but editing in NVIZ???(now is
> > > X,diamound and sphere)
> >
> > That is unreleated to the vector point symbols. You'd have to look
> > in the nviz code. see visualization/nviz/src/map_obj.c in the source
> > code. (cube, trees, etc in there already??)
> > also visualization/nviz/scripts/panel_site.tcl
> >
> > You don't need to recompile to edit the symbols by the way. Just
> > edit/add to $GISBASE/etc/symbols. But keep a backup in case of
> > reinstall.
..
> I try your solution I modified panlel_site.tcl
>
> radiobutton $tmp.siteshape.x -relief flat -text "use X" -value x \
> -anchor nw -variable Nv_(siteshape) -command change_marker
> radiobutton $tmp.siteshape.sphere -relief flat -text "use sphere" \
> -value sphere -anchor nw -variable Nv_(siteshape) \
> -command change_marker
> radiobutton $tmp.siteshape.diamond -relief flat -text "use diamond" \
> -value diamond -anchor nw -variable Nv_(siteshape) \
> -command change_marker
> radiobutton $tmp.siteshape.box -relief flat -text "use box" \
> -value box -anchor nw -variable Nv_(siteshape) \
> -command change_marker
> radiobutton $tmp.siteshape.cube -relief flat -text "use cube" \
> -value cube -anchor nw -variable Nv_(siteshape) \
> -command change_marker
>
> pack $tmp.siteshape.x $tmp.siteshape.sphere $tmp.siteshape.diamond
> $tmp.siteshape.box
> $tmp.siteshape.cube \
>
> Its all? Because nothing displayed when I click on cube ,box. Other
> symbols is correct.
>
> What is the wrong??

I don't know- it was just a guess. I don't know if it is simple or
hard to fix, maybe someone else more familiar with the NVIZ code can
comment.

Hamish