#ifndef ROOT_TEveBox
#define ROOT_TEveBox
#include "TEveShape.h"
class TEveBox : public TEveShape
{
friend class TEveBoxGL;
private:
TEveBox(const TEveBox&);
TEveBox& operator=(const TEveBox&);
protected:
Float_t fVertices[8][3];
public:
TEveBox(const char* n="TEveBox", const char* t="");
virtual ~TEveBox();
void SetVertex(Int_t i, Float_t x, Float_t y, Float_t z);
void SetVertex(Int_t i, const Float_t* v);
void SetVertices(const Float_t* vs);
const Float_t* GetVertex(Int_t i) const { return fVertices[i]; }
virtual void ComputeBBox();
virtual TClass* ProjectedClass(const TEveProjection* p) const;
ClassDef(TEveBox, 0);
};
class TEveBoxProjected : public TEveShape,
public TEveProjected
{
friend class TEveBoxProjectedGL;
private:
TEveBoxProjected(const TEveBoxProjected&);
TEveBoxProjected& operator=(const TEveBoxProjected&);
protected:
vVector2_t fPoints;
Int_t fBreakIdx;
vVector2_t fDebugPoints;
virtual void SetDepthLocal(Float_t d);
static Bool_t fgDebugCornerPoints;
public:
TEveBoxProjected(const char* n="TEveBoxProjected", const char* t="");
virtual ~TEveBoxProjected();
virtual void ComputeBBox();
virtual void SetProjection(TEveProjectionManager* mng, TEveProjectable* model);
virtual void UpdateProjection();
virtual TEveElement* GetProjectedAsElement() { return this; }
static Bool_t GetDebugCornerPoints();
static void SetDebugCornerPoints(Bool_t d);
ClassDef(TEveBoxProjected, 0);
};
#endif