147 fLineTypePoly->SetToolTipText(
"Draw the entries with a polyline");
183 fAddSelection->SetToolTipText(
"Add a new selection (Right click on the axes to add a range).");
192 fApplySelect->SetToolTipText(
"Generate an entry list for the current selection and apply it to the tree.");
195 fUnApply->SetToolTipText(
"Reset the tree entry list");
257 fButtonAddVar->SetToolTipText(
"Add a new variable from the tree (must be a valid expression).");
269 fDeleteVar->SetToolTipText(
"Delete the current selected variable");
272 fRenameVar->SetToolTipText(
"Rename the current selected variable");
328 bool enable = list->GetSize() > 0;
335 if (list->GetSize() > 0) {
368 bool enable = list->GetSize() > 0;
374 if (list->GetSize() > 0) {
396 this,
"DoGlobalLineColor(Pixel_t)");
398 this,
"DoGlobalLineWidth(Int_t)");
400 fDotsSpacing->Connect(
"Released()",
"TParallelCoordEditor",
401 this,
"DoDotsSpacing()");
402 fDotsSpacing->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
403 this,
"DoLiveDotsSpacing(Int_t)");
405 this,
"DoDotsSpacingField()");
408 fAlpha->Connect(
"Released()",
"TParallelCoordEditor",
410 fAlpha->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
411 this,
"DoLiveAlpha(Int_t)");
412 fAlphaField->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
413 this,
"DoAlphaField()");
416 this,
"DoLineType()");
418 this,
"DoSelectionSelect(const char*)");
420 this,
"DoSelectLineColor(Pixel_t)");
422 this,
"DoSelectLineWidth(Int_t)");
424 this,
"DoActivateSelection(bool)");
425 fShowRanges->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
426 this,
"DoShowRanges(bool)");
428 this,
"DoDeleteSelection()");
430 this,
"DoAddSelection()");
431 fPaintEntries->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
432 this,
"DoPaintEntries(bool)");
434 this,
"DoEntriesToDraw()");
435 fEntriesToDraw->Connect(
"PositionChanged()",
"TParallelCoordEditor",
436 this,
"DoLiveEntriesToDraw()");
437 fFirstEntry->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
438 this,
"DoFirstEntry()");
439 fNentries->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
440 this,
"DoNentries()");
441 fApplySelect->Connect(
"Clicked()",
"TParallelCoordEditor",
442 this,
"DoApplySelect()");
443 fUnApply->Connect(
"Clicked()",
"TParallelCoordEditor",
444 this,
"DoUnApply()");
445 fDelayDrawing->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
446 this,
"DoDelayDrawing(bool)");
447 fAddVariable->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
448 this,
"DoAddVariable()");
450 this,
"DoAddVariable()");
452 this,
"DoHideAllRanges(bool)");
453 fVariables->Connect(
"Selected(const char*)",
"TParallelCoordEditor",
454 this,
"DoVariableSelect(const char*)");
455 fDeleteVar->Connect(
"Clicked()",
"TParallelCoordEditor",
456 this,
"DoDeleteVar()");
457 fHistWidth->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
458 this,
"DoHistWidth()");
459 fHistBinning->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
460 this,
"DoHistBinning()");
461 fWeightCut->Connect(
"Released()",
"TParallelCoordEditor",
462 this,
"DoWeightCut()");
463 fWeightCut->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
464 this,
"DoLiveWeightCut(Int_t)");
466 this,
"DoWeightCut()");
468 this,
"DoHistColorSelect(Pixel_t)");
470 this,
"DoHistPatternSelect(Style_t)");
472 this,
"DoHistShowBoxes(bool)");
497 if (title ==
"") title =
"Selection";
670 fParallel->SetLineColor(color->GetNumber());
892 if (!
fParallel->SetCurrentSelection(title))
return;
913 select->SetShowRanges(s);
973 fAlpha->SetPosition((
Int_t)color->GetAlpha()*1000);
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
short Color_t
Color number (short).
long long Long64_t
Portable signed long integer 8 bytes.
short Style_t
Style number (short).
float Float_t
Float 4 bytes (float).
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual Color_t GetLineColor() const
Return the line color.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
Dragging the slider will generate the event:
Concrete class for horizontal slider.
A composite frame that layout their children in horizontal way.
void SetBackgroundColor(Pixel_t col) override
Set background color (override from TGWindow base class).
This class handles GUI labels.
This class describes layout hints used by the layout classes.
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
Text string listbox entries.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
Create a vertical frame to be used by 'owner' in extra tab 'name'.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Int_t fPriority
location in GedEditor
Bool_t fAvoidSignal
flag for executing slots
is a button with pattern area with a little down arrow.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void DoSelectLineColor(Pixel_t)
Slot to set the line color of selection.
~TParallelCoordEditor() override
Destructor.
virtual void DoHistShowBoxes(bool)
Slot to set histogram height.
TGDoubleHSlider * fEntriesToDraw
virtual void DoLiveEntriesToDraw()
Slot to update the entries fields from the slider position.
TGCheckButton * fHideAllRanges
virtual void DoDotsSpacing()
Slot to set the line dot spacing.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void DoApplySelect()
Slot to apply a selection to the tree.
TGTextButton * fRenameVar
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoFirstEntry()
Slot to set the first entry.
virtual void DoLiveDotsSpacing(Int_t a)
Slot to set the dots spacing online.
TGCheckButton * fShowRanges
TGTextButton * fDeleteSelection
TGLineWidthComboBox * fSelectLineWidth
virtual void DoLiveWeightCut(Int_t n)
Slot to update the weight cut entry field from the slider position.
TGCheckButton * fActivateSelection
TGedPatternSelect * fHistPatternSelect
virtual void DoDotsSpacingField()
Slot to set the line dot spacing from the entry field.
TGLineWidthComboBox * fGlobalLineWidth
virtual void DoPaintEntries(bool)
Slot to postpone the entries drawing.
TGComboBox * fSelectionSelect
void CleanUpSelections()
Clean up the selection combo box.
virtual void DoActivateSelection(bool)
Slot to activate or not a selection.
virtual void DoGlobalLineColor(Pixel_t)
Slot to set the global line color.
TGNumberEntryField * fFirstEntry
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoDeleteVar()
Slot to delete a variable().
TGNumberEntryField * fDotsSpacingField
virtual void DoSelectionSelect(const char *title)
Slot to set the selection being edited.
TGCompositeFrame * fVarTab
TGTextEntry * fAddSelectionField
virtual void DoHistColorSelect(Pixel_t)
Slot to set the histograms color.
TGTextButton * fAddSelection
virtual void DoGlobalLineWidth(Int_t)
Slot to set the global line width.
virtual void DoHistWidth()
Slot to set histogram width.
TGCheckButton * fHistShowBoxes
void SetModel(TObject *obj) override
Pick up the used parallel coordinates plot attributes.
virtual void DoUnApply()
Slot to reset the tree entry list to the original one.
virtual void DoAddVariable()
Slot to add a variable.
TGCheckButton * fPaintEntries
virtual void DoDelayDrawing(bool)
Slot to delay the drawing.
TParallelCoord * fParallel
virtual void DoHistPatternSelect(Style_t)
Slot to set the histograms fill style.
TGColorSelect * fSelectLineColor
void MakeVariablesTab()
Make the "variable" tab.
virtual void DoAddSelection()
Slot to add a selection.
TGTextButton * fApplySelect
TGCheckButton * fDelayDrawing
TGTextButton * fDeleteVar
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
TGNumberEntryField * fHistWidth
TParallelCoordEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Normal constructor.
virtual void DoSelectLineWidth(Int_t)
Slot to set the line width of selection.
virtual void DoEntriesToDraw()
Slot to select the entries to be drawn.
TGColorSelect * fHistColorSelect
TGRadioButton * fLineTypePoly
virtual void DoHideAllRanges(bool)
Slot to hide all the ranges.
virtual void DoLineType()
Slot to set the line type.
TGColorSelect * fGlobalLineColor
TGNumberEntryField * fAlphaField
void CleanUpVariables()
Clean up the variables combo box.
TGNumberEntryField * fWeightCutField
TGRadioButton * fLineTypeCurves
TGTextEntry * fAddVariable
virtual void DoWeightCut()
Slot to update the weight cut.
virtual void DoNentries()
Slot to set the number of entries to display.
TGNumberEntryField * fNentries
TGButtonGroup * fLineTypeBgroup
virtual void DoShowRanges(bool s)
Slot to show or not the ranges on the pad.
TGTextButton * fButtonAddVar
virtual void DoHistBinning()
Slot to set the axes histogram binning.
virtual void DoDeleteSelection()
Slot to delete a selection.
TGNumberEntryField * fHistBinning
virtual void DoVariableSelect(const char *var)
Slot to select a variable.
A TParallelCoordSelect is a specialised TList to hold TParallelCoordRanges used by TParallelCoord.
void SetShowRanges(bool s)
Show the ranges needles.
void SetActivated(bool on)
Activate the selection.
const char * GetTitle() const override
Returns title of object.
Int_t GetHistBinning() const
Parallel Coordinates class.
@ kPaintEntries
To paint all TParallelCoord entries.
const char * Data() const
TString & Append(const char *cs)