Logo ROOT  
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 #include "TAttLine.h"
17 #include "TList.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),
29  kLiveUpdate = BIT(16)
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:
47  virtual ~TParallelCoordRange();
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 
69 class TParallelCoordSelect : public TList, public TAttLine {
70 public:
71  enum {
72  kActivated = BIT(18),
73  kShowRanges = BIT(19)
74  };
75 
76 private:
77  TString fTitle; // Title of the selection.
78 
79 public:
80  TParallelCoordSelect(); // Default constructor.
81  TParallelCoordSelect(const char* title); // Normal constructor.
82  ~TParallelCoordSelect(); // Destructor.
83 
84  const char* GetTitle() const {return fTitle.Data();}
85  void SetActivated(Bool_t on);
86  void SetShowRanges(Bool_t s);
87  void SetTitle(const char* title) {fTitle = title;}
88 
89  ClassDef(TParallelCoordSelect,1); // A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord.
90 };
91 
92 #endif
93 
TParallelCoordVar
TParallelCoord axes.
Definition: TParallelCoordVar.h:24
TParallelCoordRange::SendToBack
virtual void SendToBack()
Make the selection which owns the range to be drawn under all the others.
Definition: TParallelCoordRange.cxx:427
fit1_py.fill
fill
Definition: fit1_py.py:6
TParallelCoordRange::GetMin
virtual Double_t GetMin()
Definition: TParallelCoordRange.h:54
Option_t
const char Option_t
Definition: RtypesCore.h:66
TParallelCoordSelect::SetActivated
void SetActivated(Bool_t on)
Activate the selection.
Definition: TParallelCoordRange.cxx:505
TParallelCoordSelect::fTitle
TString fTitle
Definition: TParallelCoordRange.h:77
TString::Data
const char * Data() const
Definition: TString.h:369
TParallelCoordRange::GetMax
virtual Double_t GetMax()
Definition: TParallelCoordRange.h:55
TParallelCoordRange::fMin
Double_t fMin
Definition: TParallelCoordRange.h:33
TNamed.h
TParallelCoordRange::fMax
Double_t fMax
Definition: TParallelCoordRange.h:34
TParallelCoordRange::GetSelection
TParallelCoordSelect * GetSelection()
Definition: TParallelCoordRange.h:57
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
TParallelCoordRange::fVar
TParallelCoordVar * fVar
Definition: TParallelCoordRange.h:36
TParallelCoord
Parallel Coordinates class.
Definition: TParallelCoord.h:28
TList.h
TParallelCoordRange::fSize
const Double_t fSize
Definition: TParallelCoordRange.h:35
TParallelCoordRange::~TParallelCoordRange
virtual ~TParallelCoordRange()
Destructor.
Definition: TParallelCoordRange.cxx:50
TString
Basic string class.
Definition: TString.h:136
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:83
TParallelCoordRange::Paint
virtual void Paint(Option_t *options)
Paint a TParallelCoordRange.
Definition: TParallelCoordRange.cxx:368
bool
TParallelCoordSelect::SetShowRanges
void SetShowRanges(Bool_t s)
Show the ranges needles.
Definition: TParallelCoordRange.cxx:516
TParallelCoordRange::PaintSlider
void PaintSlider(Double_t value, Bool_t fill=kFALSE)
Paint a slider.
Definition: TParallelCoordRange.cxx:379
TAttLine.h
TParallelCoordSelect
A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord.
Definition: TParallelCoordRange.h:69
TAttLine
Line Attributes class.
Definition: TAttLine.h:18
TParallelCoordSelect::kShowRanges
@ kShowRanges
Definition: TParallelCoordRange.h:73
TParallelCoordRange::SetLineWidth
virtual void SetLineWidth(Width_t wid)
Set the selection line width.
Definition: TParallelCoordRange.cxx:447
TParallelCoordRange::BringOnTop
virtual void BringOnTop()
Make the selection which owns the range to be drawn on top of the others.
Definition: TParallelCoordRange.cxx:87
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TParallelCoordRange::Delete
virtual void Delete(const Option_t *options="")
Delete the range.
Definition: TParallelCoordRange.cxx:98
Width_t
short Width_t
Definition: RtypesCore.h:82
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TParallelCoordRange::IsIn
Bool_t IsIn(Double_t evtval)
Evaluate if the given value is within the range or not.
Definition: TParallelCoordRange.cxx:360
BIT
#define BIT(n)
Definition: Rtypes.h:85
TParallelCoordSelect::GetTitle
const char * GetTitle() const
Returns title of object.
Definition: TParallelCoordRange.h:84
TParallelCoordSelect::~TParallelCoordSelect
~TParallelCoordSelect()
Destructor.
Definition: TParallelCoordRange.cxx:494
TParallelCoordSelect::TParallelCoordSelect
TParallelCoordSelect()
Default constructor.
Definition: TParallelCoordRange.cxx:472
TParallelCoordRange::fSelect
TParallelCoordSelect * fSelect
Definition: TParallelCoordRange.h:37
TParallelCoordRange::kLiveUpdate
@ kLiveUpdate
Definition: TParallelCoordRange.h:29
TParallelCoordRange::ExecuteEvent
virtual void ExecuteEvent(Int_t entry, Int_t px, Int_t py)
Execute the entry.
Definition: TParallelCoordRange.cxx:140
TParallelCoordRange
A TParallelCoordRange is a range used for parallel coordinates plots.
Definition: TParallelCoordRange.h:25
TPoint
Definition: TPoint.h:31
Double_t
double Double_t
Definition: RtypesCore.h:59
TParallelCoordRange::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute the distance to the primitive.
Definition: TParallelCoordRange.cxx:108
TParallelCoordRange::SetLineColor
virtual void SetLineColor(Color_t col)
Set the selection line color.
Definition: TParallelCoordRange.cxx:438
TParallelCoordSelect::kActivated
@ kActivated
Definition: TParallelCoordRange.h:72
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TParallelCoordRange::kShowOnPad
@ kShowOnPad
Definition: TParallelCoordRange.h:28
TParallelCoordRange::Print
virtual void Print(Option_t *options) const
Print info about the range.
Definition: TParallelCoordRange.cxx:419
TParallelCoordRange::GetBindingLinePoints
TPoint * GetBindingLinePoints(Int_t pos, Int_t mindragged)
Return the points of the line binding the two needles of the range.
Definition: TParallelCoordRange.cxx:258
TParallelCoordRange::GetVar
TParallelCoordVar * GetVar()
Definition: TParallelCoordRange.h:56
TParallelCoordRange::TParallelCoordRange
TParallelCoordRange()
Default constructor.
Definition: TParallelCoordRange.cxx:36
TParallelCoordSelect::SetTitle
void SetTitle(const char *title)
Definition: TParallelCoordRange.h:87
TParallelCoordRange::Draw
virtual void Draw(Option_t *options="")
Draw a TParallelCoordRange.
Definition: TParallelCoordRange.cxx:132
TParallelCoordRange::GetSliderPoints
TPoint * GetSliderPoints(Double_t value)
Return the points to paint the needles at "value".
Definition: TParallelCoordRange.cxx:295
TObject::EStatusBits
EStatusBits
Definition: TObject.h:57
TList
A doubly linked list.
Definition: TList.h:44
int