ROOT   6.10/09 Reference Guide
TPGON.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 29/09/95
3
4 /*************************************************************************
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. * 9 * For the list of contributors see$ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11
12 #ifndef ROOT_TPGON
13 #define ROOT_TPGON
14
15
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TPGON //
19 // //
20 // PGON is a polygone. It has at least 10 parameters, the lower phi limit,//
21 // the range in phi, the number of straight sides (of equal length) //
22 // between those phi limits, the number (at least two) of z planes where //
23 // the radius is changing for each z boundary and the z coordinate, the //
25 // //
26 ////////////////////////////////////////////////////////////////////////////
27
28 #include "TPCON.h"
29
30 class TPGON : public TPCON {
31 protected:
32  virtual void FillTableOfCoSin(Double_t phi, Double_t angstep,Int_t n) const; // Fill the table of cosin
33
34 public:
35  TPGON();
36  TPGON(const char *name, const char *title, const char *material, Float_t phi1, Float_t dphi1,
37  Int_t npdv, Int_t nz);
38  virtual ~TPGON();
39  ClassDef(TPGON,1) //PGON shape
40 };
41
42 #endif
float Float_t
Definition: RtypesCore.h:53
virtual void FillTableOfCoSin(Double_t phi, Double_t angstep, Int_t n) const
Fill the table of cos and sin to prepare drawing.
Definition: TPGON.cxx:71
int Int_t
Definition: RtypesCore.h:41
virtual ~TPGON()
PGON shape default destructor.
Definition: TPGON.cxx:64
#define ClassDef(name, id)
Definition: Rtypes.h:297
A polycone.
Definition: TPCON.h:33
A polygon.
Definition: TPGON.h:30
double Double_t
Definition: RtypesCore.h:55
const Int_t n
Definition: legend1.C:16
TPGON()
PGON shape default constructor.
Definition: TPGON.cxx:45