Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TFunctionParametersDialog.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 08/05/06
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2006, 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_TFunctionParametersDialog
0013 #define ROOT_TFunctionParametersDialog
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 
0019 class TF1;
0020 class TGNumberEntry;
0021 class TGTextEntry;
0022 class TGCheckButton;
0023 class TGTextButton;
0024 class TGTripleHSlider;
0025 class TGNumberEntryField;
0026 class TVirtualPad;
0027 
0028 
0029 class TFunctionParametersDialog : public TGTransientFrame {
0030 
0031 protected:
0032    TF1                 *fFunc;            ///< function passed to this dialog
0033    TVirtualPad         *fFpad;            ///< pad where the function is drawn
0034    Int_t                fNP;              ///< number of function parameters
0035    Double_t            *fPmin;            ///< min limits of patameters range
0036    Double_t            *fPmax;            ///< max limits of patameters range
0037    Double_t            *fPval;            ///< original patameters' values
0038    Double_t            *fPerr;            ///< original patameters' errors
0039    Double_t             fRangexmin;       ///< min limits of patameters range
0040    Double_t             fRangexmax;       ///< max limits of patameters range
0041    Double_t             fRXmin;           ///< original min range
0042    Double_t             fRXmax;           ///< original max range
0043    TGCompositeFrame    *fContNam;         ///< container of parameter names
0044    TGCompositeFrame    *fContVal;         ///< container of parameter values
0045    TGCompositeFrame    *fContFix;         ///< container of fix settings
0046    TGCompositeFrame    *fContSld;         ///< container of sliders
0047    TGCompositeFrame    *fContMin;         ///< container of min range values
0048    TGCompositeFrame    *fContMax;         ///< container of max range values
0049    TGTextEntry         **fParNam;         ///< parameter names
0050    TGCheckButton       **fParFix;         ///< fix setting check buttons
0051    TGNumberEntry       **fParVal;         ///< parameter values
0052    TGNumberEntryField  **fParMin;         ///< min range values
0053    TGNumberEntryField  **fParMax;         ///< max range values
0054    TGTripleHSlider     **fParSld;         ///< triple sliders
0055    TGCheckButton       *fUpdate;          ///< Immediate update check button
0056    TGTextButton        *fApply;           ///< Apply button
0057    TGTextButton        *fReset;           ///< Reset button
0058    TGTextButton        *fOK;              ///< Cancel button
0059    TGTextButton        *fCancel;          ///< Cancel button
0060    Bool_t              fHasChanges;       ///< kTRUE if function was redrawn;
0061    Bool_t              fImmediateDraw;    ///< kTRUE if function is updated on run-time
0062 
0063 public:
0064    TFunctionParametersDialog(const TGWindow *p, const TGWindow *main,
0065                              TF1 *func, TVirtualPad *pad,
0066                              Double_t rmin, Double_t rmax);
0067    ~TFunctionParametersDialog() override;
0068 
0069    void  CloseWindow() override;
0070    virtual void  DoApply();
0071    virtual void  DoCancel();
0072    virtual void  DoFix(Bool_t on);
0073    virtual void  DoOK();
0074    virtual void  DoParMaxLimit();
0075    virtual void  DoParMinLimit();
0076    virtual void  DoParValue();
0077    virtual void  DoReset();
0078    virtual void  DoSlider();
0079    virtual void  HandleButtons(Bool_t update);
0080    virtual void  RedrawFunction();
0081 
0082    ClassDefOverride(TFunctionParametersDialog, 0)  // Function parameters dialog
0083 };
0084 
0085 #endif