3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 // ---------------------------------------------------------------------------
15 // This file is part of the ALICE Geometry Database .
17 // Author: Joana E. Santo
19 // ---------------------------------------------------------------------------
20 // AliGBox is a subclass of AliGShape. Its dimensions are:
21 // - Dx half-length of the bosx along X-axis
22 // - Dy hlf-length of the box along Y-axis
23 // - Dz half-length of the box along Z-axis */
26 #include "AliGShape.h"
28 class AliGBox: public AliGShape {
31 Float_t fDx; /* X half Dimension */
32 Float_t fDy; /* Y half Dimension */
33 Float_t fDz; /* Z half Dimension */
36 AliGBox( Text_t* name,Text_t* title, Float_t Dx, Float_t Dy, Float_t Dz ); /* Constructor */
37 AliGBox( AliGBox* box=NULL ); /* Copy or Default Constructor */
38 AliGBox* operator=( const AliGBox *box ); /* Operator = */
39 virtual ~AliGBox() {} /* Destructor */
41 //virtual void Draw( Option_t* option );
42 virtual void DrawShape( Option_t* option ); // *MENU*
43 Float_t GetX() {return fDx;}
44 Float_t GetY() {return fDy;}
45 Float_t GetZ() {return fDz;}
46 virtual void Paint( Option_t* option );
47 virtual void PaintGLPoints( Float_t* vertex );
48 virtual void SetPoints( Float_t* buff );
49 void SetX(Float_t Dx) {fDx = Dx;}
50 void SetY(Float_t Dy) {fDy = Dy;}
51 void SetZ(Float_t Dz) {fDz = Dz;}
52 virtual void Sizeof3D() const;
53 //void Streamer(TBuffer &b);
55 ClassDef(AliGBox,1) // Simple box class