00001 // @(#)root/g3d:$Id: TNodeDiv.cxx 21392 2007-12-17 08:52:31Z couet $ 00002 // Author: Rene Brun 14/09/95 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #include "TVirtualPad.h" 00013 #include "TNodeDiv.h" 00014 00015 ClassImp(TNodeDiv) 00016 00017 //______________________________________________________________________________ 00018 /* Begin_Html 00019 <center><h2>The TNodeDiv class</h2></center> 00020 Description of parameters to divide a 3-D geometry object. 00021 End_Html */ 00022 00023 00024 //______________________________________________________________________________ 00025 TNodeDiv::TNodeDiv() 00026 { 00027 // NodeDiv default constructor. 00028 00029 fNdiv = 0; 00030 fAxis = 0; 00031 } 00032 00033 00034 //______________________________________________________________________________ 00035 TNodeDiv::TNodeDiv(const char *name, const char *title, const char *shapename, Int_t ndiv, Int_t axis, Option_t *option) 00036 :TNode(name,title,shapename,0,0,0,0,option) 00037 { 00038 // NodeDiv normal constructor. 00039 // 00040 // name is the name of the node 00041 // title is title 00042 // shapename is the name of the referenced shape 00043 // x,y,z are the offsets of the volume with respect to his mother 00044 // matrixname is the name of the rotation matrix 00045 // 00046 // This new node is added into the list of sons of the current node 00047 00048 fNdiv = ndiv; 00049 fAxis = axis; 00050 } 00051 00052 00053 //______________________________________________________________________________ 00054 TNodeDiv::TNodeDiv(const char *name, const char *title, TShape *shape, Int_t ndiv, Int_t axis, Option_t *option) 00055 :TNode(name,title,shape,0,0,0,0,option) 00056 { 00057 // NodeDiv normal constructor. 00058 // 00059 // name is the name of the node 00060 // title is title 00061 // shape is the pointer to the shape definition 00062 // ndiv number of divisions 00063 // axis number of the axis for the division 00064 // 00065 // This new node is added into the list of sons of the current node 00066 00067 fNdiv = ndiv; 00068 fAxis = axis; 00069 } 00070 00071 00072 //______________________________________________________________________________ 00073 TNodeDiv::~TNodeDiv() 00074 { 00075 // NodeDiv default destructor. 00076 } 00077 00078 00079 //______________________________________________________________________________ 00080 void TNodeDiv::Draw(Option_t *) 00081 { 00082 // Draw Referenced node with current parameters. 00083 } 00084 00085 00086 //______________________________________________________________________________ 00087 void TNodeDiv::Paint(Option_t *) 00088 { 00089 // Paint Referenced node with current parameters. 00090 }