148 fLineTypePoly->SetToolTipText(
"Draw the entries with a polyline");
184 fAddSelection->SetToolTipText(
"Add a new selection (Right click on the axes to add a range).");
193 fApplySelect->SetToolTipText(
"Generate an entry list for the current selection and apply it to the tree.");
196 fUnApply->SetToolTipText(
"Reset the tree entry list");
258 fButtonAddVar->SetToolTipText(
"Add a new variable from the tree (must be a valid expression).");
270 fDeleteVar->SetToolTipText(
"Delete the current selected variable");
273 fRenameVar->SetToolTipText(
"Rename the current selected variable");
329 bool enable = list->GetSize() > 0;
336 if (list->GetSize() > 0) {
352 c =
sel->GetLineColor();
369 bool enable = list->GetSize() > 0;
375 if (list->GetSize() > 0) {
397 this,
"DoGlobalLineColor(Pixel_t)");
399 this,
"DoGlobalLineWidth(Int_t)");
401 fDotsSpacing->Connect(
"Released()",
"TParallelCoordEditor",
402 this,
"DoDotsSpacing()");
403 fDotsSpacing->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
404 this,
"DoLiveDotsSpacing(Int_t)");
406 this,
"DoDotsSpacingField()");
409 fAlpha->Connect(
"Released()",
"TParallelCoordEditor",
411 fAlpha->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
412 this,
"DoLiveAlpha(Int_t)");
413 fAlphaField->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
414 this,
"DoAlphaField()");
417 this,
"DoLineType()");
419 this,
"DoSelectionSelect(const char*)");
421 this,
"DoSelectLineColor(Pixel_t)");
423 this,
"DoSelectLineWidth(Int_t)");
425 this,
"DoActivateSelection(bool)");
426 fShowRanges->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
427 this,
"DoShowRanges(bool)");
429 this,
"DoDeleteSelection()");
431 this,
"DoAddSelection()");
432 fPaintEntries->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
433 this,
"DoPaintEntries(bool)");
435 this,
"DoEntriesToDraw()");
436 fEntriesToDraw->Connect(
"PositionChanged()",
"TParallelCoordEditor",
437 this,
"DoLiveEntriesToDraw()");
438 fFirstEntry->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
439 this,
"DoFirstEntry()");
440 fNentries->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
441 this,
"DoNentries()");
442 fApplySelect->Connect(
"Clicked()",
"TParallelCoordEditor",
443 this,
"DoApplySelect()");
444 fUnApply->Connect(
"Clicked()",
"TParallelCoordEditor",
445 this,
"DoUnApply()");
446 fDelayDrawing->Connect(
"Toggled(bool)",
"TParallelCoordEditor",
447 this,
"DoDelayDrawing(bool)");
448 fAddVariable->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
449 this,
"DoAddVariable()");
451 this,
"DoAddVariable()");
453 this,
"DoHideAllRanges(bool)");
454 fVariables->Connect(
"Selected(const char*)",
"TParallelCoordEditor",
455 this,
"DoVariableSelect(const char*)");
456 fDeleteVar->Connect(
"Clicked()",
"TParallelCoordEditor",
457 this,
"DoDeleteVar()");
458 fHistWidth->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
459 this,
"DoHistWidth()");
460 fHistBinning->Connect(
"ReturnPressed()",
"TParallelCoordEditor",
461 this,
"DoHistBinning()");
462 fWeightCut->Connect(
"Released()",
"TParallelCoordEditor",
463 this,
"DoWeightCut()");
464 fWeightCut->Connect(
"PositionChanged(Int_t)",
"TParallelCoordEditor",
465 this,
"DoLiveWeightCut(Int_t)");
467 this,
"DoWeightCut()");
469 this,
"DoHistColorSelect(Pixel_t)");
471 this,
"DoHistPatternSelect(Style_t)");
473 this,
"DoHistShowBoxes(bool)");
487 sel->SetActivated(
on);
498 if (title ==
"") title =
"Selection";
671 fParallel->SetLineColor(color->GetNumber());
893 if (!
fParallel->SetCurrentSelection(title))
return;
974 fAlpha->SetPosition((
Int_t)color->GetAlpha()*1000);
ULong_t Pixel_t
Pixel value.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
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.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
The color creation and management class.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
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.
R__ALWAYS_INLINE 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.
This is the TParallelCoord editor.
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.
Int_t GetHistBinning() const
Parallel Coordinates class.
@ kPaintEntries
To paint all TParallelCoord entries.
const char * Data() const
TString & Append(const char *cs)