Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTUBE Class Reference

A tube.

It has 6 parameters:

  • name: name of the shape
  • title: shape's title
  • material: (see TMaterial)
  • rmin: inside radius
  • rmax: outside radius
  • dz: half length in z

Definition at line 32 of file TTUBE.h.

Public Member Functions

 TTUBE ()
 TUBE shape default constructor.
 
 TTUBE (const char *name, const char *title, const char *material, Float_t rmax, Float_t dz)
 TUBE shape "simplified" constructor.
 
 TTUBE (const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz, Float_t aspect=1)
 TUBE shape normal constructor.
 
 ~TTUBE () override
 TUBE shape default destructor.
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Compute distance from point px,py to a TUBE.
 
virtual Float_t GetAspectRatio () const
 
const TBuffer3DGetBuffer3D (Int_t reqSections) const override
 Get buffer 3d.
 
virtual Float_t GetDz () const
 
virtual Int_t GetNdiv () const
 
virtual Int_t GetNumberOfDivisions () const
 
virtual Float_t GetRmax () const
 
virtual Float_t GetRmin () const
 
TClassIsA () const override
 
virtual void SetAspectRatio (Float_t factor=1)
 
virtual void SetNumberOfDivisions (Int_t ndiv)
 Set number of divisions used to draw this tube.
 
void Sizeof3D () const override
 Return total X3D needed by TNode::ls (when called with option "x")
 
void Streamer (TBuffer &) override
 Stream an object of class TTUBE.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TShape
 TShape ()
 Shape default constructor.
 
 TShape (const char *name, const char *title, const char *material)
 Shape normal constructor.
 
 TShape (const TShape &)
 copy constructor
 
 ~TShape () override
 Shape default destructor.
 
TMaterialGetMaterial () const
 
virtual Int_t GetNumber () const
 
Int_t GetVisibility () const
 
TShapeoperator= (const TShape &)
 assignment operator
 
void Paint (Option_t *option="") override
 This method is used only when a shape is painted outside a TNode.
 
void SetName (const char *name) override
 Set the name of the TNamed.
 
virtual void SetVisibility (Int_t vis)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void TransformPoints (Double_t *points, UInt_t NbPnts) const
 Transform points (LocalToMaster)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.