00001 // $Id: Get3DSize.C,v 1.4 1999/05/21 15:58:44 kathy Exp $ 00002 // $Log: Get3DSize.C,v $ 00003 // Revision 1.4 1999/05/21 15:58:44 kathy 00004 // fix name of owner on Get3DSize 00005 // 00006 // Revision 1.3 1999/05/21 15:33:50 kathy 00007 // made sure Log & Id are in each file and also put in standard comment line with name of owner 00008 // 00009 //======================================================================= 00010 // owner: Valery Fine 00011 // what it does: This macro prints out the sizes of the sekected 3d pad 00012 //======================================================================= 00013 { 00014 // This macro prints out the sizes of the sekected 3d pad 00015 if (gPad) { 00016 TView *view = gPad->GetView(); 00017 Float_t min[3],max[3]; 00018 view->GetRange(min,max); 00019 for (int i=0;i<3; i++) printf("%d. min = %f, max = %f \n", i, min[i],max[i]); 00020 } 00021 else 00022 printf(" No 3 view has been created yet\n"); 00023 }
1.5.9