Skip to content
Snippets Groups Projects
  1. Jul 05, 2003
  2. Apr 26, 2003
  3. Apr 03, 2003
  4. Jan 12, 2003
  5. Dec 02, 2002
  6. Jan 16, 2002
    • Rene Brun's avatar
      Add new functions: · 0046a349
      Rene Brun authored
         Int_t    ExecCommand(Int_t px, Int_t py, char command);
         void     GetPosition(Float_t &longitude, Float_t &latitude, Float_t &psi);
      
      ExecCommand may be called from a script to animate an X3D picture
      // px, py  mouse position
      //command = 0       --- move to px,py
      //        = w       --- wireframe mode
      //        = e       --- hidden line mode
      //        = r       --- hidden surface mode
      //        = u       --- move object down
      //        = i       --- move object up
      //        = o       --- toggle controls style
      //        = s       --- toggle stereo display
      //        = d       --- toggle blue stereo view
      //        = f       --- toggle double buffer
      //        = h       --- move object right
      //        = j       --- move object forward
      //        = k       --- move object backward
      //        = l       --- move object left
      //        = x a     --- rotate about x
      //        = y b     --- rotate about y
      //        = z c     --- rotate about z
      //        = 1 2 3   --- autorotate about x
      //        = 4 5 6   --- autorotate about y
      //        = 7 8 9   --- autorotate about z
      //        = [ ] { } --- adjust focus
      // Example:
      /*
      {
         gSystem->Load("libX3d");
         TCanvas *c1 = new TCanvas("c1");
         TFile *f = new TFile("hsimple.root");
         TTree *ntuple = (TTree*)f->Get("ntuple");
         ntuple->SetMarkerColor(kYellow);
         ntuple->Draw("px:py:pz");
         TViewerX3D *x3d = new TViewerX3D(c1,"");
         for (Int_t i=0;i<500;i++) {
            Int_t px = i%500;
            Int_t py = (2*i)%200;
            x3d->ExecCommand(px,py,0);  //rotate
            if (i%20 >10) x3d->ExecCommand(px,py,'j'); //zoom
            if (i%20 <10) x3d->ExecCommand(px,py,'k'); //unzoom
         }
      }
      */
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@3679 27541ba8-7e3a-0410-8455-c3a389f83636
      0046a349
    • Rene Brun's avatar
      Add new function x3d_exec_command(int px, int py, char command). · a021a207
      Rene Brun authored
      This function uses a subset of the code in Updateposition.
      It is called by the new function TViewerX3D::ExecCommand.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@3678 27541ba8-7e3a-0410-8455-c3a389f83636
      a021a207
  7. May 16, 2001
  8. May 11, 2001
  9. May 08, 2001
  10. Apr 11, 2001
  11. Dec 22, 2000
  12. Oct 30, 2000
  13. Oct 15, 2000
  14. Oct 13, 2000
  15. Oct 08, 2000
  16. Jul 29, 2000
  17. May 21, 2000
  18. May 16, 2000
Loading