Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:33

0001 // @(#)root/g3d:$Id$
0002 // Author: Nenad Buncic   17/09/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TBRIK
0013 #define ROOT_TBRIK
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////
0017 //                                                                        //
0018 // TBRIK                                                                  //
0019 //                                                                        //
0020 // BRIK is a box. It has 3 parameters, the half length in x, y, and z     //
0021 //                                                                        //
0022 ////////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TShape.h"
0025 
0026 class TBRIK : public TShape {
0027 
0028 protected:
0029    Float_t fDx;        // half length in x
0030    Float_t fDy;        // half length in y
0031    Float_t fDz;        // half length in z
0032 
0033    void    SetPoints(Double_t * points) const override;
0034 public:
0035    TBRIK();
0036    TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz);
0037    ~TBRIK() override;
0038 
0039    Int_t   DistancetoPrimitive(Int_t px, Int_t py) override;
0040    const TBuffer3D &GetBuffer3D(Int_t reqSections) const override;
0041    Float_t         GetDx() const {return fDx;}
0042    Float_t         GetDy() const {return fDy;}
0043    Float_t         GetDz() const {return fDz;}
0044    void    Sizeof3D() const override;
0045 
0046    ClassDefOverride(TBRIK,1)  //TBRIK shape
0047 };
0048 
0049 #endif