Re: [ROOT]: Gui, TCanvas, and mouse events

From: cstrato (cstrato@aon.at)
Date: Fri Feb 07 2003 - 22:27:46 MET


Dear Rooters

I have just tried to compile the example RootShower on MacOS X
using root 3.05/02, and get the following errors:

[localhost:~/ROOT/rootcode/RootShower] cc% make -f Makefile.linux
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c GButtonFrame.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c GTitleFrame.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c MyDetector.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c MyEvent.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c MyParticle.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RSAbout.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RSEnv.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RSHelptext.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RSMsgBox.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RootShower.cxx
g++ -O -Wall -fPIC -I/Users/cc/ROOT/root/include -c RootShowerDict.cxx
RootShowerDict.cxx: In function `class ROOT::TGenericClassInfo * 
ROOT::GenerateInitInstance(const MyParticle *)':
RootShowerDict.cxx:44: no matching function for call to 
`ROOT::TGenericClassInfo::TGenericClassInfo (const char[11], Version_t, 
const char[13], int, const type_info &, const ROOT::TInitBehavior *, 
void (*)(), int)'
/Users/cc/ROOT/root/include/TGenericClassInfo.h:45: candidates are: 
ROOT::TGenericClassInfo::TGenericClassInfo(const char *, const char *, 
int, const type_info &, const ROOT::TInitBehavior *, void *, void (*)(), 
TClass * (*)(const void *), int)
/Users/cc/ROOT/root/include/TGenericClassInfo.h:51: 
ROOT::TGenericClassInfo::TGenericClassInfo(const char *, int, const char 
*, int, const type_info &, const ROOT::TInitBehavior *, void *, void 
(*)(), TClass * (*)(const void *), int)
/Users/cc/ROOT/root/include/TGenericClassInfo.h:57: 
ROOT::TGenericClassInfo::TGenericClassInfo(const char *, int, const char 
*, int, const type_info &, const ROOT::TInitBehavior *, void (*)(), 
TClass * (*)(const void *), int)

etc, etc,


Could you tell me what could be the reason?

Thank you in advance

Best regards
Christian
_._._._._._._._._._._._._._._._
C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
V.i.e.n.n.a       A.u.s.t.r.i.a
_._._._._._._._._._._._._._._._



Rene Brun wrote:

> Hi Mathieu,
> 
> I agree with you that the ROOT GUI has now reached an impressive
> level of functionality, but HELAS, there is no documentation.
> I hope that we will be able to document it in the near future.
> Most people starting with the Root GUI have used the Guitest
> example. This shows the use of the basic widgets only.
> 
> Recently, Bertrand Bellenot has developed a very nice and still
> simple application that is a good illustration of what one can do with
> the Root GUI. 
> 
> I have put a copy of his program at
>    ftp://root.cern.ch/root/RootShower.tar.gz
> 
> So far, it includes two Makefiles (Linux and Windows).
> To install it, eg,
>   make -f Makefile.linux
> to run the program invoke RootShower and use the various HELP buttons
> to see the different possibilities. This example includes the
> functionality you want to see in your program.
> 
> If people have comments about this nice demo, you can address them
> to rootdev@root.cern.ch and also to Bertrand.Bellenot@alcan.com
> 
> Rene Brun
> 
> On Wed, 19 Jun 2002, Mathieu Gisselbrecht wrote:
> 
> 
>>Hi,
>>
>>I'm using ROOT for about 2 years in order to develop multi-coincidence
>>experiments based on Synhrotron Radiation in molecular physics. A part
>>of the work is to write a User-Friendly-Interface (which is by essence
>>almost impossible....). So, I used a lot the GUI demo and the root talk
>>to get answer to my questions... I really thanks everyone for the
>>impressive work done !!!
>>
>>However for about 1 month, I can't find a way to get access to mouse
>>events in a TCanvas embedded in a TGTransientFrame, the so-called
>>TRootEmbeddedCanvas. My aim is to give the (x,y) value of the mouse in
>>an histogram (for instance to know the intensity and the position of a
>>peak just by moving the mouse). With CINT, it is super easy: 
>>	just create a TCanvas, and validate in the "Options" menu the "Event
>>Status"
>>---------> How can I mange the same thing with an embedded canvas ?
>>
>>By the way, each time I'm going into more sophisticated concept: 
>>- default parameters for drawing objects (e.g. histogram, text....)
>>- events control (keyboard, mouse)
>>I get stuck in the nowhere land : it looks like there are so many
>>functions to call, and without a complete set of examples, it's not so
>>easy... Is the latest User Guide deals with those things ? I only have
>>the v0.7.2. which is a good start but not enough to understand the
>>complexity of ROOT.
>>
>>Thanks in advance,
>>
>>Best regard,
>>
>>M. Gisselbrecht
>>
>>
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET