]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEODB/AliGBox.h
More details on installation pre-requisites
[u/mrichter/AliRoot.git] / GEODB / AliGBox.h
CommitLineData
ab2f6604 1#ifndef ALIGBOX_H
2#define ALIGBOX_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
ab2f6604 7
8/* -*- C++ -*-
9//
10// 1998/10/19
11// ---------------------------------------------------------------------------
12//
13// AliGBox Class
14//
15// This file is part of the ALICE Geometry Database .
16//
17// Author: Joana E. Santo
18//
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 */
24
25
26#include "AliGShape.h"
27
28class AliGBox: public AliGShape {
29
30 protected:
31 Float_t fDx; /* X half Dimension */
32 Float_t fDy; /* Y half Dimension */
33 Float_t fDz; /* Z half Dimension */
34
35 public:
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 */
40
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);
54
55 ClassDef(AliGBox,1) // Simple box class
56};
57
58#endif
59