#ifndef ROOT_TEveBoxSet
#define ROOT_TEveBoxSet
#include "TEveDigitSet.h"
#include "TEveVSDStructs.h"
class TGeoMatrix;
class TRandom;
class TEveBoxSet: public TEveDigitSet
{
friend class TEveBoxSetGL;
TEveBoxSet(const TEveBoxSet&);
TEveBoxSet& operator=(const TEveBoxSet&);
public:
enum EBoxType_e
{
kBT_Undef,
kBT_FreeBox,
kBT_AABox,
kBT_AABoxFixedDim,
kBT_Cone,
kBT_EllipticCone
};
protected:
struct BFreeBox_t : public DigitBase_t { Float_t fVertices[24]; };
struct BOrigin_t : public DigitBase_t { Float_t fA, fB, fC; virtual ~BOrigin_t() {} };
struct BAABox_t : public BOrigin_t { Float_t fW, fH, fD; };
struct BAABoxFixedDim_t : public BOrigin_t {};
struct BCone_t : public DigitBase_t { TEveVector fPos, fDir; Float_t fR; virtual ~BCone_t() {} };
struct BEllipticCone_t : public BCone_t { Float_t fR2, fAngle; };
protected:
EBoxType_e fBoxType;
Float_t fDefWidth;
Float_t fDefHeight;
Float_t fDefDepth;
Bool_t fDrawConeCap;
static Int_t SizeofAtom(EBoxType_e bt);
public:
TEveBoxSet(const Text_t* n="TEveBoxSet", const Text_t* t="");
virtual ~TEveBoxSet() {}
void Reset(EBoxType_e boxType, Bool_t valIsCol, Int_t chunkSize);
void Reset();
void AddBox(const Float_t* verts);
void AddBox(Float_t a, Float_t b, Float_t c, Float_t w, Float_t h, Float_t d);
void AddBox(Float_t a, Float_t b, Float_t c);
void AddCone(const TEveVector& pos, const TEveVector& dir, Float_t r);
void AddEllipticCone(const TEveVector& pos, const TEveVector& dir, Float_t r, Float_t r2, Float_t angle=0);
virtual void ComputeBBox();
void Test(Int_t nboxes);
Float_t GetDefWidth() const { return fDefWidth; }
Float_t GetDefHeight() const { return fDefHeight; }
Float_t GetDefDepth() const { return fDefDepth; }
Bool_t GetDrawConeCap() const { return fDrawConeCap; }
void SetDefWidth(Float_t v) { fDefWidth = v ; }
void SetDefHeight(Float_t v) { fDefHeight = v ; }
void SetDefDepth(Float_t v) { fDefDepth = v ; }
void SetDrawConeCap(Bool_t x) { fDrawConeCap=x; StampObjProps(); }
ClassDef(TEveBoxSet, 0);
};
#endif
Last change: Mon Nov 24 08:18:24 2008
Last generated: 2008-11-24 08:18
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.