Logo ROOT  
Reference Guide
TCONE.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 18/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_TCONE
13 #define ROOT_TCONE
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TCONE //
19 // //
20 // CONE is a conical tube. It has 5 parameters, the half length in z, //
21 // the inside and outside radius at the low z limit, and those at the //
22 // high z limit. //
23 // //
24 ////////////////////////////////////////////////////////////////////////////
25 
26 #include "TTUBE.h"
27 
28 class TCONE : public TTUBE {
29 
30 protected:
31  Float_t fRmin2; // inside radius at the high z limit
32  Float_t fRmax2; // outside radius at the high z limit
33 
34  virtual void SetPoints(Double_t *points) const;
35 public:
36  TCONE();
37  TCONE(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
38  Float_t rmin2, Float_t rmax2);
39  TCONE(const char *name, const char *title, const char *material, Float_t dz, Float_t rmax1, Float_t rmax2 =0);
40  virtual ~TCONE();
41 
42  Float_t GetRmin2() const {return fRmin2;}
43  Float_t GetRmax2() const {return fRmax2;}
44 
45  ClassDef(TCONE,1) //CONE shape
46 };
47 
48 #endif
TCONE::fRmax2
Float_t fRmax2
Definition: TCONE.h:32
TTUBE
A tube.
Definition: TTUBE.h:32
Float_t
float Float_t
Definition: RtypesCore.h:57
TTUBE.h
TCONE::fRmin2
Float_t fRmin2
Definition: TCONE.h:31
TCONE::GetRmax2
Float_t GetRmax2() const
Definition: TCONE.h:43
TCONE::TCONE
TCONE()
CONE shape default constructor.
Definition: TCONE.cxx:38
TCONE::SetPoints
virtual void SetPoints(Double_t *points) const
Create CONE points.
Definition: TCONE.cxx:76
TCONE
A conical tube.
Definition: TCONE.h:28
TCONE::~TCONE
virtual ~TCONE()
CONE shape default destructor.
Definition: TCONE.cxx:69
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
TCONE::GetRmin2
Float_t GetRmin2() const
Definition: TCONE.h:42