Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:04

0001 // @(#)root/ged:$Id$
0002 // Author: Carsten Hof 28/07/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGraphEditor
0013 #define ROOT_TGraphEditor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGraph;
0019 class TGButtonGroup;
0020 class TGTextEntry;
0021 class TGCheckButton;
0022 class TGRadioButton;
0023 class TGLineWidthComboBox;
0024 
0025 class TGraphEditor : public TGedFrame {
0026 
0027 protected:
0028    char                 fDrawShape;   ///< Shape of the Graph (simple, smooth, bar)
0029    TGTextEntry         *fTitle;       ///< Contains the title of the graph
0030    Int_t                fTitlePrec;   ///< font precision level
0031    TGraph              *fGraph;       ///< Graph object
0032    TGButtonGroup       *fgr;          ///< Group the Radiobuttons:
0033    TGRadioButton       *fShape;       ///< just draw unconnected points
0034    TGRadioButton       *fShape0;      ///< set smooth graph curve
0035    TGRadioButton       *fShape1;      ///< set simple poly-line between every graph point
0036    TGRadioButton       *fShape2;      ///< set graph draw mode to bar chart
0037    TGRadioButton       *fShape3;      ///< set graph draw mode to fill area
0038    TGLayoutHints       *fShape1lh;    ///< layout-hints for fShape1
0039    TGCheckButton       *fMarkerOnOff; ///< set Marker visible/unvisible
0040    TGLineWidthComboBox *fWidthCombo;  ///< Exclusion zone width
0041    TGCheckButton       *fExSide;      ///< set the exclusion zone side
0042 
0043    virtual void ConnectSignals2Slots();
0044 
0045 public:
0046    TGraphEditor(const TGWindow *p = nullptr,
0047                Int_t width = 140, Int_t height = 30,
0048                UInt_t options = kChildFrame,
0049                Pixel_t back = GetDefaultFrameBackground());
0050    ~TGraphEditor() override;
0051    void SetModel(TObject* obj) override;
0052 
0053    // slots related to graph attributes
0054    virtual void DoShape();
0055    virtual void DoMarkerOnOff(Bool_t on);
0056    virtual void DoTitle(const char *text);
0057    virtual void DoGraphLineWidth();
0058 
0059    ClassDefOverride(TGraphEditor,0)        // graph editor
0060 };
0061 #endif
0062