3 #ifndef ALIEVE_TPCSector2D_H
4 #define ALIEVE_TPCSector2D_H
6 #include <Reve/RenderElement.h>
10 #include <TBuffer3DTypes.h>
11 #include <TGeometry.h>
12 #include <TVirtualPad.h>
13 #include <TVirtualViewer3D.h>
22 class TPCSector2DEditor;
25 class TPCSector2D : public TNamed, public TAtt3D, public TAttBBox, public Reve::RenderElement
27 friend class TPCSector2DGL;
28 friend class TPCSector2DEditor;
36 // These change data representation:
55 UInt_t fRTS; //! Rendering TimeStamp
58 TPCSector2D(const Text_t* n="TPCSector2D", const Text_t* t=0, Color_t col=2) :
59 TNamed(n,t), Reve::RenderElement(fFrameCol), fFrameCol(col), fRTS(1)
62 virtual ~TPCSector2D();
64 void SetDataSource(TPCData* data);
65 virtual void SetSectorID(Int_t id);
67 void SetRnrInn(Bool_t r) { fRnrInn = r; ++fRTS; }
68 void SetRnrOut1(Bool_t r) { fRnrOut1 = r; ++fRTS; }
69 void SetRnrOut2(Bool_t r) { fRnrOut2 = r; ++fRTS; }
71 void SetShowMax(Bool_t sm) { fShowMax = sm; ++fRTS; }
72 void SetAverage(Bool_t avg) { fAverage = avg; ++fRTS; }
73 void SetMinTime(Int_t mt) { fMinTime = mt; ++fRTS; }
74 void SetMaxTime(Int_t mt) { fMaxTime = mt; ++fRTS; }
75 void SetThreshold(Short_t t) { fThreshold = t; ++fRTS; }
76 void SetMaxVal(Int_t mv) { fMaxVal = mv; ++fRTS; }
78 virtual void ComputeBBox();
80 virtual void Paint(Option_t* option="");
82 virtual void SetTrans(Bool_t t);
84 virtual Bool_t CanEditMainColor() { return true; }
86 ClassDef(TPCSector2D, 1);
87 }; // endclass TPCSector2D