#include <TNode.h>
Inheritance diagram for TNode:
Public Member Functions | |
TNode () | |
TNode (const char *name, const char *title, const char *shapename, Double_t x=0, Double_t y=0, Double_t z=0, const char *matrixname="", Option_t *option="") | |
TNode (const char *name, const char *title, TShape *shape, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0, Option_t *option="") | |
virtual | ~TNode () |
virtual void | Browse (TBrowser *b) |
virtual void | BuildListOfNodes () |
virtual void | cd (const char *path=0) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawOnly (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
TList * | GetListOfNodes () const |
virtual TRotMatrix * | GetMatrix () const |
virtual TNode * | GetNode (const char *name) const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
const Option_t * | GetOption () const |
virtual TNode * | GetParent () const |
TShape * | GetShape () const |
Int_t | GetVisibility () const |
virtual Double_t | GetX () const |
virtual Double_t | GetY () const |
virtual Double_t | GetZ () const |
virtual void | ImportShapeAttributes () |
Bool_t | IsFolder () const |
virtual void | Local2Master (const Double_t *local, Double_t *master) |
virtual void | Local2Master (const Float_t *local, Float_t *master) |
virtual void | ls (Option_t *option="2") const |
virtual void | Master2Local (const Double_t *master, Double_t *local) |
virtual void | Master2Local (const Float_t *master, Float_t *local) |
virtual void | Paint (Option_t *option="") |
virtual void | RecursiveRemove (TObject *obj) |
virtual void | SetMatrix (TRotMatrix *matrix=0) |
virtual void | SetName (const char *name) |
virtual void | SetParent (TNode *parent) |
virtual void | SetNameTitle (const char *name, const char *title) |
virtual void | SetPosition (Double_t x=0, Double_t y=0, Double_t z=0) |
virtual void | SetVisibility (Int_t vis=1) |
virtual void | Sizeof3D () const |
virtual void | UpdateMatrix () |
virtual void | UpdateTempMatrix (const Double_t *dx1, const Double_t *rmat1, Double_t x, Double_t y, Double_t z, Double_t *matrix, Double_t *dxnew, Double_t *rmatnew) |
TNode () | |
TNode (const char *name, const char *title, const char *shapename, Double_t x=0, Double_t y=0, Double_t z=0, const char *matrixname="", Option_t *option="") | |
TNode (const char *name, const char *title, TShape *shape, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0, Option_t *option="") | |
virtual | ~TNode () |
virtual void | Browse (TBrowser *b) |
virtual void | BuildListOfNodes () |
virtual void | cd (const char *path=0) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawOnly (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
TList * | GetListOfNodes () const |
virtual TRotMatrix * | GetMatrix () const |
virtual TNode * | GetNode (const char *name) const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
const Option_t * | GetOption () const |
virtual TNode * | GetParent () const |
TShape * | GetShape () const |
Int_t | GetVisibility () const |
virtual Double_t | GetX () const |
virtual Double_t | GetY () const |
virtual Double_t | GetZ () const |
virtual void | ImportShapeAttributes () |
Bool_t | IsFolder () const |
virtual void | Local2Master (const Double_t *local, Double_t *master) |
virtual void | Local2Master (const Float_t *local, Float_t *master) |
virtual void | ls (Option_t *option="2") const |
virtual void | Master2Local (const Double_t *master, Double_t *local) |
virtual void | Master2Local (const Float_t *master, Float_t *local) |
virtual void | Paint (Option_t *option="") |
virtual void | RecursiveRemove (TObject *obj) |
virtual void | SetMatrix (TRotMatrix *matrix=0) |
virtual void | SetName (const char *name) |
virtual void | SetParent (TNode *parent) |
virtual void | SetNameTitle (const char *name, const char *title) |
virtual void | SetPosition (Double_t x=0, Double_t y=0, Double_t z=0) |
virtual void | SetVisibility (Int_t vis=1) |
virtual void | Sizeof3D () const |
virtual void | UpdateMatrix () |
virtual void | UpdateTempMatrix (const Double_t *dx1, const Double_t *rmat1, Double_t x, Double_t y, Double_t z, Double_t *matrix, Double_t *dxnew, Double_t *rmatnew) |
Protected Types | |
enum | |
enum | |
Protected Member Functions | |
TNode (const TNode &) | |
TNode & | operator= (const TNode &) |
TNode (const TNode &) | |
TNode & | operator= (const TNode &) |
Protected Attributes | |
Double_t | fX |
Double_t | fY |
Double_t | fZ |
TRotMatrix * | fMatrix |
TShape * | fShape |
TNode * | fParent |
TList * | fNodes |
TString | fOption |
Int_t | fVisibility |
TRotMatrix * | fMatrix |
TShape * | fShape |
TNode * | fParent |
TList * | fNodes |
Definition at line 43 of file TNode.h.
TNode::TNode | ( | ) |
TNode::TNode | ( | const char * | name, | |
const char * | title, | |||
const char * | shapename, | |||
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
const char * | matrixname = "" , |
|||
Option_t * | option = "" | |||
) |
Definition at line 73 of file TNode.cxx.
References TList::Add(), BuildListOfNodes(), cd(), fMatrix, fNodes, fOption, fParent, fShape, fVisibility, fX, fY, fZ, TGeometry::GetCurrentNode(), TGeometry::GetListOfNodes(), GetListOfNodes(), TGeometry::GetRotMatrix(), TGeometry::GetShape(), gGeometry, ImportShapeAttributes(), Printf(), and TAttLine::SetLineColor().
TNode::TNode | ( | const char * | name, | |
const char * | title, | |||
TShape * | shape, | |||
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
TRotMatrix * | matrix = 0 , |
|||
Option_t * | option = "" | |||
) |
Definition at line 126 of file TNode.cxx.
References TList::Add(), BuildListOfNodes(), cd(), fMatrix, fNodes, fOption, fParent, fShape, fVisibility, fX, fY, fZ, TGeometry::GetCurrentNode(), TGeometry::GetListOfNodes(), GetListOfNodes(), TGeometry::GetRotMatrix(), gGeometry, ImportShapeAttributes(), Printf(), and TAttLine::SetLineColor().
TNode::~TNode | ( | ) | [virtual] |
Definition at line 215 of file TNode.cxx.
References TList::Delete(), fNodes, fParent, TGeometry::GetCurrentNode(), TGeometry::GetListOfNodes(), GetListOfNodes(), gGeometry, TList::Remove(), and TGeometry::SetCurrentNode().
TNode::TNode | ( | const TNode & | ) | [protected] |
TNode::TNode | ( | ) |
TNode::TNode | ( | const char * | name, | |
const char * | title, | |||
const char * | shapename, | |||
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
const char * | matrixname = "" , |
|||
Option_t * | option = "" | |||
) |
TNode::TNode | ( | const char * | name, | |
const char * | title, | |||
TShape * | shape, | |||
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
TRotMatrix * | matrix = 0 , |
|||
Option_t * | option = "" | |||
) |
virtual TNode::~TNode | ( | ) | [virtual] |
Definition at line 193 of file TNode.cxx.
References TRotMatrix::fMatrix, fMatrix, fNodes, fOption, fParent, fShape, fVisibility, fX, fY, fZ, and TNamed::operator=().
void TNode::Browse | ( | TBrowser * | b | ) | [virtual] |
void TNode::BuildListOfNodes | ( | ) | [virtual] |
Definition at line 243 of file TNode.cxx.
References fNodes.
Referenced by SetParent(), and TNode().
void TNode::cd | ( | const char * | path = 0 |
) | [virtual] |
Definition at line 252 of file TNode.cxx.
References gGeometry, and TGeometry::SetCurrentNode().
Referenced by TVolume::CreateTNode(), na49(), shapes(), shapesAnim(), TNode(), and xtruSamples().
Reimplemented from TObject.
Definition at line 261 of file TNode.cxx.
References ROOT::Math::gv_detail::dist(), DistancetoPrimitive(), TObject::DistancetoPrimitive(), fMatrix, fNodes, fShape, fVisibility, fX, fY, fZ, TRotMatrix::GetMatrix(), TCollection::GetSize(), TShape::GetVisibility(), gGeometry, gNode, gPad, TRotMatrix::IsReflection(), kSonsInvisible, TGeometry::PopLevel(), TGeometry::PushLevel(), TObject::TestBit(), and TGeometry::UpdateTempMatrix().
Referenced by DistancetoPrimitive().
void TNode::Draw | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 327 of file TNode.cxx.
References TObject::AppendPad(), TString::Contains(), TView::CreateView(), gGeometry, gPad, gROOT, kTRUE, TROOT::MakeDefCanvas(), TView::SetAutoRange(), TGeometry::SetGeomLevel(), TString::ToLower(), and TGeometry::UpdateTempMatrix().
Referenced by Browse(), TGeometry::Draw(), DrawOnly(), na49view(), shapes(), and shapesAnim().
void TNode::DrawOnly | ( | Option_t * | option = "" |
) | [virtual] |
TList* TNode::GetListOfNodes | ( | ) | const [inline] |
Definition at line 75 of file TNode.h.
References fNodes.
Referenced by SetName(), SetNameTitle(), SetParent(), TNode(), TVolume::TVolume(), and ~TNode().
virtual TRotMatrix* TNode::GetMatrix | ( | ) | const [inline, virtual] |
Definition at line 76 of file TNode.h.
References fMatrix.
Referenced by TVolume::TVolume(), TGeometry::UpdateMatrix(), and UpdateMatrix().
TNode * TNode::GetNode | ( | const char * | name | ) | const [virtual] |
Definition at line 384 of file TNode.cxx.
References TList::FirstLink(), fNodes, TNamed::GetName(), GetNode(), TObjLink::GetObject(), TObject::kNotDeleted, TObjLink::Next(), and TObject::TestBit().
Referenced by GetNode(), and TGeometry::GetNode().
Reimplemented from TObject.
Definition at line 405 of file TNode.cxx.
References TObject::ClassName(), fShape, TNamed::GetName(), TNamed::GetTitle(), gPad, and info.
const Option_t* TNode::GetOption | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 79 of file TNode.h.
References TString::Data(), and fOption.
Referenced by TVolume::TVolume().
virtual TNode* TNode::GetParent | ( | ) | const [inline, virtual] |
Definition at line 80 of file TNode.h.
References fParent.
Referenced by SetParent(), TGeometry::UpdateMatrix(), and UpdateMatrix().
TShape* TNode::GetShape | ( | ) | const [inline] |
Int_t TNode::GetVisibility | ( | ) | const [inline] |
virtual Double_t TNode::GetX | ( | ) | const [inline, virtual] |
Definition at line 83 of file TNode.h.
References fX.
Referenced by TVolume::TVolume(), TGeometry::UpdateMatrix(), and UpdateMatrix().
virtual Double_t TNode::GetY | ( | ) | const [inline, virtual] |
Definition at line 84 of file TNode.h.
References fY.
Referenced by TVolume::TVolume(), TGeometry::UpdateMatrix(), and UpdateMatrix().
virtual Double_t TNode::GetZ | ( | ) | const [inline, virtual] |
Definition at line 85 of file TNode.h.
References fZ.
Referenced by TVolume::TVolume(), TGeometry::UpdateMatrix(), and UpdateMatrix().
void TNode::ImportShapeAttributes | ( | ) | [virtual] |
Definition at line 418 of file TNode.cxx.
References TList::FirstLink(), fNodes, fShape, TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), TObjLink::GetObject(), ImportShapeAttributes(), TObjLink::Next(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), and TAttLine::SetLineWidth().
Referenced by TVolume::CreateTNode(), ImportShapeAttributes(), and TNode().
Bool_t TNode::IsFolder | ( | ) | const [virtual] |
Definition at line 451 of file TNode.cxx.
References TGeometry::GetBomb(), gGeometry, gGeomLevel, gRotMatrix, gTranslation, x, and y.
Definition at line 486 of file TNode.cxx.
References TGeometry::GetBomb(), gGeometry, gGeomLevel, gRotMatrix, gTranslation, x, and y.
void TNode::ls | ( | Option_t * | option = "2" |
) | const [virtual] |
Reimplemented from TNamed.
Definition at line 521 of file TNode.cxx.
References TString::Contains(), TROOT::DecreaseDirLevel(), fMatrix, fNodes, fShape, fX, fY, fZ, TNamed::GetName(), TCollection::GetSize(), TNamed::GetTitle(), gGeometry, gGeomLevel, gSize3D, TROOT::IncreaseDirLevel(), TROOT::IndentLevel(), TCollection::ls(), Sizeof3D(), and TString::ToLower().
Definition at line 576 of file TNode.cxx.
References TGeometry::GetBomb(), gGeometry, gGeomLevel, gRotMatrix, gTranslation, x, and y.
Definition at line 604 of file TNode.cxx.
References TGeometry::GetBomb(), gGeometry, gGeomLevel, gRotMatrix, gTranslation, x, and y.
void TNode::Paint | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 632 of file TNode.cxx.
References TVirtualViewer3D::AddObject(), buffer, fMatrix, fNodes, fShape, fVisibility, fX, fY, fZ, TGeometry::GeomLevel(), TShape::GetBuffer3D(), TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), TRotMatrix::GetMatrix(), TCollection::GetSize(), TShape::GetVisibility(), gGeometry, gNode, gPad, TRotMatrix::IsReflection(), TBuffer3D::kBoundingBox, TBuffer3D::kCore, TBuffer3D::kNone, TBuffer3D::kShapeSpecific, kSonsInvisible, kTRUE, level, TAttFill::Modify(), TAttLine::Modify(), Paint(), TGeometry::PopLevel(), TGeometry::PushLevel(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TObject::TestBit(), and TGeometry::UpdateTempMatrix().
Referenced by Paint().
void TNode::RecursiveRemove | ( | TObject * | obj | ) | [virtual] |
Reimplemented from TObject.
Definition at line 702 of file TNode.cxx.
References fNodes, and TList::RecursiveRemove().
virtual void TNode::SetMatrix | ( | TRotMatrix * | matrix = 0 |
) | [inline, virtual] |
void TNode::SetName | ( | const char * | name | ) | [virtual] |
Reimplemented from TNamed.
Definition at line 711 of file TNode.cxx.
References TList::Add(), TNamed::fName, fParent, GetListOfNodes(), gPad, and TList::Remove().
void TNode::SetParent | ( | TNode * | parent | ) | [virtual] |
Definition at line 742 of file TNode.cxx.
References TList::Add(), BuildListOfNodes(), fParent, TGeometry::GetListOfNodes(), GetListOfNodes(), TNamed::GetName(), GetParent(), gGeometry, and TList::Remove().
void TNode::SetNameTitle | ( | const char * | name, | |
const char * | title | |||
) | [virtual] |
Reimplemented from TNamed.
Definition at line 726 of file TNode.cxx.
References TList::Add(), TNamed::fName, fParent, TNamed::fTitle, GetListOfNodes(), gPad, and TList::Remove().
void TNode::SetVisibility | ( | Int_t | vis = 1 |
) | [virtual] |
Definition at line 770 of file TNode.cxx.
References fNodes, fVisibility, kSonsInvisible, TObject::ResetBit(), TObject::SetBit(), and SetVisibility().
Referenced by TVolume::CreateTNode(), DrawOnly(), SetVisibility(), and xtruSamples().
void TNode::Sizeof3D | ( | ) | const [virtual] |
Reimplemented from TAtt3D.
Definition at line 820 of file TNode.cxx.
References fNodes, fShape, fVisibility, TShape::GetVisibility(), kSonsInvisible, Sizeof3D(), TAtt3D::Sizeof3D(), and TObject::TestBit().
Referenced by ls(), and Sizeof3D().
void TNode::UpdateMatrix | ( | ) | [virtual] |
Definition at line 876 of file TNode.cxx.
References TRotMatrix::GetMatrix(), GetMatrix(), GetParent(), GetX(), GetY(), GetZ(), gGeomLevel, gRotMatrix, gTranslation, i, kMatrixSize, kMAXLEVELS, kVectorSize, and UpdateTempMatrix().
virtual void TNode::BuildListOfNodes | ( | ) | [virtual] |
virtual void TNode::cd | ( | const char * | path = 0 |
) | [virtual] |
Reimplemented from TObject.
virtual void TNode::DrawOnly | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
TList* TNode::GetListOfNodes | ( | ) | const [inline] |
virtual TRotMatrix* TNode::GetMatrix | ( | ) | const [inline, virtual] |
virtual TNode* TNode::GetNode | ( | const char * | name | ) | const [virtual] |
Reimplemented from TObject.
const Option_t* TNode::GetOption | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 79 of file TNode.h.
References TString::Data(), and fOption.
virtual TNode* TNode::GetParent | ( | ) | const [inline, virtual] |
TShape* TNode::GetShape | ( | ) | const [inline] |
Int_t TNode::GetVisibility | ( | ) | const [inline] |
virtual Double_t TNode::GetX | ( | void | ) | const [inline, virtual] |
virtual Double_t TNode::GetY | ( | ) | const [inline, virtual] |
virtual Double_t TNode::GetZ | ( | ) | const [inline, virtual] |
virtual void TNode::ImportShapeAttributes | ( | ) | [virtual] |
virtual void TNode::SetMatrix | ( | TRotMatrix * | matrix = 0 |
) | [inline, virtual] |
virtual void TNode::SetName | ( | const char * | name | ) | [virtual] |
Reimplemented from TNamed.
virtual void TNode::SetParent | ( | TNode * | parent | ) | [virtual] |
virtual void TNode::SetNameTitle | ( | const char * | name, | |
const char * | title | |||
) | [virtual] |
Reimplemented from TNamed.
virtual void TNode::SetVisibility | ( | Int_t | vis = 1 |
) | [virtual] |
virtual void TNode::Sizeof3D | ( | ) | const [virtual] |
Reimplemented from TAtt3D.
virtual void TNode::UpdateMatrix | ( | ) | [virtual] |
virtual void TNode::UpdateTempMatrix | ( | const Double_t * | dx1, | |
const Double_t * | rmat1, | |||
Double_t | x, | |||
Double_t | y, | |||
Double_t | z, | |||
Double_t * | matrix, | |||
Double_t * | dxnew, | |||
Double_t * | rmatnew | |||
) | [virtual] |
Definition at line 48 of file TNode.h.
Referenced by DistancetoPrimitive(), GetX(), ls(), operator=(), Paint(), SetPosition(), and TNode().
Definition at line 49 of file TNode.h.
Referenced by DistancetoPrimitive(), GetY(), ls(), operator=(), Paint(), SetPosition(), and TNode().
Definition at line 50 of file TNode.h.
Referenced by DistancetoPrimitive(), GetZ(), ls(), operator=(), Paint(), SetPosition(), and TNode().
TRotMatrix* TNode::fMatrix [protected] |
Definition at line 51 of file TNode.h.
Referenced by DistancetoPrimitive(), GetMatrix(), ls(), operator=(), Paint(), SetMatrix(), and TNode().
TShape* TNode::fShape [protected] |
Definition at line 52 of file TNode.h.
Referenced by DistancetoPrimitive(), GetObjectInfo(), GetShape(), ImportShapeAttributes(), ls(), operator=(), Paint(), Sizeof3D(), and TNode().
TNode* TNode::fParent [protected] |
Definition at line 53 of file TNode.h.
Referenced by GetParent(), operator=(), SetName(), SetNameTitle(), SetParent(), TNode(), and ~TNode().
TList* TNode::fNodes [protected] |
Definition at line 54 of file TNode.h.
Referenced by Browse(), BuildListOfNodes(), DistancetoPrimitive(), GetListOfNodes(), GetNode(), ImportShapeAttributes(), IsFolder(), ls(), operator=(), Paint(), RecursiveRemove(), SetVisibility(), Sizeof3D(), TNode(), and ~TNode().
TString TNode::fOption [protected] |
Int_t TNode::fVisibility [protected] |
Definition at line 56 of file TNode.h.
Referenced by DistancetoPrimitive(), GetVisibility(), operator=(), Paint(), SetVisibility(), Sizeof3D(), and TNode().
TRotMatrix* TNode::fMatrix [protected] |
TShape* TNode::fShape [protected] |
TNode* TNode::fParent [protected] |
TList* TNode::fNodes [protected] |