Logo ROOT  
Reference Guide
TPARA.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 19/09/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TPARA
13 #define ROOT_TPARA
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TPARA //
19 // //
20 // PARA is parallelepiped. It has 6 parameters, the half length in x, //
21 // the half length in y, the half length in z, the angle w.r.t. the y //
22 // axis from the centre of the low y edge to the centre of the high y //
23 // edge, and the theta phi polar angles from the centre of the low //
24 // z face to the centre of the high z face. //
25 // //
26 ////////////////////////////////////////////////////////////////////////////
27 
28 #include "TBRIK.h"
29 
30 class TPARA : public TBRIK {
31 protected:
32  Float_t fAlpha; // angle w.r.t. the y axis from the centre of the low y to the high y
33  Float_t fTheta; // polar angle from the centre of the low z to the high z
34  Float_t fPhi; // polar angle from the centre of the low z to the high z
35 
36  virtual void SetPoints(Double_t *points) const;
37 
38 public:
39  TPARA();
40  TPARA(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz,
41  Float_t alpha, Float_t theta, Float_t phi);
42  virtual ~TPARA();
43 
44  virtual Float_t GetAlpha() const {return fAlpha;}
45  virtual Float_t GetTheta() const {return fTheta;}
46  virtual Float_t GetPhi() const {return fPhi;}
47 
48  ClassDef(TPARA,1) //PARA shape
49 };
50 
51 #endif
TPARA::fTheta
Float_t fTheta
Definition: TPARA.h:33
TPARA::TPARA
TPARA()
PARA shape default constructor.
Definition: TPARA.cxx:42
TPARA::fPhi
Float_t fPhi
Definition: TPARA.h:34
TPARA::SetPoints
virtual void SetPoints(Double_t *points) const
Create PARA points.
Definition: TPARA.cxx:70
TPARA::GetAlpha
virtual Float_t GetAlpha() const
Definition: TPARA.h:44
TBRIK
A box with faces perpendicular to the axes.
Definition: TBRIK.h:26
Float_t
float Float_t
Definition: RtypesCore.h:57
TBRIK.h
TPARA
A parallelepiped.
Definition: TPARA.h:30
TPARA::GetTheta
virtual Float_t GetTheta() const
Definition: TPARA.h:45
TPARA::fAlpha
Float_t fAlpha
Definition: TPARA.h:32
Double_t
double Double_t
Definition: RtypesCore.h:59
points
point * points
Definition: X3DBuffer.c:22
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
TPARA::GetPhi
virtual Float_t GetPhi() const
Definition: TPARA.h:46
TPARA::~TPARA
virtual ~TPARA()
PARA shape default destructor.
Definition: TPARA.cxx:63