ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TBRIK
29 #include "TBRIK.h"
30 #endif
31 
32 class TPARA : public TBRIK {
33 protected:
34  Float_t fAlpha; // angle w.r.t. the y axis from the centre of the low y to the high y
35  Float_t fTheta; // polar angle from the centre of the low z to the high z
36  Float_t fPhi; // polar angle from the centre of the low z to the high z
37 
38  virtual void SetPoints(Double_t *points) const;
39 
40 public:
41  TPARA();
42  TPARA(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz,
43  Float_t alpha, Float_t theta, Float_t phi);
44  virtual ~TPARA();
45 
46  virtual Float_t GetAlpha() const {return fAlpha;}
47  virtual Float_t GetTheta() const {return fTheta;}
48  virtual Float_t GetPhi() const {return fPhi;}
49 
50  ClassDef(TPARA,1) //PARA shape
51 };
52 
53 #endif
Float_t fPhi
Definition: TPARA.h:36
virtual Float_t GetAlpha() const
Definition: TPARA.h:46
float Float_t
Definition: RtypesCore.h:53
Float_t theta
Definition: shapesAnim.C:5
A parallelepiped.
Definition: TPARA.h:32
Float_t fTheta
Definition: TPARA.h:35
Float_t fAlpha
Definition: TPARA.h:34
ClassDef(TAttLine, 2)
virtual Float_t GetPhi() const
Definition: TPARA.h:48
virtual void SetPoints(Double_t *points) const
Create PARA points.
Definition: TPARA.cxx:70
point * points
Definition: X3DBuffer.c:20
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
Float_t phi
Definition: shapesAnim.C:6
A box with faces perpendicular to the axes.
Definition: TBRIK.h:28
double Double_t
Definition: RtypesCore.h:55
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual ~TPARA()
PARA shape default destructor.
Definition: TPARA.cxx:63
virtual Float_t GetTheta() const
Definition: TPARA.h:47