#define ALIEVE_TPCSectorViz_H
#include <Reve/RenderElement.h>
+#include <Reve/ZTrans.h>
#include <TNamed.h>
#include <TAtt3D.h>
class TPCSector2D; class TPCSector2DEditor; class TPCSector2DGL;
class TPCSector3D; class TPCSector3DEditor; class TPCSector3DGL;
-class TPCSectorViz : public TNamed, public TAtt3D, public TAttBBox,
- public Reve::RenderElement
+class TPCSectorViz : public Reve::RenderElement,
+ public TNamed,
+ public TAtt3D,
+ public TAttBBox
{
friend class TPCSectorVizEditor;
friend class TPCSector2D;
friend class TPCSector3DEditor;
friend class TPCSector3DGL;
+ TPCSectorViz(const TPCSectorViz&); // Not implemented
+ TPCSectorViz& operator=(const TPCSectorViz&); // Not implemented
+
protected:
TPCData* fTPCData;
Int_t fSectorID;
Color_t fFrameColor;
Bool_t fRnrFrame;
- Bool_t fTrans;
- Double_t fMatrix[16];
+ Reve::ZTrans fHMTrans;
+ Bool_t fAutoTrans;
UInt_t fRTS; //! Rendering TimeStamp
void SetupColor(Int_t val, UChar_t* pix) const;
virtual void CopyVizParams(const TPCSectorViz& v);
virtual UInt_t IncRTS() { return ++fRTS; }
- virtual Bool_t CanEditMainColor() { return true; }
+ virtual Bool_t CanEditMainColor() { return kTRUE; }
void SetDataSource(TPCData* data);
void SetSectorID(Int_t id);
Int_t GetSectorID() const { return fSectorID; }
TPCSectorData* GetSectorData() const;
+ Int_t GetMinTime() const { return fMinTime; }
+ Int_t GetMaxTime() const { return fMaxTime; }
void SetMinTime(Int_t mt) { fMinTime = mt; IncRTS(); }
void SetMaxTime(Int_t mt) { fMaxTime = mt; IncRTS(); }
void SetThreshold(Short_t t);
void SetFrameColor(Color_t col) { fFrameColor = col; IncRTS(); }
virtual void SetRnrFrame(Bool_t rf) { fRnrFrame = rf; IncRTS(); }
- void SetTrans(Bool_t t);
+ void SetAutoTrans(Bool_t t);
+
+ Reve::ZTrans& RefHMTrans() { return fHMTrans; }
+ void SetUseTrans(Bool_t t) { fHMTrans.SetUseTrans(t); }
ClassDef(TPCSectorViz, 1); // Base-class for TPC raw-data visualization
}; // endclass TPCSectorViz