ROOT logo
// @(#)root/treeviewer:$Id: TParallelCoordEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Bastien Dalla Piazza  02/08/2007

/*************************************************************************
 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TParallelCoordEditor
#define ROOT_TParallelCoordEditor

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TParallelCoord;
class TGCheckButton;
class TGNumberEntryField;
class TGButtonGroup;
class TGRadioButton;
class TGTextEntry;
class TGLineWidthComboBox;
class TGColorSelect;
class TGHSlider;
class TGComboBox;
class TGDoubleHSlider;
class TGedPatternSelect;

class TParallelCoordEditor : public TGedFrame {
protected:
   TGCompositeFrame        *fVarTab;
   TParallelCoord          *fParallel;
   TGColorSelect           *fGlobalLineColor;
   TGLineWidthComboBox     *fGlobalLineWidth;
   TGHSlider               *fDotsSpacing;
   TGNumberEntryField      *fDotsSpacingField;
   TGButtonGroup           *fLineTypeBgroup;
   TGRadioButton           *fLineTypePoly;
   TGRadioButton           *fLineTypeCurves;
   TGCheckButton           *fHideAllRanges;
   TGComboBox              *fSelectionSelect;
   TGColorSelect           *fSelectLineColor;
   TGLineWidthComboBox     *fSelectLineWidth;
   TGCheckButton           *fActivateSelection;
   TGCheckButton           *fShowRanges;
   TGTextButton            *fDeleteSelection;
   TGTextButton            *fAddSelection;
   TGTextEntry             *fAddSelectionField;
   TGCheckButton           *fPaintEntries;
   TGDoubleHSlider         *fEntriesToDraw;
   TGNumberEntryField      *fFirstEntry;
   TGNumberEntryField      *fNentries;
   TGTextButton            *fApplySelect;
   TGTextButton            *fUnApply;
   TGCheckButton           *fDelayDrawing;
   TGTextEntry             *fAddVariable;
   TGTextButton            *fButtonAddVar;
   TGComboBox              *fVariables;
   TGTextButton            *fDeleteVar;
   TGCheckButton           *fHistShowBoxes;
   TGNumberEntryField      *fHistWidth;
   TGNumberEntryField      *fHistBinning;
   TGTextButton            *fRenameVar;
   TGHSlider               *fWeightCut;
   TGNumberEntryField      *fWeightCutField;
   TGColorSelect           *fHistColorSelect;
   TGedPatternSelect       *fHistPatternSelect;
   Bool_t                   fDelay;

   void                    CleanUpSelections();
   void                    CleanUpVariables();
   virtual void            ConnectSignals2Slots();
   void                    MakeVariablesTab();
   
public:
   TParallelCoordEditor(const TGWindow *p = 0,
                        Int_t width = 140, Int_t height = 30,
                        UInt_t options = kChildFrame,
                        Pixel_t back = GetDefaultFrameBackground());
   ~TParallelCoordEditor();
   
   virtual void            DoActivateSelection(Bool_t);
   virtual void            DoAddSelection();
   virtual void            DoAddVariable();
   virtual void            DoApplySelect();
   virtual void            DoDelayDrawing(Bool_t);
   virtual void            DoDeleteSelection();
   virtual void            DoDeleteVar();
   virtual void            DoDotsSpacing();
   virtual void            DoDotsSpacingField();
   virtual void            DoFirstEntry();
   virtual void            DoGlobalLineColor(Pixel_t);
   virtual void            DoGlobalLineWidth(Int_t);
   virtual void            DoHideAllRanges(Bool_t);
   virtual void            DoHistShowBoxes(Bool_t);
   virtual void            DoHistWidth();
   virtual void            DoHistBinning();
   virtual void            DoHistColorSelect(Pixel_t);
   virtual void            DoHistPatternSelect(Style_t);
   virtual void            DoEntriesToDraw();
   virtual void            DoLineType();
   virtual void            DoLiveDotsSpacing(Int_t a);
   virtual void            DoLiveEntriesToDraw();
   virtual void            DoLiveWeightCut(Int_t n);
   virtual void            DoNentries();
   virtual void            DoPaintEntries(Bool_t);
   virtual void            DoSelectionSelect(const char* title);
   virtual void            DoSelectLineColor(Pixel_t);
   virtual void            DoSelectLineWidth(Int_t);
   virtual void            DoShowRanges(Bool_t s);
   virtual void            DoUnApply();
   virtual void            DoVariableSelect(const char* var);
   virtual void            DoWeightCut();
   virtual void            SetModel(TObject* obj);
   
   ClassDef(TParallelCoordEditor,0)    // GUI for editing the parallel coordinates plot attributes.
};
   

#endif
 TParallelCoordEditor.h:1
 TParallelCoordEditor.h:2
 TParallelCoordEditor.h:3
 TParallelCoordEditor.h:4
 TParallelCoordEditor.h:5
 TParallelCoordEditor.h:6
 TParallelCoordEditor.h:7
 TParallelCoordEditor.h:8
 TParallelCoordEditor.h:9
 TParallelCoordEditor.h:10
 TParallelCoordEditor.h:11
 TParallelCoordEditor.h:12
 TParallelCoordEditor.h:13
 TParallelCoordEditor.h:14
 TParallelCoordEditor.h:15
 TParallelCoordEditor.h:16
 TParallelCoordEditor.h:17
 TParallelCoordEditor.h:18
 TParallelCoordEditor.h:19
 TParallelCoordEditor.h:20
 TParallelCoordEditor.h:21
 TParallelCoordEditor.h:22
 TParallelCoordEditor.h:23
 TParallelCoordEditor.h:24
 TParallelCoordEditor.h:25
 TParallelCoordEditor.h:26
 TParallelCoordEditor.h:27
 TParallelCoordEditor.h:28
 TParallelCoordEditor.h:29
 TParallelCoordEditor.h:30
 TParallelCoordEditor.h:31
 TParallelCoordEditor.h:32
 TParallelCoordEditor.h:33
 TParallelCoordEditor.h:34
 TParallelCoordEditor.h:35
 TParallelCoordEditor.h:36
 TParallelCoordEditor.h:37
 TParallelCoordEditor.h:38
 TParallelCoordEditor.h:39
 TParallelCoordEditor.h:40
 TParallelCoordEditor.h:41
 TParallelCoordEditor.h:42
 TParallelCoordEditor.h:43
 TParallelCoordEditor.h:44
 TParallelCoordEditor.h:45
 TParallelCoordEditor.h:46
 TParallelCoordEditor.h:47
 TParallelCoordEditor.h:48
 TParallelCoordEditor.h:49
 TParallelCoordEditor.h:50
 TParallelCoordEditor.h:51
 TParallelCoordEditor.h:52
 TParallelCoordEditor.h:53
 TParallelCoordEditor.h:54
 TParallelCoordEditor.h:55
 TParallelCoordEditor.h:56
 TParallelCoordEditor.h:57
 TParallelCoordEditor.h:58
 TParallelCoordEditor.h:59
 TParallelCoordEditor.h:60
 TParallelCoordEditor.h:61
 TParallelCoordEditor.h:62
 TParallelCoordEditor.h:63
 TParallelCoordEditor.h:64
 TParallelCoordEditor.h:65
 TParallelCoordEditor.h:66
 TParallelCoordEditor.h:67
 TParallelCoordEditor.h:68
 TParallelCoordEditor.h:69
 TParallelCoordEditor.h:70
 TParallelCoordEditor.h:71
 TParallelCoordEditor.h:72
 TParallelCoordEditor.h:73
 TParallelCoordEditor.h:74
 TParallelCoordEditor.h:75
 TParallelCoordEditor.h:76
 TParallelCoordEditor.h:77
 TParallelCoordEditor.h:78
 TParallelCoordEditor.h:79
 TParallelCoordEditor.h:80
 TParallelCoordEditor.h:81
 TParallelCoordEditor.h:82
 TParallelCoordEditor.h:83
 TParallelCoordEditor.h:84
 TParallelCoordEditor.h:85
 TParallelCoordEditor.h:86
 TParallelCoordEditor.h:87
 TParallelCoordEditor.h:88
 TParallelCoordEditor.h:89
 TParallelCoordEditor.h:90
 TParallelCoordEditor.h:91
 TParallelCoordEditor.h:92
 TParallelCoordEditor.h:93
 TParallelCoordEditor.h:94
 TParallelCoordEditor.h:95
 TParallelCoordEditor.h:96
 TParallelCoordEditor.h:97
 TParallelCoordEditor.h:98
 TParallelCoordEditor.h:99
 TParallelCoordEditor.h:100
 TParallelCoordEditor.h:101
 TParallelCoordEditor.h:102
 TParallelCoordEditor.h:103
 TParallelCoordEditor.h:104
 TParallelCoordEditor.h:105
 TParallelCoordEditor.h:106
 TParallelCoordEditor.h:107
 TParallelCoordEditor.h:108
 TParallelCoordEditor.h:109
 TParallelCoordEditor.h:110
 TParallelCoordEditor.h:111
 TParallelCoordEditor.h:112
 TParallelCoordEditor.h:113
 TParallelCoordEditor.h:114
 TParallelCoordEditor.h:115
 TParallelCoordEditor.h:116
 TParallelCoordEditor.h:117
 TParallelCoordEditor.h:118
 TParallelCoordEditor.h:119
 TParallelCoordEditor.h:120
 TParallelCoordEditor.h:121
 TParallelCoordEditor.h:122
 TParallelCoordEditor.h:123