Add widgets to control rendering and fiting of pathmarks.
[u/mrichter/AliRoot.git] / EVE / Reve / TrackGL.cxx
CommitLineData
31eaa632 1// $Header$
2
3#include "TrackGL.h"
4#include <Reve/Track.h>
5
6#include <TGLDrawFlags.h>
7
8#ifdef WIN32
9#include "Windows4root.h"
10#endif
11#include <GL/gl.h>
12#include <GL/glu.h>
13
14using namespace Reve;
15
16//______________________________________________________________________
17// TrackGL
18//
19
20ClassImp(TrackGL)
21
22TrackGL::TrackGL() : LineGL()
23{
24 // fCached = false; // Disable display list.
25}
26
27TrackGL::~TrackGL()
28{}
29
30/**************************************************************************/
31
495f908e 32void TrackGL::ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*)
31eaa632 33{
495f908e 34 // Processes secondary selection from TGLViewer.
35 // Calls TPointSet3D::PointSelected(Int_t) with index of selected
36 // point as an argument.
37
38 Int_t n = ptr[0];
39 printf("TrackGL::ProcessSelection %d names on the stack (z1=%g, z2=%g).\n",
40 n, Float_t(ptr[1])/0x7fffffff, Float_t(ptr[2])/0x7fffffff);
41 ptr += 3;
42 printf(" Names: ");
43 for (Int_t j=0; j<n; ++j, ++ptr) printf ("%d ", *ptr);
44 printf("\n");
45
46 ((Track*)fM)->CtrlClicked((Track*)fM);
47
31eaa632 48 /*
495f908e 49 if (ptr[0] < 2) return;
50 TPointSet3D& q = * (TPointSet3D*) fExternalObj;
51 q.PointSelected(ptr[4]);
31eaa632 52 */
53}