ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TParallelCoordRange.h
Go to the documentation of this file.
1 // @(#)root/treeviewer:$Id$
2 // Author: Bastien Dalla Piazza 02/08/2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TParallelCoordRange
13 #define ROOT_TParallelCoordRange
14 
15 #ifndef ROOT_TNamed
16 #include "TNamed.h"
17 #endif
18 
19 #ifndef ROOT_TAttLine
20 #include "TAttLine.h"
21 #endif
22 
23 class TParallelCoordVar;
24 class TParallelCoord;
26 class TPoint;
27 class TString;
28 
29 class TParallelCoordRange : public TNamed, public TAttLine {
30 public:
31  enum {
32  kShowOnPad = BIT(15),
34  };
35 
36 private:
37  Double_t fMin; // Min value for the range.
38  Double_t fMax; // Max value for the range.
39  const Double_t fSize; // Size of the painted range.
40  TParallelCoordVar *fVar; // Variable owning the range.
41  TParallelCoordSelect* fSelect; // Selection owning the range.
42 
44  TPoint* GetBindingLinePoints(Int_t pos,Int_t mindragged);
47 
48 public:
52 
53  virtual void BringOnTop() ;// *MENU*
54  virtual void Delete(const Option_t* options=""); // *MENU*
56  virtual void Draw(Option_t *options="");
57  virtual void ExecuteEvent(Int_t entry, Int_t px, Int_t py);
58  virtual Double_t GetMin() {return fMin;}
59  virtual Double_t GetMax() {return fMax;}
62  Bool_t IsIn(Double_t evtval);
63  virtual void Paint(Option_t *options);
64  virtual void Print(Option_t *options) const; // *MENU*
65  virtual void SendToBack(); // *MENU*
66  virtual void SetLineColor(Color_t col);
67  virtual void SetLineWidth(Width_t wid);
68 
69  ClassDef(TParallelCoordRange,1); // A TParallelCoordRange is a range used for parallel coordinates plots.
70 };
71 
72 #endif
73 
74 #ifndef ROOT_TParallelCoordSelect
75 #define ROOT_TParallelCoordSelect
76 
77 #ifndef ROOT_TAttLine
78 #include "TAttLine.h"
79 #endif
80 #ifndef ROOT_TList
81 #include "TList.h"
82 #endif
83 
84 class TParallelCoord;
86 
87 class TParallelCoordSelect : public TList, public TAttLine {
88 public:
89  enum {
90  kActivated = BIT(18),
92  };
93 
94 private:
95  TString fTitle; // Title of the selection.
96 
97 public:
98  TParallelCoordSelect(); // Default constructor.
99  TParallelCoordSelect(const char* title); // Normal constructor.
100  ~TParallelCoordSelect(); // Destructor.
101 
102  const char* GetTitle() const {return fTitle.Data();}
103  void SetActivated(Bool_t on);
104  void SetShowRanges(Bool_t s);
105  void SetTitle(const char* title) {fTitle = title;}
106 
107  ClassDef(TParallelCoordSelect,1); // A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord.
108 };
109 
110 #endif
111 
A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord...
void PaintSlider(Double_t value, Bool_t fill=kFALSE)
Paint a slider.
TPoint * GetSliderPoints(Double_t value)
Return the points to paint the needles at "value".
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
Definition: vector.h:433
virtual void Delete(const Option_t *options="")
Delete the range.
virtual void Draw(Option_t *options="")
Draw a TParallelCoordRange.
const char Option_t
Definition: RtypesCore.h:62
#define BIT(n)
Definition: Rtypes.h:120
Basic string class.
Definition: TString.h:137
A TParallelCoordRange is a range used for parallel coordinates plots.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
~TParallelCoordRange()
Destructor.
Float_t py
Definition: hprod.C:33
TParallelCoordSelect * GetSelection()
TParallelCoord axes.
const char * Data() const
Definition: TString.h:349
const char * GetTitle() const
Returns title of object.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute the distance to the primitive.
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
TParallelCoordSelect * fSelect
ClassDef(TParallelCoordRange, 1)
virtual void ExecuteEvent(Int_t entry, Int_t px, Int_t py)
Execute the entry.
virtual Double_t GetMax()
short Color_t
Definition: RtypesCore.h:79
virtual void SetLineColor(Color_t col)
Set the selection line color.
Definition: TPoint.h:33
A doubly linked list.
Definition: TList.h:47
~TParallelCoordSelect()
Destructor.
TParallelCoordVar * GetVar()
TParallelCoordVar * fVar
virtual void SendToBack()
Make the selection which owns the range to be drawn under all the others.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
Long64_t entry
short Width_t
Definition: RtypesCore.h:78
TPoint * GetBindingLinePoints(Int_t pos, Int_t mindragged)
Return the points of the line binding the two needles of the range.
virtual void Print(Option_t *options) const
Print info about the range.
double Double_t
Definition: RtypesCore.h:55
virtual void SetLineWidth(Width_t wid)
Set the selection line width.
virtual void Paint(Option_t *options)
Paint a TParallelCoordRange.
void fill()
Definition: utils.cpp:314
Bool_t IsIn(Double_t evtval)
Evaluate if the given value is within the range or not.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Definition: vector.h:440
Parallel Coordinates class.
void SetTitle(const char *title)
Float_t px
Definition: hprod.C:33
virtual void BringOnTop()
Make the selection which owns the range to be drawn on top of the others.
#define NULL
Definition: Rtypes.h:82
ClassDef(TParallelCoordSelect, 1)
virtual Double_t GetMin()
float value
Definition: math.cpp:443
Line Attributes class.
Definition: TAttLine.h:32
void SetShowRanges(Bool_t s)
Show the ranges needles.
void SetActivated(Bool_t on)
Activate the selection.