Logo ROOT   6.08/07
Reference Guide
TBRIK.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Nenad Buncic 17/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_TBRIK
13 #define ROOT_TBRIK
14 
15 
16 ////////////////////////////////////////////////////////////////////////////
17 // //
18 // TBRIK //
19 // //
20 // BRIK is a box. It has 3 parameters, the half length in x, y, and z //
21 // //
22 ////////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TShape
25 #include "TShape.h"
26 #endif
27 
28 class TBRIK : public TShape {
29 
30 protected:
31  Float_t fDx; // half length in x
32  Float_t fDy; // half length in y
33  Float_t fDz; // half length in z
34 
35  virtual void SetPoints(Double_t * points) const;
36 public:
37  TBRIK();
38  TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz);
39  virtual ~TBRIK();
40 
41  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
42  virtual const TBuffer3D &GetBuffer3D(Int_t reqSections) const;
43  Float_t GetDx() const {return fDx;}
44  Float_t GetDy() const {return fDy;}
45  Float_t GetDz() const {return fDz;}
46  virtual void Sizeof3D() const;
47 
48  ClassDef(TBRIK,1) //TBRIK shape
49 };
50 
51 #endif
virtual ~TBRIK()
BRIK shape default destructor.
Definition: TBRIK.cxx:60
float Float_t
Definition: RtypesCore.h:53
Float_t fDx
Definition: TBRIK.h:31
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections) const
Get buffer 3D.
Definition: TBRIK.cxx:106
Float_t GetDz() const
Definition: TBRIK.h:45
virtual void SetPoints(Double_t *points) const
Create BRIK points.
Definition: TBRIK.cxx:79
point * points
Definition: X3DBuffer.c:20
This is the base class for all geometry shapes.
Definition: TShape.h:47
Generic 3D primitive description class.
Definition: TBuffer3D.h:19
Float_t GetDx() const
Definition: TBRIK.h:43
A box with faces perpendicular to the axes.
Definition: TBRIK.h:28
double Double_t
Definition: RtypesCore.h:55
virtual void Sizeof3D() const
Return total X3D needed by TNode::ls (when called with option "x")
Definition: TBRIK.cxx:96
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a BRIK.
Definition: TBRIK.cxx:70
TBRIK()
BRIK shape default constructor.
Definition: TBRIK.cxx:39
Float_t GetDy() const
Definition: TBRIK.h:44
char name[80]
Definition: TGX11.cxx:109
Float_t fDy
Definition: TBRIK.h:32
Float_t fDz
Definition: TBRIK.h:33