[ROOT] no TView in current pad?

From: Tom Roberts (tjrob@fnal.gov)
Date: Sat Apr 06 2002 - 20:29:27 MEST


When I try to "ZoomMove" in a 3-d drawing, I get the message "Error 
in <TAxis3D::PaintAxis>: no TView in current pad". But as far as I can 
tell I have a TView in the pad. Moreover, on some systems I get this 
(Root Version 3.02/07 10 January 2002 on RedHat Linux 7.1 console) but 
not on others (Root Version 3.01/06 12 July 2001 on RedHat Linux 6.2 
via remote X terminal).

How can I avoid this and be able to Zoom in on my drawing?

Also, somewhere I saw an "UnZoom" menu entry, but can no longer find it.
Where is it? (or where did it go?)


Tom Roberts	tjrob@fnal.gov

{
   c2 = new TCanvas("c2","Test Ray-Tracing",800,800);
   c2->SetFillColor(10);
   c2->cd();
 
   p2 = new TPad("p2","p2",0,0,1,1);
   p2->SetFillColor(10);
   p2->Draw();
   p2->cd();
 
   view = new TView(1);
 
   TBRIK *enclose = new TBRIK("Target","Target","void",15,15,15);
   enclose->SetLineColor(10);
   enclose->SetFillStyle(4000);
   TBRIK *tgt = new TBRIK("Target","Target","void",5,5,5);
   tgt->SetLineColor(1);
   TBRIK *center = new TBRIK("Target","Target","void",0.5,0.5,0.5);
   center->SetLineColor(1);
 
   //  Build the TNode hierarchy
   node0 = new TNode("NODE1","NODE1",enclose);
   node0->SetLineColor(10);
   node0->SetFillStyle(4000);
   node0->cd();
   node1 = new TNode("NODE1","NODE1",tgt);
   node2 = new TNode("NODE2","NODE2",center);
 
   // Draw the TNode-s in the current canvas
   node0->Draw();
 
   c2->Update();
}



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET