]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/hlt-macros/command_queue.C
-Fixed bug in offline buffer that deleted event object.
[u/mrichter/AliRoot.git] / EVE / hlt-macros / command_queue.C
index 92e3abbe7f48b04eb4b1a9b0e234782c3a32660d..54e1e27032eb615159f379a260ec3fa96b1d2f88 100644 (file)
@@ -1,3 +1,11 @@
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
 #include <TObject.h>
 #include <TList.h>
 #include <TTimer.h>
 #include <TObject.h>
 #include <TList.h>
 #include <TTimer.h>
@@ -98,38 +106,38 @@ void command_queue()
 }
 
 // ============================================================================
 }
 
 // ============================================================================
-// Reve side
+// TEveUtil side
 // ============================================================================
 
 // ============================================================================
 
-#include <Reve/Reve.h>
-#include <Reve/ReveManager.h>
-#include <Reve/PointSet.h>
+#include <TEve.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
 
 #include <TRandom.h>
 
 
 #include <TRandom.h>
 
-void make_crap(void* arg) 
+void make_crap(void* arg)
 {
   Int_t num = 1024;
   TRandom rnd(0);
 
 {
   Int_t num = 1024;
   TRandom rnd(0);
 
-  Reve::PointSet* ps = new Reve::PointSet("Testus", num);
+  TEvePointSet* ps = new TEvePointSet("Testus", num);
   for (Int_t i=0; i<num; ++i) {
     ps->SetNextPoint(rnd.Uniform(-100, 100),
                     rnd.Uniform(-100, 100),
                     rnd.Uniform(-100, 100));
   }
   for (Int_t i=0; i<num; ++i) {
     ps->SetNextPoint(rnd.Uniform(-100, 100),
                     rnd.Uniform(-100, 100),
                     rnd.Uniform(-100, 100));
   }
-  ps->SetMainColor((Color_t)kRed);
-  printf("make_crap() -> produced Reve::PointSet* %p)\n", ps);
+  ps->SetMainColor(kRed);
+  printf("make_crap() -> produced TEvePointSet* %p)\n", ps);
 
   ((CommandQueue*)arg)->RegisterCommand
 
   ((CommandQueue*)arg)->RegisterCommand
-    (Form("register_crap((Reve::RenderElement*)0x%lx)", ps));
+    (Form("register_crap((TEveElement*)0x%lx)", ps));
 }
 
 }
 
-void register_crap(Reve::RenderElement* el)
+void register_crap(TEveElement* el)
 {
 {
-  printf("register_crap(Reve::RenderElement* %p)\n", el);
-  gReve->AddRenderElement(el);
-  gReve->Redraw3D();
+  printf("register_crap(TEveElement* %p)\n", el);
+  gEve->AddElement(el);
+  gEve->Redraw3D();
 }
 
 void test()
 }
 
 void test()