QCuboid.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_CUBOID_HH_
00003 #define _Q_CUBOID_HH_
00004 
00005 #include "QGeomVector.hh"
00006 
00012 class QCuboid
00013 {
00014 public:
00015 
00017    QCuboid();
00018 
00026    QCuboid(const QGeomVector& position,
00027            double             dimX,
00028            double             dimY,
00029            double             dimZ);
00030 
00032    virtual ~QCuboid();
00033 
00035    void SetPosition(const QGeomVector& position) { fPosition = position; }
00036 
00038    void SetDimensions(double dimX, double dimY, double dimZ)
00039    { fDimX = dimX; fDimY = dimY; fDimZ = dimZ; }
00040 
00042    const QGeomVector& GetPosition() const { return fPosition; }
00043 
00045    double GetDimX() const { return fDimX; }
00047    double GetDimY() const { return fDimY; }
00049    double GetDimZ() const { return fDimZ; }
00050    
00052    double GetVolume() { return fDimX * fDimY * fDimZ; }
00053 
00054 private:
00055    QGeomVector fPosition;
00056    double fDimX;
00057    double fDimY;
00058    double fDimZ;
00059 };
00060 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1