Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TF1Editor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/ged:$Id$
0002 // Author: Ilka Antcheva 21/03/06
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, 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_TF1Editor
0013 #define ROOT_TF1Editor
0014 
0015 
0016 #include "TGedFrame.h"
0017 
0018 class TGNumberEntry;
0019 class TGTextEntry;
0020 class TGTextButton;
0021 class TGDoubleHSlider;
0022 class TGNumberEntryField;
0023 class TGLabel;
0024 class TGCheckButton;
0025 class TF1;
0026 
0027 class TF1Editor : public TGedFrame {
0028 
0029 protected:
0030    TF1                 *fF1;              ///< selected TF1 object
0031    TGTextEntry         *fTitle;           ///< function title
0032    Int_t                fNP;              ///< number of function parameters
0033    TGLabel             *fParLabel;        ///< label for number of parameters
0034    TGCheckButton       *fDrawMode;        ///< immediate function redraw (if selected)
0035    TGTextButton        *fSetPars;         ///< open 'Set Parameters' dialog
0036    TGNumberEntry       *fNXpoints;        ///< number of points along x-axis
0037    TGDoubleHSlider     *fSliderX;         ///< slider to set x-axis range
0038    TGNumberEntryField  *fSldMinX;         ///< contains minimum value of x-axis
0039    TGNumberEntryField  *fSldMaxX;         ///< contains maximum value of x-axis
0040 
0041    virtual void ConnectSignals2Slots();   //connect signals to slots
0042 
0043 public:
0044    TF1Editor(const TGWindow *p = nullptr,  Int_t width = 140, Int_t height = 30,
0045              UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
0046    ~TF1Editor() override;
0047 
0048    void   SetModel(TObject* obj) override;
0049    void   ActivateBaseClassEditors(TClass* cl) override;
0050 
0051    virtual void   DoParameterSettings();
0052    virtual void   DoXPoints();
0053    virtual void   DoSliderXMoved();
0054    virtual void   DoSliderXPressed();
0055    virtual void   DoSliderXReleased();
0056    virtual void   DoXRange();
0057 
0058    ClassDefOverride(TF1Editor,0)  // user interface for TF1 objects
0059 };
0060 
0061 #endif