TPCON


class description - source file - inheritance tree

class TPCON : public TShape


    protected:
virtual void MakeTableOfCoSin() virtual void PaintGLPoints(Float_t* vertex) public:
TPCON TPCON() TPCON TPCON(Text_t* name, Text_t* title, Text_t* material, Float_t phi1, Float_t dphi1, Int_t nz) TPCON TPCON(TPCON&) virtual void ~TPCON() TClass* Class() virtual void DefineSection(Int_t secNum, Float_t z, Float_t rmin, Float_t rmax) virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Float_t GetDhi1() virtual Float_t* GetDz() virtual Int_t GetNdiv() virtual Int_t GetNumberOfDivisions() const virtual Int_t GetNz() virtual Float_t GetPhi1() virtual Float_t* GetRmax() virtual Float_t* GetRmin() virtual TClass* IsA() const virtual void Paint(Option_t* option) virtual void SetNumberOfDivisions(Int_t p) virtual void SetPoints(Float_t* buff) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() const virtual void Streamer(TBuffer& b)

Data Members

private:
Double_t* fSiTab Table of sin(fPhi1) .... sin(fPhil+fDphi1) Double_t* fCoTab Table of cos(fPhi1) .... cos(fPhil+fDphi1) protected:
Float_t fPhi1 lower phi limit Float_t fDphi1 range in phi Int_t fNz number of z segments Float_t* fRmin pointer to array of inside radiuses Float_t* fRmax pointer to array of outside radiuses Float_t* fDz pointer to array of half lengths in z Int_t fNdiv number of divisions


See also

TPGON

Class Description

  

PCON is a polycone. It has the following parameters: - name name of the shape - title shape's title - material (see TMaterial) - phi1 the azimuthal angle phi at which the volume begins (angles are counted counterclockwise) - dphi opening angle of the volume, which extends from phi1 to phi1+dphi - nz number of planes perpendicular to the z axis where the dimension of the section is given -- this number should be at least 2 - rmin array of dimension nz with minimum radius at a given plane - rmax array of dimension nz with maximum radius at a given plane - z array of dimension nz with z position of given plane

TPCON()
*-*-*-*-*-*-*-*-*-*-*-*-*PCON shape default constructor*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ==============================

TPCON(Text_t *name, Text_t *title, Text_t *material, Float_t phi1, Float_t dphi1, Int_t nz) : TShape(name, title,material)
*-*-*-*-*-*-*-*-*-*-*-*-*PCON shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================
*-*  Parameters of the nz positions must be entered via TPCON::DefineSection.

void MakeTableOfCoSin()

~TPCON()
*-*-*-*-*-*-*-*-*-*-*-*-*PCON shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

void DefineSection(Int_t secNum, Float_t z, Float_t rmin, Float_t rmax)
*-*-*-*-*-*-*-*-*-*Defines section secNum of the polycone*-*-*-*-*-*-*-*-*-*-*
*-*                ======================================

     - rmin  radius of the inner circle in the cross-section

     - rmax  radius of the outer circle in the cross-section

     - z     z coordinate of the section

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

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 p)

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

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

void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================



Inline Functions


              Int_t GetNumberOfDivisions() const
            Float_t GetPhi1()
            Float_t GetDhi1()
              Int_t GetNz()
           Float_t* GetRmin()
           Float_t* GetRmax()
           Float_t* GetDz()
              Int_t GetNdiv()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
              TPCON TPCON(TPCON&)


Author: Nenad Buncic 29/09/95
Last update: 2.23/02 03/09/99 11.39.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.