TTUBS


class description - source file - inheritance tree

class TTUBS : public TTUBE


    protected:
virtual void MakeTableOfCoSin() virtual void PaintGLPoints(Float_t* vertex) public:
TTUBS TTUBS() TTUBS TTUBS(const char* name, const char* title, const char* material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2) TTUBS TTUBS(const char* name, const char* title, const char* material, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2) TTUBS TTUBS(TTUBS&) virtual void ~TTUBS() static TClass* Class() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Float_t GetPhi1() const virtual Float_t GetPhi2() const virtual TClass* IsA() const virtual void Paint(Option_t* option) virtual void SetPoints(Float_t* buff) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Float_t fPhi1 first phi limit Float_t fPhi2 second phi limit


See also

TCONS, TCTUB

Class Description

  

TUBS is a segment of a tube. It has 8 parameters: - name name of the shape - title shape's title - material (see TMaterial) - rmin inside radius - rmax outside radius - dz half length in z - phi1 starting angle of the segment - phi2 ending angle of the segment NOTE: phi1 should be smaller than phi2. If this is not the case, the system adds 360 degrees to phi2.

TTUBS()
*-*-*-*-*-*-*-*-*-*-*-*TUBS shape default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ==============================

TTUBS(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2) : TTUBE(name,title,material,rmin,rmax,dz)
*-*-*-*-*-*-*-*-*-*-*-*-*TUBS shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

TTUBS(const char *name, const char *title, const char *material, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2) : TTUBE(name,title,material,rmax,dz)
*-*-*-*-*-*-*-*-*-*-*-*-*TUBS shape "simplified" constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ===================================

void MakeTableOfCoSin()

~TTUBS()
*-*-*-*-*-*-*-*-*-*-*-*-*TUBS 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 SetPoints(Float_t *buff)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Create TUBS points*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                            ==================

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



Inline Functions


            Float_t GetPhi1() const
            Float_t GetPhi2() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
              TTUBS TTUBS(TTUBS&)


Author: Nenad Buncic 18/09/95
Last update: root/g3d:$Name: $:$Id: TTUBS.cxx,v 1.1.1.1 2000/05/16 17:00:43 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


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.