#include <TVolume.h>
Inheritance diagram for TVolume:
Public Types | |
enum | ENodeSEEN |
enum | ENodeSEEN |
Public Member Functions | |
TVolume () | |
TVolume (const char *name, const char *title, const char *shapename, Option_t *option="") | |
TVolume (const char *name, const char *title, TShape *shape, Option_t *option="") | |
TVolume (TNode &node) | |
virtual | ~TVolume () |
virtual TVolumePosition * | Add (TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0, UInt_t id=0, Option_t *option="") |
virtual TVolumePosition * | Add (TVolume *node, Double_t x, Double_t y, Double_t z, const char *matrixname, UInt_t id=0, Option_t *option="") |
virtual void | Add (TShape *shape, Bool_t IsMaster=kFALSE) |
virtual void | Browse (TBrowser *b) |
virtual TNode * | CreateTNode (const TVolumePosition *position=0) |
virtual void | DeletePosition (TVolumePosition *position) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *depth="3") |
virtual void | DrawOnly (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
const Option_t * | GetOption () const |
TShape * | GetShape () const |
TList * | GetListOfShapes () const |
virtual void | GetLocalRange (Float_t *min, Float_t *max) |
virtual ENodeSEEN | GetVisibility () const |
virtual TList * | GetListOfPositions () |
virtual ULong_t | Hash () const |
virtual void | ImportShapeAttributes () |
virtual Bool_t | IsMarked () const |
virtual Bool_t | Is3D () const |
virtual TList * | Nodes () const |
virtual void | Paint (Option_t *option="") |
virtual void | PaintShape (Option_t *option="") |
virtual void | SetVisibility (ENodeSEEN vis=TVolume::kBothVisible) |
virtual void | Sizeof3D () const |
TVolume () | |
TVolume (const char *name, const char *title, const char *shapename, Option_t *option="") | |
TVolume (const char *name, const char *title, TShape *shape, Option_t *option="") | |
TVolume (TNode &node) | |
virtual | ~TVolume () |
virtual TVolumePosition * | Add (TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0, UInt_t id=0, Option_t *option="") |
virtual TVolumePosition * | Add (TVolume *node, Double_t x, Double_t y, Double_t z, const char *matrixname, UInt_t id=0, Option_t *option="") |
virtual void | Add (TShape *shape, Bool_t IsMaster=kFALSE) |
virtual void | Browse (TBrowser *b) |
virtual TNode * | CreateTNode (const TVolumePosition *position=0) |
virtual void | DeletePosition (TVolumePosition *position) |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *depth="3") |
virtual void | DrawOnly (Option_t *option="") |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
const Option_t * | GetOption () const |
TShape * | GetShape () const |
TList * | GetListOfShapes () const |
virtual void | GetLocalRange (Float_t *min, Float_t *max) |
virtual ENodeSEEN | GetVisibility () const |
virtual TList * | GetListOfPositions () |
virtual ULong_t | Hash () const |
virtual void | ImportShapeAttributes () |
virtual Bool_t | IsMarked () const |
virtual Bool_t | Is3D () const |
virtual TList * | Nodes () const |
virtual void | Paint (Option_t *option="") |
virtual void | PaintShape (Option_t *option="") |
virtual void | SetVisibility (ENodeSEEN vis=TVolume::kBothVisible) |
virtual void | Sizeof3D () const |
Static Public Member Functions | |
static Int_t | MapStNode2GEANTVis (ENodeSEEN vis) |
static Int_t | MapGEANT2StNodeVis (Int_t vis) |
static TRotMatrix * | GetIdentity () |
static Int_t | MapStNode2GEANTVis (ENodeSEEN vis) |
static Int_t | MapGEANT2StNodeVis (Int_t vis) |
static TRotMatrix * | GetIdentity () |
Protected Member Functions | |
virtual void | Add (TDataSet *dataset) |
virtual void | Add (TVolumePosition *position) |
virtual TVolumePosition * | Add (TVolume *node, TVolumePosition *nodePosition) |
virtual Int_t | DistancetoNodePrimitive (Int_t px, Int_t py, TVolumePosition *position=0) |
void | SetPositionsList (TList *list=0) |
virtual void | PaintNodePosition (Option_t *option="", TVolumePosition *postion=0) |
virtual void | Add (TDataSet *dataset) |
virtual void | Add (TVolumePosition *position) |
virtual TVolumePosition * | Add (TVolume *node, TVolumePosition *nodePosition) |
virtual Int_t | DistancetoNodePrimitive (Int_t px, Int_t py, TVolumePosition *position=0) |
void | SetPositionsList (TList *list=0) |
virtual void | PaintNodePosition (Option_t *option="", TVolumePosition *postion=0) |
Protected Attributes | |
TShape * | fShape |
TList * | fListOfShapes |
TString | fOption |
ENodeSEEN | fVisibility |
TShape * | fShape |
TList * | fListOfShapes |
Friends | |
class | TPolyLineShape |
Definition at line 42 of file TVolume.h.
enum TVolume::ENodeSEEN |
enum TVolume::ENodeSEEN |
TVolume::TVolume | ( | ) |
Referenced by TVolume().
TVolume::TVolume | ( | const char * | name, | |
const char * | title, | |||
const char * | shapename, | |||
Option_t * | option = "" | |||
) |
Definition at line 84 of file TVolume.cxx.
References Add(), fOption, fShape, fVisibility, TGeometry::GetShape(), gGeometry, ImportShapeAttributes(), kBothVisible, kTRUE, TAttLine::SetLineColor(), and TNamed::SetTitle().
Definition at line 116 of file TVolume.cxx.
References Add(), fOption, fVisibility, gGeometry, ImportShapeAttributes(), kBothVisible, kTRUE, TAttLine::SetLineColor(), and TNamed::SetTitle().
TVolume::TVolume | ( | TNode & | node | ) |
Definition at line 166 of file TVolume.cxx.
References Add(), fOption, fVisibility, TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), TNode::GetListOfNodes(), TNode::GetMatrix(), TNamed::GetName(), TNode::GetOption(), TNode::GetShape(), TNamed::GetTitle(), TNode::GetVisibility(), TNode::GetX(), TNode::GetY(), TNode::GetZ(), kTRUE, MapGEANT2StNodeVis(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TNamed::SetName(), TNamed::SetTitle(), and TVolume().
TVolume::~TVolume | ( | ) | [virtual] |
Definition at line 246 of file TVolume.cxx.
References TList::Delete(), fListOfShapes, GetListOfPositions(), SafeDelete, and SetPositionsList().
TVolume::TVolume | ( | ) |
TVolume::TVolume | ( | const char * | name, | |
const char * | title, | |||
const char * | shapename, | |||
Option_t * | option = "" | |||
) |
TVolume::TVolume | ( | TNode & | node | ) |
virtual TVolume::~TVolume | ( | ) | [virtual] |
void TVolume::Add | ( | TDataSet * | dataset | ) | [inline, protected, virtual] |
Reimplemented from TDataSet.
Definition at line 103 of file TVolume.h.
References TDataSet::Add().
Referenced by Add(), TVolumeView::AddNode(), TPolyLineShape::PaintNode(), and TVolume().
void TVolume::Add | ( | TVolumePosition * | position | ) | [protected, virtual] |
Definition at line 262 of file TVolume.cxx.
References TList::Add(), TObject::Error(), GetListOfPositions(), TNamed::GetName(), TNamed::GetTitle(), and SetPositionsList().
TVolumePosition * TVolume::Add | ( | TVolume * | node, | |
TVolumePosition * | nodePosition | |||
) | [protected, virtual] |
Definition at line 271 of file TVolume.cxx.
References Add(), TDataSet::Add(), TDataSet::FindObject(), and TDataSet::GetCollection().
Int_t TVolume::DistancetoNodePrimitive | ( | Int_t | px, | |
Int_t | py, | |||
TVolumePosition * | position = 0 | |||
) | [protected, virtual] |
Definition at line 348 of file TVolume.cxx.
References ROOT::Math::gv_detail::dist(), DistancetoNodePrimitive(), TObject::DistancetoPrimitive(), fListOfShapes, TGeometry::GeomLevel(), GetListOfPositions(), TVolumePosition::GetNode(), TCollection::GetSize(), GetVisibility(), TShape::GetVisibility(), gGeometry, gPad, kNoneVisible, kSonUnvisible, kThisUnvisible, TGeometry::PopLevel(), TGeometry::PushLevel(), and TVolumePosition::UpdatePosition().
Referenced by DistancetoNodePrimitive(), and DistancetoPrimitive().
void TVolume::SetPositionsList | ( | TList * | list = 0 |
) | [inline, protected] |
Definition at line 61 of file TVolume.h.
References TObjectSet::AddObject(), and list.
Referenced by Add(), and ~TVolume().
void TVolume::PaintNodePosition | ( | Option_t * | option = "" , |
|
TVolumePosition * | postion = 0 | |||
) | [protected, virtual] |
Definition at line 583 of file TVolume.cxx.
References TGeometry::GeomLevel(), GetListOfPositions(), TVolumePosition::GetNode(), TCollection::GetSize(), GetVisibility(), gGeometry, gPad, kNoneVisible, kSonUnvisible, kThisUnvisible, level, PaintNodePosition(), PaintShape(), TGeometry::PopLevel(), TGeometry::PushLevel(), and TVolumePosition::UpdatePosition().
Referenced by Paint(), TPolyLineShape::PaintNode(), and PaintNodePosition().
TVolumePosition * TVolume::Add | ( | TVolume * | node, | |
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
TRotMatrix * | matrix = 0 , |
|||
UInt_t | id = 0 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
Definition at line 284 of file TVolume.cxx.
References Add(), GetIdentity(), and TVolumePosition::SetId().
TVolumePosition * TVolume::Add | ( | TVolume * | node, | |
Double_t | x, | |||
Double_t | y, | |||
Double_t | z, | |||
const char * | matrixname, | |||
UInt_t | id = 0 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
Definition at line 302 of file TVolume.cxx.
References Add(), GetIdentity(), TGeometry::GetRotMatrix(), gGeometry, and TVolumePosition::SetId().
Definition at line 142 of file TVolume.cxx.
Referenced by CreateTNode(), G__G__Table_221_0_13(), and G__setup_memfuncTVolume().
Definition at line 155 of file TVolume.cxx.
References i, and kBothVisible.
Referenced by G__G__Table_221_0_14(), G__setup_memfuncTVolume(), and TVolume().
void TVolume::Browse | ( | TBrowser * | b | ) | [virtual] |
Reimplemented from TObjectSet.
Definition at line 321 of file TVolume.cxx.
References b, TString::Data(), TVolumePosition::GetId(), GetListOfPositions(), TVolumePosition::GetNode(), TNamed::GetTitle(), num, and snprintf.
TNode * TVolume::CreateTNode | ( | const TVolumePosition * | position = 0 |
) | [virtual] |
Definition at line 204 of file TVolume.cxx.
References TNode::cd(), CreateTNode(), TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), GetListOfPositions(), TVolumePosition::GetMatrix(), TNamed::GetName(), TVolumePosition::GetNode(), GetOption(), GetShape(), TNamed::GetTitle(), GetVisibility(), TVolumePosition::GetX(), TVolumePosition::GetY(), TVolumePosition::GetZ(), TNode::ImportShapeAttributes(), MapStNode2GEANTVis(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TNode::SetVisibility(), x, and y.
Referenced by CreateTNode().
void TVolume::DeletePosition | ( | TVolumePosition * | position | ) | [virtual] |
Definition at line 696 of file TVolume.cxx.
References TList::FirstLink(), GetListOfPositions(), TVolumePosition::GetNode(), TObjLink::GetObject(), TObjLink::Next(), TList::Remove(), and TDataSet::Remove().
Reimplemented from TObject.
Definition at line 341 of file TVolume.cxx.
References DistancetoNodePrimitive().
Referenced by TVolumeView::DistancetoPrimitive().
void TVolume::Draw | ( | Option_t * | depth = "3" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 430 of file TVolume.cxx.
References TObject::AppendPad(), buffer, TString::Contains(), TView::CreateView(), TDataSet::GetParent(), gPad, gROOT, kTRUE, TROOT::MakeDefCanvas(), Paint(), TView::SetAutoRange(), snprintf, and TString::ToLower().
Referenced by TVolumePosition::Draw(), and DrawOnly().
void TVolume::DrawOnly | ( | Option_t * | option = "" |
) | [virtual] |
TRotMatrix * TVolume::GetIdentity | ( | ) | [static] |
Definition at line 507 of file TVolume.cxx.
References THashList::AddFirst(), TGeometry::GetListOfMatrices(), TRotMatrix::GetMatrix(), TGeometry::GetRotMatrix(), gGeometry, gIdentity, TRotMatrix::SetMatrix(), TRotMatrix::SetName(), and TNamed::SetTitle().
Referenced by Add(), ClassImp(), G__G__Table_221_0_23(), G__setup_memfuncTVolume(), TVolumePosition::Local2Master(), TVolumePosition::Master2Local(), TVolumePosition::Reset(), TVolumePosition::TVolumePosition(), and TVolumeView::TVolumeView().
Reimplemented from TObject.
Definition at line 530 of file TVolume.cxx.
References TObject::ClassName(), fListOfShapes, TNamed::GetName(), TNamed::GetTitle(), gPad, info, TView::NDCtoWC(), snprintf, and x.
const Option_t* TVolume::GetOption | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 84 of file TVolume.h.
References TString::Data(), and fOption.
Referenced by CreateTNode(), and TVolumePosition::GetOption().
TShape* TVolume::GetShape | ( | ) | const [inline] |
Definition at line 85 of file TVolume.h.
References fShape.
Referenced by TVolumePosition::Browse(), CreateTNode(), and TVolumeView::DistancetoPrimitive().
TList* TVolume::GetListOfShapes | ( | ) | const [inline] |
Definition at line 86 of file TVolume.h.
References fListOfShapes.
Referenced by TVolumeView::Sizeof3D().
Definition at line 720 of file TVolume.cxx.
References TVirtualPad::cd(), TView::CreateView(), TView::GetRange(), gGeometry, gPad, kTRUE, Paint(), TView::SetAutoRange(), TGeometry::SetGeomLevel(), and TGeometry::UpdateTempMatrix().
virtual ENodeSEEN TVolume::GetVisibility | ( | ) | const [inline, virtual] |
Definition at line 88 of file TVolume.h.
References fVisibility.
Referenced by CreateTNode(), DistancetoNodePrimitive(), TVolumeView::DistancetoPrimitive(), TVolumeView::GetVisibility(), TVolumePosition::GetVisibility(), PaintNodePosition(), PaintShape(), TVolumeView::Sizeof3D(), and Sizeof3D().
virtual TList* TVolume::GetListOfPositions | ( | ) | [inline, virtual] |
Definition at line 89 of file TVolume.h.
References TObjectSet::GetObject().
Referenced by Add(), Browse(), CreateTNode(), DeletePosition(), DistancetoNodePrimitive(), PaintNodePosition(), TVolumeView::TVolumeView(), and ~TVolume().
virtual ULong_t TVolume::Hash | ( | ) | const [inline, virtual] |
void TVolume::ImportShapeAttributes | ( | ) | [virtual] |
Definition at line 552 of file TVolume.cxx.
References fShape, TDataSet::GetCollection(), TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), ImportShapeAttributes(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), and TAttLine::SetLineWidth().
Referenced by ImportShapeAttributes(), and TVolume().
Bool_t TVolume::IsMarked | ( | ) | const [inline, virtual] |
Reimplemented from TDataSet.
Definition at line 104 of file TVolume.h.
References TDataSet::kMark, and TObject::TestBit().
Referenced by TVolumeView::TVolumeView().
virtual Bool_t TVolume::Is3D | ( | ) | const [inline, virtual] |
virtual TList* TVolume::Nodes | ( | ) | const [inline, virtual] |
void TVolume::Paint | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 573 of file TVolume.cxx.
References gGeometry, PaintNodePosition(), TGeometry::SetGeomLevel(), and TGeometry::UpdateTempMatrix().
Referenced by Draw(), and GetLocalRange().
void TVolume::PaintShape | ( | Option_t * | option = "" |
) | [virtual] |
Definition at line 639 of file TVolume.cxx.
References TVirtualViewer3D::AddObject(), buffer, fListOfShapes, fShape, TShape::GetBuffer3D(), TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), GetVisibility(), gPad, TBuffer3D::kBoundingBox, TBuffer3D::kCore, TBuffer3D::kNone, TBuffer3D::kShapeSpecific, kThisUnvisible, kTRUE, TAttFill::Modify(), TAttLine::Modify(), TShape::Paint(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TTablePadView3D::SetLineAttr(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), and TAttLine::SetLineWidth().
Referenced by TVolumeView::Paint(), and PaintNodePosition().
void TVolume::SetVisibility | ( | ENodeSEEN | vis = TVolume::kBothVisible |
) | [virtual] |
Definition at line 747 of file TVolume.cxx.
References fVisibility.
Referenced by DrawOnly(), TPolyLineShape::PaintNode(), TVolumePosition::SetVisibility(), and TVolumeView::SetVisibility().
void TVolume::Sizeof3D | ( | ) | const [virtual] |
Reimplemented from TAtt3D.
Definition at line 761 of file TVolume.cxx.
References fListOfShapes, GetVisibility(), TShape::GetVisibility(), kSonUnvisible, kThisUnvisible, Nodes(), TAtt3D::Sizeof3D(), and Sizeof3D().
Referenced by Sizeof3D().
virtual void TVolume::Add | ( | TVolumePosition * | position | ) | [protected, virtual] |
virtual TVolumePosition* TVolume::Add | ( | TVolume * | node, | |
TVolumePosition * | nodePosition | |||
) | [protected, virtual] |
virtual Int_t TVolume::DistancetoNodePrimitive | ( | Int_t | px, | |
Int_t | py, | |||
TVolumePosition * | position = 0 | |||
) | [protected, virtual] |
void TVolume::SetPositionsList | ( | TList * | list = 0 |
) | [inline, protected] |
virtual void TVolume::PaintNodePosition | ( | Option_t * | option = "" , |
|
TVolumePosition * | postion = 0 | |||
) | [protected, virtual] |
virtual TVolumePosition* TVolume::Add | ( | TVolume * | node, | |
Double_t | x = 0 , |
|||
Double_t | y = 0 , |
|||
Double_t | z = 0 , |
|||
TRotMatrix * | matrix = 0 , |
|||
UInt_t | id = 0 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
virtual TVolumePosition* TVolume::Add | ( | TVolume * | node, | |
Double_t | x, | |||
Double_t | y, | |||
Double_t | z, | |||
const char * | matrixname, | |||
UInt_t | id = 0 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
virtual void TVolume::Browse | ( | TBrowser * | b | ) | [virtual] |
Reimplemented from TObjectSet.
virtual TNode* TVolume::CreateTNode | ( | const TVolumePosition * | position = 0 |
) | [virtual] |
virtual void TVolume::DeletePosition | ( | TVolumePosition * | position | ) | [virtual] |
Reimplemented from TObject.
virtual void TVolume::DrawOnly | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
static TRotMatrix* TVolume::GetIdentity | ( | ) | [static] |
Reimplemented from TObject.
const Option_t* TVolume::GetOption | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 84 of file TVolume.h.
References TString::Data(), and fOption.
TShape* TVolume::GetShape | ( | ) | const [inline] |
TList* TVolume::GetListOfShapes | ( | ) | const [inline] |
virtual ENodeSEEN TVolume::GetVisibility | ( | ) | const [inline, virtual] |
virtual TList* TVolume::GetListOfPositions | ( | ) | [inline, virtual] |
virtual ULong_t TVolume::Hash | ( | ) | const [inline, virtual] |
virtual void TVolume::ImportShapeAttributes | ( | ) | [virtual] |
virtual Bool_t TVolume::Is3D | ( | ) | const [inline, virtual] |
virtual TList* TVolume::Nodes | ( | ) | const [inline, virtual] |
virtual void TVolume::PaintShape | ( | Option_t * | option = "" |
) | [virtual] |
virtual void TVolume::SetVisibility | ( | ENodeSEEN | vis = TVolume::kBothVisible |
) | [virtual] |
virtual void TVolume::Sizeof3D | ( | ) | const [virtual] |
Reimplemented from TAtt3D.
TPolyLineShape [friend] |
TShape* TVolume::fShape [protected] |
Definition at line 49 of file TVolume.h.
Referenced by Add(), GetShape(), ImportShapeAttributes(), PaintShape(), and TVolume().
TList* TVolume::fListOfShapes [protected] |
Definition at line 50 of file TVolume.h.
Referenced by Add(), DistancetoNodePrimitive(), GetListOfShapes(), GetObjectInfo(), PaintShape(), Sizeof3D(), and ~TVolume().
TString TVolume::fOption [protected] |
ENodeSEEN TVolume::fVisibility [protected] |
Definition at line 52 of file TVolume.h.
Referenced by GetVisibility(), SetVisibility(), and TVolume().
TShape* TVolume::fShape [protected] |
TList* TVolume::fListOfShapes [protected] |