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
30class TPARA : public TBRIK {
31protected:
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
38public:
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
double Double_t
Definition: RtypesCore.h:55
float Float_t
Definition: RtypesCore.h:53
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
point * points
Definition: X3DBuffer.c:22
A box with faces perpendicular to the axes.
Definition: TBRIK.h:26
A parallelepiped.
Definition: TPARA.h:30
Float_t fAlpha
Definition: TPARA.h:32
Float_t fTheta
Definition: TPARA.h:33
virtual Float_t GetPhi() const
Definition: TPARA.h:46
TPARA()
PARA shape default constructor.
Definition: TPARA.cxx:42
Float_t fPhi
Definition: TPARA.h:34
virtual Float_t GetAlpha() const
Definition: TPARA.h:44
virtual ~TPARA()
PARA shape default destructor.
Definition: TPARA.cxx:63
virtual Float_t GetTheta() const
Definition: TPARA.h:45
virtual void SetPoints(Double_t *points) const
Create PARA points.
Definition: TPARA.cxx:70