TBRIK.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TBRIK.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Nenad Buncic   17/09/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TBRIK
00013 #define ROOT_TBRIK
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////
00017 //                                                                        //
00018 // TBRIK                                                                  //
00019 //                                                                        //
00020 // BRIK is a box. It has 3 parameters, the half length in x, y, and z     //
00021 //                                                                        //
00022 ////////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TShape
00025 #include "TShape.h"
00026 #endif
00027 
00028 class TBRIK : public TShape {
00029 
00030 protected:
00031    Float_t fDx;        // half length in x
00032    Float_t fDy;        // half length in y
00033    Float_t fDz;        // half length in z
00034 
00035    virtual void    SetPoints(Double_t * points) const;
00036 public:
00037    TBRIK();
00038    TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz);
00039    virtual ~TBRIK();
00040 
00041    virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
00042    virtual const TBuffer3D &GetBuffer3D(Int_t reqSections) const;
00043    Float_t         GetDx() const {return fDx;}
00044    Float_t         GetDy() const {return fDy;}
00045    Float_t         GetDz() const {return fDz;}
00046    virtual void    Sizeof3D() const;
00047 
00048    ClassDef(TBRIK,1)  //TBRIK shape
00049 };
00050 
00051 #endif

Generated on Tue Jul 5 14:16:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1