TSPHE


class description - source file - inheritance tree

class TSPHE : public TShape


    protected:
virtual void MakeTableOfCoSin() virtual void PaintGLPoints(Float_t* vertex) public:
TSPHE TSPHE() TSPHE TSPHE(const char* name, const char* title, const char* material, Float_t rmin, Float_t rmax, Float_t themin, Float_t themax, Float_t phimin, Float_t phimax) TSPHE TSPHE(const char* name, const char* title, const char* material, Float_t rmax) TSPHE TSPHE(TSPHE&) virtual void ~TSPHE() static TClass* Class() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual Float_t GetAspectRatio() virtual Int_t GetNumberOfDivisions() const virtual Float_t GetPhimax() virtual Float_t GetPhimin() virtual Float_t GetRmax() virtual Float_t GetRmin() virtual Float_t GetThemax() virtual Float_t GetThemin() virtual TClass* IsA() const virtual void Paint(Option_t* option) virtual void SetAspectRatio(Float_t factor = 1.0) virtual void SetEllipse(Float_t* factors) 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) void StreamerNVirtual(TBuffer& b)

Data Members

private:
Double_t* fSiTab ! Table of sin(fPhimin) .... sin(Phi) Double_t* fCoTab ! Table of cos(fPhimin) .... cos(Phi) Double_t* fCoThetaTab ! Table of sin(gThemin) .... cos(Theta) Int_t fNdiv number of divisions Int_t fNz ! number of sections Float_t fAspectRatio Relation between asumth and grid size (by default 1.0) protected:
Float_t fRmin minimum radius Float_t fRmax maximum radius Float_t fThemin minimum theta Float_t fThemax maximum theta Float_t fPhimin minimum phi Float_t fPhimax maximum phi Float_t faX Coeff along Ox Float_t faY Coeff along Oy Float_t faZ Coeff along Oz

Class Description

  

SPHE is a Sphere. It has 9 parameters: - name name of the shape - title shape's title - material (see TMaterial) - rmin minimum radius - rmax maximum radius - themin theta min - themax theta max - phimin phi min - phimax phi max

TSPHE()
*-*-*-*-*-*-*-*-*-*-*-*-*SPHE shape default constructor*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ==============================

TSPHE(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t themin, Float_t themax, Float_t phimin, Float_t phimax) : TShape(name, title,material)
*-*-*-*-*-*-*-*-*-*-*-*-*SPHE shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

TSPHE(const char *name, const char *title, const char *material, Float_t rmax) : TShape(name, title,material)
*-*-*-*-*-*-*-*-*-*-*-*-*SPHE shape "simplified" constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ===================================

~TSPHE()
*-*-*-*-*-*-*-*-*-*-*-*-*SPHE shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =============================

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

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

void SetEllipse(Float_t *factors)

void SetNumberOfDivisions (Int_t p)

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

void MakeTableOfCoSin()

void PaintGLPoints(Float_t *vertex)

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

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



Inline Functions


            Float_t GetRmin()
            Float_t GetRmax()
            Float_t GetThemin()
            Float_t GetThemax()
            Float_t GetPhimin()
            Float_t GetPhimax()
            Float_t GetAspectRatio()
              Int_t GetNumberOfDivisions() const
               void SetAspectRatio(Float_t factor = 1.0)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
              TSPHE TSPHE(TSPHE&)


Author: Rene Brun 13/06/97
Last update: root/g3d:$Name: $:$Id: TSPHE.cxx,v 1.2 2000/11/21 20:18:22 brun 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.