]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEODB/AliGBox.h
New version from M.Kowalski
[u/mrichter/AliRoot.git] / GEODB / AliGBox.h
CommitLineData
ab2f6604 1#ifndef ALIGBOX_H
2#define ALIGBOX_H
3
4/* -*- C++ -*-
5//
6// 1998/10/19
7// ---------------------------------------------------------------------------
8//
9// AliGBox Class
10//
11// This file is part of the ALICE Geometry Database .
12//
13// Author: Joana E. Santo
14//
15// ---------------------------------------------------------------------------
16// AliGBox is a subclass of AliGShape. Its dimensions are:
17// - Dx half-length of the bosx along X-axis
18// - Dy hlf-length of the box along Y-axis
19// - Dz half-length of the box along Z-axis */
20
21
22#include "AliGShape.h"
23
24class AliGBox: public AliGShape {
25
26 protected:
27 Float_t fDx; /* X half Dimension */
28 Float_t fDy; /* Y half Dimension */
29 Float_t fDz; /* Z half Dimension */
30
31 public:
32 AliGBox( Text_t* name,Text_t* title, Float_t Dx, Float_t Dy, Float_t Dz ); /* Constructor */
33 AliGBox( AliGBox* box=NULL ); /* Copy or Default Constructor */
34 AliGBox* operator=( const AliGBox *box ); /* Operator = */
35 virtual ~AliGBox() {} /* Destructor */
36
37 //virtual void Draw( Option_t* option );
38 virtual void DrawShape( Option_t* option ); // *MENU*
39 Float_t GetX() {return fDx;}
40 Float_t GetY() {return fDy;}
41 Float_t GetZ() {return fDz;}
42 virtual void Paint( Option_t* option );
43 virtual void PaintGLPoints( Float_t* vertex );
44 virtual void SetPoints( Float_t* buff );
45 void SetX(Float_t Dx) {fDx = Dx;}
46 void SetY(Float_t Dy) {fDy = Dy;}
47 void SetZ(Float_t Dz) {fDz = Dz;}
48 virtual void Sizeof3D() const;
49 //void Streamer(TBuffer &b);
50
51 ClassDef(AliGBox,1) // Simple box class
52};
53
54#endif
55