#ifndef ROOT_TEveQuadSet
#define ROOT_TEveQuadSet
#include "TEveDigitSet.h"
class TRandom;
class TEveQuadSet : public TEveDigitSet
{
friend class TEveQuadSetGL;
TEveQuadSet(const TEveQuadSet&);
TEveQuadSet& operator=(const TEveQuadSet&);
public:
enum EQuadType_e
{
kQT_Undef,
kQT_FreeQuad,
kQT_RectangleXY,
kQT_RectangleXZ,
kQT_RectangleYZ,
kQT_RectangleXYFixedDim,
kQT_RectangleXYFixedZ,
kQT_RectangleXZFixedY,
kQT_RectangleYZFixedX,
kQT_RectangleXYFixedDimZ,
kQT_RectangleXZFixedDimY,
kQT_RectangleYZFixedDimX,
kQT_Rectangle_End,
kQT_LineXYFixedZ,
kQT_LineXZFixedY,
kQT_Line_End,
kQT_HexagonXY,
kQT_HexagonYX,
kQT_Hexagon_End
};
protected:
struct QFreeQuad_t : public DigitBase_t { Float_t fVertices[12]; };
struct QOrigin_t : public DigitBase_t {
virtual ~QOrigin_t() {} ; Float_t fA, fB; };
struct QRectFixDimC_t : public QOrigin_t {
virtual ~QRectFixDimC_t() {} };
struct QRectFixDim_t : public QRectFixDimC_t {
virtual ~QRectFixDim_t() {} ; Float_t fC; };
struct QRectFixC_t : public QRectFixDimC_t { Float_t fW, fH; };
struct QRect_t : public QRectFixDim_t { Float_t fW, fH; };
struct QLineFixC_t : public QOrigin_t { Float_t fDx, fDy; };
struct QHex_t : public QOrigin_t { Float_t fC, fR; };
protected:
EQuadType_e fQuadType;
Float_t fDefWidth;
Float_t fDefHeight;
Float_t fDefCoord;
Bool_t fAntiFlick;
static Int_t SizeofAtom(EQuadType_e qt);
public:
TEveQuadSet(const Text_t* n="TEveQuadSet", const Text_t* t="");
TEveQuadSet(EQuadType_e quadType, Bool_t valIsCol, Int_t chunkSize,
const Text_t* n="TEveQuadSet", const Text_t* t="");
virtual ~TEveQuadSet() {}
void Reset(EQuadType_e quadType, Bool_t valIsCol, Int_t chunkSize);
Float_t GetDefWidth() const { return fDefWidth; }
Float_t GetDefHeight() const { return fDefHeight; }
Float_t GetDefCoord() const { return fDefCoord; }
Bool_t GetAntiFlick() const { return fAntiFlick; }
void SetDefWidth(Float_t v) { fDefWidth = v; }
void SetDefHeight(Float_t v) { fDefHeight = v; }
void SetDefCoord(Float_t v) { fDefCoord = v; }
void SetAntiFlick(Bool_t f) { fAntiFlick = f; }
void AddQuad(Float_t* verts);
void AddQuad(Float_t a, Float_t b);
void AddQuad(Float_t a, Float_t b, Float_t c);
void AddQuad(Float_t a, Float_t b, Float_t w, Float_t h);
void AddQuad(Float_t a, Float_t b, Float_t c, Float_t w, Float_t h);
void AddLine(Float_t a, Float_t b, Float_t w, Float_t h);
void AddHexagon(Float_t a, Float_t b, Float_t z, Float_t r);
void QuadValue(Int_t value) { DigitValue(value); }
void QuadColor(Color_t ci) { DigitColor(ci); }
void QuadColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255) { DigitColor(r, g, b, a); }
void QuadId(TObject* id) { DigitId(id); }
virtual void ComputeBBox();
ClassDef(TEveQuadSet, 0);
};
#endif
Last change: Tue Aug 26 17:15:25 2008
Last generated: 2008-08-26 17:15
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.