TTUBE


class description - source file - inheritance tree

class TTUBE : public TShape


    protected:
virtual void MakeTableOfCoSin() virtual void PaintGLPoints(Float_t* vertex) public:
TTUBE TTUBE() TTUBE TTUBE(Text_t* name, Text_t* title, Text_t* material, Float_t rmin, Float_t rmax, Float_t dz, Float_t aspect = 1) TTUBE TTUBE(Text_t* name, Text_t* title, Text_t* material, Float_t rmax, Float_t dz) TTUBE TTUBE(TTUBE&) virtual void ~TTUBE() TClass* Class() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Float_t GetAspectRatio() virtual Float_t GetDz() virtual Int_t GetNdiv() virtual Int_t GetNumberOfDivisions() virtual Float_t GetRmax() virtual Float_t GetRmin() virtual TClass* IsA() virtual void Paint(Option_t* option) virtual void SetAspectRatio(Float_t factor = 1) virtual void SetNumberOfDivisions(Int_t ndiv) virtual void SetPoints(Float_t* buff) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() virtual void Streamer(TBuffer& b)

Data Members

protected:
Float_t fRmin ellipse semi-axis in X inside Float_t fRmax ellipse semi-axis in X outside Float_t fDz half length in z Int_t fNdiv number of segments (precision) Float_t fAspectRatio defines (the ellipse semi-axis in Y)/(the ellipse semi-axis in X) Double_t* fSiTab Table of sin(fPhi1) .... sin(fPhil+fDphi1) Double_t* fCoTab Table of cos(fPhi1) .... cos(fPhil+fDphi1)


See also

TCONE, TELTU, THYPE, TTUBS

Class Description

  

TUBE is 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

TTUBE()
*-*-*-*-*-*-*-*-*-*-*-*TUBE shape default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ==============================

TTUBE(Text_t *name, Text_t *title, Text_t *material, Float_t rmin, Float_t rmax, Float_t dz,Float_t aspect) : TShape(name, title,material)
*-*-*-*-*-*-*-*-*-*-*-*-*TUBE shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

TTUBE(Text_t *name, Text_t *title, Text_t *material, Float_t rmax, Float_t dz) : TShape(name, title,material)
*-*-*-*-*-*-*-*-*-*-*-*-*TUBE shape "simplified" constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ===================================

void MakeTableOfCoSin()

~TTUBE()
*-*-*-*-*-*-*-*-*-*-*-*-*TUBE shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*Compute distance from point px,py to a TUBE*-*-*-*-*-*-*
*-*            ===========================================
*-*
*-*  Compute the closest distance of approach from point px,py to each
*-*  computed outline point of the TUBE.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

void Paint(Option_t *option)
*-*-*-*-*-*-*-*Paint this 3-D shape with its current attributes*-*-*-*-*-*-*-*
*-*            ================================================

void PaintGLPoints(Float_t *vertex)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Paint BRIK via OpenGL *-*-*-*-*-*-*-*-*-*-*-*-*
*-*                            =====================

void SetNumberOfDivisions (Int_t ndiv)
*-*-*-*-*Set number of divisions used to draw this tube*-*-*-*-*-*-*-*-*-*-*
*-*      ==============================================

void SetPoints(Float_t *buff)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Create TUBE points*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                          ==================

void Sizeof3D() const
*-*-*-*-*-*Return total X3D size of this shape with its attributes*-*-*-*-*-*-*
*-*        =======================================================

void Streamer(TBuffer &R__b)
 Stream an object of class TTUBE.



Inline Functions


            Float_t GetRmin()
            Float_t GetRmax()
            Float_t GetDz()
              Int_t GetNdiv()
            Float_t GetAspectRatio()
              Int_t GetNumberOfDivisions()
               void SetAspectRatio(Float_t factor = 1)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
              TTUBE TTUBE(TTUBE&)


Author: Nenad Buncic 18/09/95
Last update: 2.22/04 03/06/99 16.40.45 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.