Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTUBS.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_TTUBS
13#define ROOT_TTUBS
14
15
16////////////////////////////////////////////////////////////////////////////
17// //
18// TTUBS //
19// //
20// TUBS is a phi segment of a tube. It has 5 parameters, the same 3 as //
21// TUBE plus the phi limits. The segment start at first limit and //
22// includes increasing phi value up to the second limit or that plus //
23// 360 degrees. //
24// //
25////////////////////////////////////////////////////////////////////////////
26
27#include "TTUBE.h"
28
29class TTUBS : public TTUBE {
30protected:
31 Float_t fPhi1; // first phi limit
32 Float_t fPhi2; // second phi limit
33 void MakeTableOfCoSin() const override; // Create the table of the fSiTab; fCoTab
34
35 void SetPoints(Double_t *points) const override;
36
37public:
38 TTUBS();
39 TTUBS(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz,
40 Float_t phi1, Float_t phi2);
41 TTUBS(const char *name, const char *title, const char *material, Float_t rmax, Float_t dz,
42 Float_t phi1, Float_t phi2);
43 ~TTUBS() override;
44
45 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
46 const TBuffer3D &GetBuffer3D(Int_t reqSections) const override;
47 virtual Float_t GetPhi1() const {return fPhi1;}
48 virtual Float_t GetPhi2() const {return fPhi2;}
49 void Sizeof3D() const override;
50
51 ClassDefOverride(TTUBS,1) //TUBS shape
52};
53
54#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
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
Generic 3D primitive description class.
Definition TBuffer3D.h:18
A tube.
Definition TTUBE.h:32
A segment of a tube.
Definition TTUBS.h:29
virtual Float_t GetPhi2() const
Definition TTUBS.h:48
~TTUBS() override
TUBS shape default destructor.
Definition TTUBS.cxx:115
void SetPoints(Double_t *points) const override
Create TUBS points.
Definition TTUBS.cxx:135
virtual Float_t GetPhi1() const
Definition TTUBS.h:47
void Sizeof3D() const override
Return total X3D needed by TNode::ls (when called with option "x")
Definition TTUBS.cxx:169
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a TUBE.
Definition TTUBS.cxx:125
Float_t fPhi1
Definition TTUBS.h:31
void MakeTableOfCoSin() const override
Make table of sine and cosine.
Definition TTUBS.cxx:79
const TBuffer3D & GetBuffer3D(Int_t reqSections) const override
Get buffer 3d.
Definition TTUBS.cxx:181
Float_t fPhi2
Definition TTUBS.h:32
TTUBS()
TUBS shape default constructor.
Definition TTUBS.cxx:46