#include "AliEveTPCSector2D.h"
#include "AliEveTPCSector3D.h"
-#include <EveDet/AliEveTPCData.h>
#include <EveDet/AliEveTPCSectorData.h>
-#include <TEveManager.h>
-
-#include <AliTPCParam.h>
+#include <TEveTrans.h>
#include <TBuffer3D.h>
#include <TBuffer3DTypes.h>
#include <TH2S.h>
#include <TVirtualPad.h>
-using namespace std;
+//==============================================================================
+//==============================================================================
+// AliEveTPCSector2D
+//==============================================================================
//______________________________________________________________________________
-// AliEveTPCSector2D
//
// Displays TPC raw-data in 2D.
//
s->SetSectorID(fSectorID);
s->SetAutoTrans(fAutoTrans);
s->CopyVizParams(*this);
- gEve->AddElement(s, this);
- gEve->Redraw3D();
+ AddElement(s);
+ ElementChanged(kFALSE, kTRUE);
}
/******************************************************************************/
buffer.fID = this;
buffer.fColor = 1;
buffer.fTransparency = 0;
- fHMTrans.SetBuffer3D(buffer);
+ if (HasMainTrans()) RefMainTrans().SetBuffer3D(buffer);
buffer.SetSectionsValid(TBuffer3D::kCore);
Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);