RE: [ROOT] image generation questions

From: Valeri Fine (fine@bnl.gov)
Date: Mon Jun 23 2003 - 18:08:33 MEST


> 
> Hi...
 
> gVirtualX->WriteGIF(...) and
> gVirtualX->WritePixmap(gPad->GetPixmapID(),...)
> do not work when running in batch mode, correct?
> At least they didn't seem to when I tried.
> Is that something specific to the Qt-based distribution?

[Valeri Fine] 
  Qt application can generate the image file with no X-terminal
attached.
  This means one doesn't need any special "batch" mode" to run Qt-based
application with no X-terminal but still generating "image files"
This is not ROOT feature is a feature of Qt-layer.
                Valeri

> 
> thanks,
>    Brant C.
> 
> Valeri Fine wrote:
> 
> >Hello Brant ,
> >Check:
> >http://root.bnl.gov/QtRoot/QtRoot.html#gifbatch
> >  My best regards, Valeri
> >
> >
> >
> >>-----Original Message-----
> >>From: owner-roottalk@pcroot.cern.ch
> >>
> >>
> >[mailto:owner-roottalk@pcroot.cern.ch]
> >
> >
> >>On Behalf Of brant c.
> >>Sent: Saturday, June 21, 2003 6:00 AM
> >>To: roottalk@pcroot.cern.ch
> >>Subject: [ROOT] image generation questions
> >>
> >>Hi all,
> >>
> >>I am a ROOT newbie, trying to build some ROOT code that
> >>
> >>
> >processes/plots
> >
> >
> >>data, generates images, and distributes the images over the web (as
in
> >>
> >>
> >a
> >
> >
> >>cgi script).  Ideally, this code would just print the image file
data
> >>
> >>
> >to
> >
> >
> >>standard output, so executing it as a cgi script would produce an
> >>
> >>
> >image
> >
> >
> >>on a web browser.  As such, I think it has to run in batch mode...
> >>
> >>I am looking for a way to:
> >>a) generate an image in batch mode.
> >>b) print the image file data to standard output, preferably without
> >>first writing to disk.
> >>
> >>It would be possible to write the pad contents as a postscript or
svg
> >>file, convert the file, and concatenate the results to standard
> >>
> >>
> >output,
> >
> >
> >>and remove the file, but I would like to avoid file i/o
(simultanious
> >>users will confuse the system) and other external programs as much
as
> >>possible.
> >>
> >>I don't know if the TImage::FromPad(...) function will work in batch
> >>mode because I've been having issues getting ROOT to compile with
> >>asimage enabled (library version issues on my end, I think).
> >>
> >>The application is for visualization of high-energy cosmic ray
shower
> >>data for the CHICOS project (http://www.chicos.caltech.edu/).  Part
of
> >>the purpose of distributing the images over the web is to allow high
> >>school instructors to use it in class activities.
> >>
> >>Thanks,
> >>
> >>   Brant Carlson
> >>   (Caltech UG, working for Prof. Bob McKeown)
> >>
> >>
> >
> >
> >
> >
> >.
> >
> >
> >
> 
> 



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