[ROOT] Re:

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Fri Apr 28 2000 - 20:23:55 MEST


> Hi, Rooters:
> 
> Is there an easy way to embed a 3D view (or output from TF2::Draw("surf"))
> to a web page so that they can "behave" just like an applet?  which means
> in the web page, the user can rotate the object by mouse actions.
> 
> I can imagine that having this feature in ROOT could benefits us a lot.

 If your Browser can launch ROOT on client side then it works. Almost all Web Browser
 do provide such sort of feature.
 Well for that one needs ROOT on client side available. There is nothing special here.
 It is true for almost all Web graphics applications.
 First one has to download some "plug-in" application(MacroMedia. ShockWare,
 Java script interpreter, QuickTime, VRML etc etc etc )  then he /she can enjoy 
 the animation  (for example).

 ROOT supports "plug in" feature with TWebFile class and with TFile::Open method.
 This allows to link the client Web Browser with some text file extension (let's say "C").
 assuming the user "click" ROOT macro. Then this macro using the client's local 
 ROOT can open the ROOT file (via TFile::Open(..)) with histogram and plot it on the 
 user's side.


You may try the following TWO lines ROOT sessions:

  TFile::Open("http://root.cern.ch/~rdm/na49.root");
   na49.Draw();

or 

   TFile::Open("http://root.cern.ch/~rdm/hsimple.root");
   hpxpy.Draw("surf4");

  This will give you some idea.
  
         Valery



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET