Geometry for MFT (Brigitte)
[u/mrichter/AliRoot.git] / EVE / alice-macros / region_marker.C
CommitLineData
84aff7a4 1// $Id$
d810d0de 2// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
ba978640 9#if !defined(__CINT__) || defined(__MAKECINT__)
10#include <TPolyMarker3D.h>
11#include <TEveManager.h>
12#include <TEveElement.h>
13#include <TEveUtil.h>
14#endif
15
092578a7 16
0a52e735 17void region_marker(Float_t a=10, Float_t b=10, Float_t c=20,
18 Float_t x=0, Float_t y=0, Float_t z=0)
092578a7 19{
20 TPolyMarker3D* mark = new TPolyMarker3D(8);
21 mark->SetName("Origin marker");
22 mark->SetMarkerStyle(3);
23 mark->SetMarkerColor(6);
0a52e735 24 mark->SetPoint(0, x+a, y+b, z+c);
25 mark->SetPoint(1, x+a, y-b, z+c);
26 mark->SetPoint(2, x-a, y-b, z+c);
27 mark->SetPoint(3, x-a, y+b, z+c);
092578a7 28
0a52e735 29 mark->SetPoint(4, x+a, y+b, z-c);
30 mark->SetPoint(5, x+a, y-b, z-c);
31 mark->SetPoint(6, x-a, y+b, z-c);
32 mark->SetPoint(7, x-a, y-b, z-c);
d810d0de 33 Color_t* colp = TEveUtil::FindColorVar(mark, "fMarkerColor");
84aff7a4 34 TEveElementObjectPtr* rnrEl = new TEveElementObjectPtr(mark, *colp);
35 gEve->AddGlobalElement(rnrEl);
36 gEve->Redraw3D();
092578a7 37}