Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TBRIK.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Name:  $:$Id: TBRIK.h,v 1.2 2000/12/13 15:13:46 brun Exp $
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 
00017 //                                                                        //
00018 // TBRIK                                                                  //
00019 //                                                                        //
00020 // BRIK is a box. It has 3 parameters, the half length in x, y, and z     //
00021 //                                                                        //
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     public:
00036         TBRIK();
00037         TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz);
00038         virtual ~TBRIK();
00039 
00040         virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
00041         Float_t         GetDx() const {return fDx;}
00042         Float_t         GetDy() const {return fDy;}
00043         Float_t         GetDz() const {return fDz;}
00044         virtual void    Paint(Option_t *option);
00045         virtual void    PaintGLPoints(Float_t *buff);
00046         virtual void    SetPoints(Float_t *buff);
00047         virtual void    Sizeof3D() const;
00048 
00049         ClassDef(TBRIK,1)  //TBRIK shape
00050 };
00051 
00052 #endif

Generated on Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16