Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
28class TCONE : public TTUBE {
29
30protected:
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;
35public:
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
float Float_t
Definition RtypesCore.h:57
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A conical tube.
Definition TCONE.h:28
virtual void SetPoints(Double_t *points) const
Create CONE points.
Definition TCONE.cxx:76
virtual ~TCONE()
CONE shape default destructor.
Definition TCONE.cxx:69
TCONE()
CONE shape default constructor.
Definition TCONE.cxx:38
Float_t GetRmax2() const
Definition TCONE.h:43
Float_t fRmin2
Definition TCONE.h:31
Float_t GetRmin2() const
Definition TCONE.h:42
Float_t fRmax2
Definition TCONE.h:32
A tube.
Definition TTUBE.h:32