ROOT  6.06/09
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 #ifndef ROOT_TTUBE
27 #include "TTUBE.h"
28 #endif
29 
30 class TCONE : public TTUBE {
31 
32 protected:
33  Float_t fRmin2; // inside radius at the high z limit
34  Float_t fRmax2; // outside radius at the high z limit
35 
36  virtual void SetPoints(Double_t *points) const;
37 public:
38  TCONE();
39  TCONE(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
40  Float_t rmin2, Float_t rmax2);
41  TCONE(const char *name, const char *title, const char *material, Float_t dz, Float_t rmax1, Float_t rmax2 =0);
42  virtual ~TCONE();
43 
44  Float_t GetRmin2() const {return fRmin2;}
45  Float_t GetRmax2() const {return fRmax2;}
46 
47  ClassDef(TCONE,1) //CONE shape
48 };
49 
50 #endif
float Float_t
Definition: RtypesCore.h:53
virtual void SetPoints(Double_t *points) const
Create CONE points.
Definition: TCONE.cxx:76
ClassDef(TAttLine, 2)
Float_t fRmin2
Definition: TCONE.h:33
point * points
Definition: X3DBuffer.c:20
Float_t GetRmax2() const
Definition: TCONE.h:45
virtual ~TCONE()
CONE shape default destructor.
Definition: TCONE.cxx:69
double Double_t
Definition: RtypesCore.h:55
#define name(a, b)
Definition: linkTestLib0.cpp:5
Float_t GetRmin2() const
Definition: TCONE.h:44
A tube.
Definition: TTUBE.h:34
A conical tube.
Definition: TCONE.h:30
Float_t fRmax2
Definition: TCONE.h:34