Logo ROOT   6.12/07
Reference Guide
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 #include "TNamed.h"
16 
17 #include "TAttLine.h"
18 
19 class TParallelCoordVar;
20 class TParallelCoord;
22 class TPoint;
23 class TString;
24 
25 class TParallelCoordRange : public TNamed, public TAttLine {
26 public:
27  enum EStatusBits {
28  kShowOnPad = BIT(15),
30  };
31 
32 private:
33  Double_t fMin; // Min value for the range.
34  Double_t fMax; // Max value for the range.
35  const Double_t fSize; // Size of the painted range.
36  TParallelCoordVar *fVar; // Variable owning the range.
37  TParallelCoordSelect* fSelect; // Selection owning the range.
38 
40  TPoint* GetBindingLinePoints(Int_t pos,Int_t mindragged);
43 
44 public:
48 
49  virtual void BringOnTop() ;// *MENU*
50  virtual void Delete(const Option_t* options=""); // *MENU*
51  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
52  virtual void Draw(Option_t *options="");
53  virtual void ExecuteEvent(Int_t entry, Int_t px, Int_t py);
54  virtual Double_t GetMin() {return fMin;}
55  virtual Double_t GetMax() {return fMax;}
58  Bool_t IsIn(Double_t evtval);
59  virtual void Paint(Option_t *options);
60  virtual void Print(Option_t *options) const; // *MENU*
61  virtual void SendToBack(); // *MENU*
62  virtual void SetLineColor(Color_t col);
63  virtual void SetLineWidth(Width_t wid);
64 
65  ClassDef(TParallelCoordRange,1); // A TParallelCoordRange is a range used for parallel coordinates plots.
66 };
67 
68 #endif
69 
70 #ifndef ROOT_TParallelCoordSelect
71 #define ROOT_TParallelCoordSelect
72 
73 #include "TAttLine.h"
74 #include "TList.h"
75 
76 class TParallelCoord;
78 
79 class TParallelCoordSelect : public TList, public TAttLine {
80 public:
81  enum {
82  kActivated = BIT(18),
84  };
85 
86 private:
87  TString fTitle; // Title of the selection.
88 
89 public:
90  TParallelCoordSelect(); // Default constructor.
91  TParallelCoordSelect(const char* title); // Normal constructor.
92  ~TParallelCoordSelect(); // Destructor.
93 
94  const char* GetTitle() const {return fTitle.Data();}
95  void SetActivated(Bool_t on);
96  void SetShowRanges(Bool_t s);
97  void SetTitle(const char* title) {fTitle = title;}
98 
99  ClassDef(TParallelCoordSelect,1); // A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord.
100 };
101 
102 #endif
103 
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".
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:78
fill
Definition: fit1_py.py:6
Basic string class.
Definition: TString.h:125
A TParallelCoordRange is a range used for parallel coordinates plots.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
~TParallelCoordRange()
Destructor.
TParallelCoordSelect * GetSelection()
TParallelCoord axes.
#define ClassDef(name, id)
Definition: Rtypes.h:320
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:29
TParallelCoordSelect * fSelect
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:31
A doubly linked list.
Definition: TList.h:44
TParallelCoordVar * GetVar()
TParallelCoordVar * fVar
virtual void SendToBack()
Make the selection which owns the range to be drawn under all the others.
const char * GetTitle() const
Returns title of object.
short Width_t
Definition: RtypesCore.h:78
const Bool_t kFALSE
Definition: RtypesCore.h:88
TPoint * GetBindingLinePoints(Int_t pos, Int_t mindragged)
Return the points of the line binding the two needles of 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.
EStatusBits
Definition: TObject.h:57
static constexpr double s
Bool_t IsIn(Double_t evtval)
Evaluate if the given value is within the range or not.
Parallel Coordinates class.
void SetTitle(const char *title)
TParallelCoordRange()
Default constructor.
virtual void BringOnTop()
Make the selection which owns the range to be drawn on top of the others.
virtual void Print(Option_t *options) const
Print info about the range.
virtual Double_t GetMin()
Line Attributes class.
Definition: TAttLine.h:18
const char * Data() const
Definition: TString.h:345