Message: Re: Adding icon/logo/image to GUI Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Adding icon/logo/image to GUI 

Forum: (Graphical) User Interfaces
Re: Question Adding icon/logo/image to GUI (Leonardo Ghizoni)
Date: 17 Jul, 2016
From: John Allison <John Allison>

I've often thought we should have a generalised way of adding a logo. Look at examples/basic/B1 to see that we have two commands - /vis/scene/add/logo and logo2D - for the Geant4 logo. You could look to see how we do logo2D (by far the simpler and close to what you want) in source/visualization/src/, around line 1650.

But you'd be better writing a G4VUserVisAction - see examples/extended/visualization/userVisAction. You could Draw2D(text),.... But I guess you would like to draw a pixmap or jpg or tiff or pdf - we don't have a way to do that. It's tough, since it's graphics system specific.

But, if you're happy with a simple text you can use /vis/scene/add/text2D.

/gui/addIcon is for adding small smart icons to the tool bar.

I think I would try to make something that looks like my logo with the Draw methods of source/graphics_reps/include/G4VVisManager.hh in a G4VUserVisAction, as in examples/extended/visualization/userVisAction.

Have fun.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Adding icon/logo/image to GUI   (Leonardo Ghizoni - 19 Jul, 2016)
(_ None: Re: Adding icon/logo/image to GUI   (Garnier Laurent - 20 Jul, 2016)
 Add Message Add Message
to: "Re: Adding icon/logo/image to GUI"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]