3 #ifndef ALIEVE_TPCSectorViz_H
4 #define ALIEVE_TPCSectorViz_H
6 #include <Reve/RenderElement.h>
15 class TPCData; class TPCSectorData;
17 class TPCSectorVizEditor;
18 class TPCSector2D; class TPCSector2DEditor; class TPCSector2DGL;
19 class TPCSector3D; class TPCSector3DEditor; class TPCSector3DGL;
21 class TPCSectorViz : public TNamed, public TAtt3D, public TAttBBox,
22 public Reve::RenderElement
24 friend class TPCSectorVizEditor;
25 friend class TPCSector2D;
26 friend class TPCSector2DEditor;
27 friend class TPCSector2DGL;
28 friend class TPCSector3D;
29 friend class TPCSector3DEditor;
30 friend class TPCSector3DGL;
49 UInt_t fRTS; //! Rendering TimeStamp
51 void SetupColor(Int_t val, UChar_t* pix) const;
54 TPCSectorViz(const Text_t* n="TPCSectorViz", const Text_t* t=0);
55 virtual ~TPCSectorViz();
57 virtual UInt_t IncRTS() { return ++fRTS; }
58 virtual Bool_t CanEditMainColor() { return true; }
60 void SetDataSource(TPCData* data);
61 void SetSectorID(Int_t id);
63 TPCData* GetData() const { return fTPCData; }
64 Int_t GetSectorID() const { return fSectorID; }
65 TPCSectorData* GetSectorData() const;
67 void SetMinTime(Int_t mt) { fMinTime = mt; IncRTS(); }
68 void SetMaxTime(Int_t mt) { fMaxTime = mt; IncRTS(); }
69 void SetThreshold(Short_t t) { fThreshold = t; IncRTS(); }
70 void SetMaxVal(Int_t mv) { fMaxVal = mv; IncRTS(); }
72 void SetRnrInn(Bool_t r) { fRnrInn = r; IncRTS(); }
73 void SetRnrOut1(Bool_t r) { fRnrOut1 = r; IncRTS(); }
74 void SetRnrOut2(Bool_t r) { fRnrOut2 = r; IncRTS(); }
76 void SetFrameColor(Color_t col) { fFrameColor = col; IncRTS(); }
77 virtual void SetRnrFrame(Bool_t rf) { fRnrFrame = rf; IncRTS(); }
78 void SetTrans(Bool_t t);
80 ClassDef(TPCSectorViz, 1); // Base-class for TPC raw-data visualization
81 }; // endclass TPCSectorViz