#include <TShape.h>
Inheritance diagram for TShape:
Public Member Functions | |
TShape () | |
TShape (const char *name, const char *title, const char *material) | |
TShape (const TShape &) | |
TShape & | operator= (const TShape &) |
virtual | ~TShape () |
virtual const TBuffer3D & | GetBuffer3D (Int_t reqSections) const |
TMaterial * | GetMaterial () const |
virtual Int_t | GetNumber () const |
Int_t | GetVisibility () const |
virtual void | Paint (Option_t *option="") |
virtual void | SetName (const char *name) |
virtual void | SetPoints (Double_t *points) const |
virtual void | SetVisibility (Int_t vis) |
void | TransformPoints (Double_t *points, UInt_t NbPnts) const |
TShape () | |
TShape (const char *name, const char *title, const char *material) | |
TShape (const TShape &) | |
TShape & | operator= (const TShape &) |
virtual | ~TShape () |
virtual const TBuffer3D & | GetBuffer3D (Int_t reqSections) const |
TMaterial * | GetMaterial () const |
virtual Int_t | GetNumber () const |
Int_t | GetVisibility () const |
virtual void | Paint (Option_t *option="") |
virtual void | SetName (const char *name) |
virtual void | SetPoints (Double_t *points) const |
virtual void | SetVisibility (Int_t vis) |
void | TransformPoints (Double_t *points, UInt_t NbPnts) const |
Protected Member Functions | |
virtual void | FillBuffer3D (TBuffer3D &buffer, Int_t reqSections) const |
Int_t | GetBasicColor () const |
Int_t | ShapeDistancetoPrimitive (Int_t numPoints, Int_t px, Int_t py) |
virtual void | FillBuffer3D (TBuffer3D &buffer, Int_t reqSections) const |
Int_t | GetBasicColor () const |
Int_t | ShapeDistancetoPrimitive (Int_t numPoints, Int_t px, Int_t py) |
Protected Attributes | |
Int_t | fNumber |
Int_t | fVisibility |
TMaterial * | fMaterial |
TMaterial * | fMaterial |
Definition at line 47 of file TShape.h.
TShape::TShape | ( | ) |
TShape::TShape | ( | const char * | name, | |
const char * | title, | |||
const char * | material | |||
) |
Definition at line 64 of file TShape.cxx.
References TList::Add(), fMaterial, fNumber, fVisibility, TGeometry::GetListOfShapes(), TGeometry::GetMaterial(), TCollection::GetSize(), gGeometry, and TAttLine::SetLineColor().
TShape::TShape | ( | const TShape & | ) |
Definition at line 82 of file TShape.cxx.
TShape::~TShape | ( | ) | [virtual] |
Definition at line 111 of file TShape.cxx.
References TGeometry::GetListOfShapes(), gGeometry, and THashList::Remove().
TShape::TShape | ( | ) |
TShape::TShape | ( | const char * | name, | |
const char * | title, | |||
const char * | material | |||
) |
TShape::TShape | ( | const TShape & | ) |
virtual TShape::~TShape | ( | ) | [virtual] |
Definition at line 217 of file TShape.cxx.
References buffer, TAttLine::GetLineColor(), gNode, TBuffer3D::kCore, kFALSE, TBuffer3D::kRaw, and TBuffer3D::kRawSizes.
Referenced by TBRIK::GetBuffer3D(), TTUBS::GetBuffer3D(), TSPHE::GetBuffer3D(), TPCON::GetBuffer3D(), TXTRU::GetBuffer3D(), and TTUBE::GetBuffer3D().
Int_t TShape::GetBasicColor | ( | ) | const [protected] |
Definition at line 249 of file TShape.cxx.
References TAttLine::GetLineColor().
Referenced by TBRIK::GetBuffer3D(), TTUBS::GetBuffer3D(), TSPHE::GetBuffer3D(), TXTRU::GetBuffer3D(), TPCON::SetSegsAndPols(), and TTUBE::SetSegsAndPols().
Definition at line 120 of file TShape.cxx.
References ROOT::Math::gv_detail::dist(), gGeometry, gPad, i, points, SetPoints(), TMath::Sqrt(), TView::WCtoNDC(), and x1.
Referenced by TSPHE::DistancetoPrimitive(), TTUBE::DistancetoPrimitive(), TPCON::DistancetoPrimitive(), TXTRU::DistancetoPrimitive(), TBRIK::DistancetoPrimitive(), and TTUBS::DistancetoPrimitive().
Definition at line 95 of file TShape.cxx.
References fMaterial, fNumber, fVisibility, TNamed::operator=(), and ts.
Referenced by TPCON::operator=(), and TTUBE::operator=().
Definition at line 261 of file TShape.cxx.
References buffer, TBuffer3DTypes::kGeneric, and TObject::Warning().
Referenced by Paint(), TNode::Paint(), TVolume::PaintShape(), and TVolumeView::PaintShape().
TMaterial* TShape::GetMaterial | ( | ) | const [inline] |
virtual Int_t TShape::GetNumber | ( | ) | const [inline, virtual] |
Definition at line 69 of file TShape.h.
References fNumber.
Referenced by TGeometry::GetShapeByNumber().
Int_t TShape::GetVisibility | ( | ) | const [inline] |
Definition at line 70 of file TShape.h.
References fVisibility.
Referenced by TVolume::DistancetoNodePrimitive(), TNode::DistancetoPrimitive(), TVolumeView::DistancetoPrimitive(), TNode::Paint(), TVolumeView::PaintShape(), TNode::Sizeof3D(), TVolumeView::Sizeof3D(), and TVolume::Sizeof3D().
void TShape::Paint | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 146 of file TShape.cxx.
References TVirtualViewer3D::AddObject(), buffer, GetBuffer3D(), gPad, and TBuffer3D::kAll.
Referenced by TVolume::PaintShape(), and TVolumeView::PaintShape().
void TShape::SetName | ( | const char * | name | ) | [inline, virtual] |
void TShape::SetPoints | ( | Double_t * | points | ) | const [virtual] |
Definition at line 158 of file TShape.cxx.
References TObject::AbstractMethod().
Referenced by ShapeDistancetoPrimitive().
virtual void TShape::SetVisibility | ( | Int_t | vis | ) | [inline, virtual] |
Definition at line 74 of file TShape.h.
References fVisibility.
Referenced by na49(), and xtruSamples().
Definition at line 196 of file TShape.cxx.
References gGeometry, j, and TGeometry::Local2Master().
Referenced by TTUBS::GetBuffer3D(), TBRIK::GetBuffer3D(), TSPHE::GetBuffer3D(), TPCON::GetBuffer3D(), TXTRU::GetBuffer3D(), and TTUBE::GetBuffer3D().
virtual void TShape::FillBuffer3D | ( | TBuffer3D & | buffer, | |
Int_t | reqSections | |||
) | const [protected, virtual] |
Int_t TShape::GetBasicColor | ( | ) | const [protected] |
TMaterial* TShape::GetMaterial | ( | ) | const [inline] |
virtual Int_t TShape::GetNumber | ( | ) | const [inline, virtual] |
Int_t TShape::GetVisibility | ( | ) | const [inline] |
virtual void TShape::SetName | ( | const char * | name | ) | [virtual] |
Reimplemented from TNamed.
virtual void TShape::SetPoints | ( | Double_t * | points | ) | const [virtual] |
virtual void TShape::SetVisibility | ( | Int_t | vis | ) | [inline, virtual] |
Int_t TShape::fNumber [protected] |
Int_t TShape::fVisibility [protected] |
Definition at line 51 of file TShape.h.
Referenced by GetVisibility(), operator=(), SetVisibility(), and TShape().
TMaterial* TShape::fMaterial [protected] |
TMaterial* TShape::fMaterial [protected] |