Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#):$Id$
0002 // Author: M.Gheata
0003 /*************************************************************************
0004  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_TGeoEltuEditor
0012 #define ROOT_TGeoEltuEditor
0013 
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016 
0017 class TGeoEltu;
0018 class TGeoTabManager;
0019 class TGTextEntry;
0020 class TGNumberEntry;
0021 class TGTab;
0022 class TGComboBox;
0023 class TGTextButton;
0024 class TGCheckButton;
0025 class TString;
0026 
0027 class TGeoEltuEditor : public TGeoGedFrame {
0028 
0029 protected:
0030    Double_t fAi;            // Initial  semi-axis of the ellipse along x
0031    Double_t fBi;            // Initial  semi-axis of the ellipse along y
0032    Double_t fDzi;           // Initial  half length in z
0033    TString fNamei;          // Initial name
0034    TGeoEltu *fShape;        // Shape object
0035    Bool_t fIsModified;      // Flag that volume was modified
0036    Bool_t fIsShapeEditable; // Flag that the shape can be changed
0037 
0038    TGTextEntry *fShapeName; // Shape name text entry
0039    TGNumberEntry *fEA;      // Number entry for  A
0040    TGNumberEntry *fEB;      // Number entry for  B
0041    TGNumberEntry *fEDz;     // Number entry for  DZ
0042    TGTextButton *fApply;    // Apply-Button to accept changes
0043    TGTextButton *fUndo;     // Undo-Button
0044    TGCheckButton *fDelayed; // Check button for delayed draw
0045 
0046    virtual void ConnectSignals2Slots(); // Connect the signals to the slots
0047    Bool_t IsDelayed() const;
0048 
0049 public:
0050    TGeoEltuEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0051                   Pixel_t back = GetDefaultFrameBackground());
0052    ~TGeoEltuEditor() override;
0053    void SetModel(TObject *obj) override;
0054 
0055    void DoA();
0056    void DoB();
0057    void DoDz();
0058    void DoModified();
0059    void DoName();
0060    void DoApply();
0061    void DoUndo();
0062 
0063    ClassDefOverride(TGeoEltuEditor, 0) // TGeoEltu editor
0064 };
0065 
0066 #endif