Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGeoPgonEditor.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_TGeoPgonEditor
0012 #define ROOT_TGeoPgonEditor
0013 
0014 #include "TGWidget.h"
0015 #include "TGeoPconEditor.h"
0016 
0017 class TGNumberEntry;
0018 class TGTab;
0019 
0020 class TGeoPgonEditor : public TGeoPconEditor {
0021 
0022 protected:
0023    Int_t fNedgesi;          // Initial number of edges
0024    TGNumberEntry *fENedges; // Number entry for nsections
0025 
0026    void CreateEdges() override;
0027 
0028 public:
0029    TGeoPgonEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0030                   Pixel_t back = GetDefaultFrameBackground());
0031    ~TGeoPgonEditor() override;
0032    void SetModel(TObject *obj) override;
0033 
0034    void DoNedges();
0035    void DoApply() override;
0036    void DoUndo() override;
0037 
0038    ClassDefOverride(TGeoPgonEditor, 0) // TGeoPgon editor
0039 };
0040 #endif