12 #ifndef ROOT_TEveShape
13 #define ROOT_TEveShape
22 class TEveShape :
public TEveElementList,
26 friend class TEveShapeEditor;
29 TEveShape(
const TEveShape&);
30 TEveShape& operator=(
const TEveShape&);
33 typedef std::vector<TEveVector2> vVector2_t;
34 typedef std::vector<TEveVector2>::iterator vVector2_i;
42 Bool_t fHighlightFrame;
46 TEveShape(
const char* n=
"TEveShape",
const char* t=
"");
50 virtual void SetMainColor(Color_t color);
52 virtual Color_t GetFillColor()
const {
return fFillColor; }
53 virtual Color_t GetLineColor()
const {
return fLineColor; }
54 virtual Float_t GetLineWidth()
const {
return fLineWidth;}
55 virtual Bool_t GetDrawFrame()
const {
return fDrawFrame; }
56 virtual Bool_t GetHighlightFrame()
const {
return fHighlightFrame; }
57 virtual Bool_t GetMiniFrame()
const {
return fMiniFrame; }
59 virtual void SetFillColor(Color_t c) { fFillColor = c; }
60 virtual void SetLineColor(Color_t c) { fLineColor = c; }
61 virtual void SetLineWidth(Float_t lw) { fLineWidth = lw;}
62 virtual void SetDrawFrame(Bool_t f) { fDrawFrame = f; }
63 virtual void SetHighlightFrame(Bool_t f) { fHighlightFrame = f; }
64 virtual void SetMiniFrame(Bool_t r) { fMiniFrame = r; }
68 virtual void CopyVizParams(
const TEveElement* el);
69 virtual void WriteVizParams(std::ostream& out,
const TString& var);
74 virtual void Paint(Option_t* option=
"");
84 static Int_t FindConvexHull(
const vVector2_t& pin, vVector2_t& pout, TEveElement* caller=0);
86 static Bool_t IsBoxOrientationConsistentEv(
const TEveVector box[8]);
87 static Bool_t IsBoxOrientationConsistentFv(
const Float_t box[8][3]);
89 static void CheckAndFixBoxOrientationEv(TEveVector box[8]);
90 static void CheckAndFixBoxOrientationFv(Float_t box[8][3]);
92 ClassDef(TEveShape, 0);