forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TEveTrackProjected.h
84 lines (58 loc) · 2.71 KB
/
TEveTrackProjected.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// @(#)root/eve:$Id$
// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TEveTrackProjected
#define ROOT_TEveTrackProjected
#include "TEveTrack.h"
#include "TEveProjectionBases.h"
class TEveTrackProjected : public TEveTrack,
public TEveProjected
{
friend class TEveTrackProjectedGL;
private:
TEveTrackProjected(const TEveTrackProjected&); // Not implemented
TEveTrackProjected& operator=(const TEveTrackProjected&); // Not implemented
Int_t GetBreakPointIdx(Int_t start);
TEveVector* fOrigPnts; // original track points
protected:
std::vector<Int_t> fBreakPoints; // indices of track break-points
virtual void SetDepthLocal(Float_t d);
public:
TEveTrackProjected();
virtual ~TEveTrackProjected() {}
virtual void SetProjection(TEveProjectionManager* mng, TEveProjectable* model);
virtual void UpdateProjection();
virtual TEveElement* GetProjectedAsElement() { return this; }
virtual void MakeTrack(Bool_t recurse=kTRUE);
void PrintLineSegments();
virtual void SecSelected(TEveTrack*); // marked as signal in TEveTrack
ClassDef(TEveTrackProjected, 1); // Projected copy of a TEveTrack.
};
/******************************************************************************/
// TEveTrackListProjected
/******************************************************************************/
class TEveTrackListProjected : public TEveTrackList,
public TEveProjected
{
private:
TEveTrackListProjected(const TEveTrackListProjected&); // Not implemented
TEveTrackListProjected& operator=(const TEveTrackListProjected&); // Not implemented
protected:
virtual void SetDepthLocal(Float_t d);
public:
TEveTrackListProjected();
virtual ~TEveTrackListProjected() {}
virtual void SetProjection(TEveProjectionManager* proj, TEveProjectable* model);
virtual void UpdateProjection() {}
virtual TEveElement* GetProjectedAsElement() { return this; }
virtual void SetDepth(Float_t d);
virtual void SetDepth(Float_t d, TEveElement* el);
ClassDef(TEveTrackListProjected, 1); // Specialization of TEveTrackList for holding TEveTrackProjected objects.
};
#endif