Logo ROOT   6.08/07
Reference Guide
TGeoPgonEditor.h
Go to the documentation of this file.
1 // @(#):$Id$
2 // Author: M.Gheata
3 /*************************************************************************
4  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TGeoPgonEditor
12 #define ROOT_TGeoPgonEditor
13 
14 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGeoPgonEditor //
17 // //
18 // Editor for a TGeoPgon. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #ifndef ROOT_TGButton
23 #include "TGWidget.h"
24 #endif
25 #ifndef ROOT_TGeoPconEditor
26 #include "TGeoPconEditor.h"
27 #endif
28 
29 class TGNumberEntry;
30 class TGTab;
31 
33 
34 protected:
35  Int_t fNedgesi; // Initial number of edges
36  TGNumberEntry *fENedges; // Number entry for nsections
37 
38  virtual void CreateEdges();
39 
40 public:
41  TGeoPgonEditor(const TGWindow *p = 0,
42  Int_t width = 140, Int_t height = 30,
43  UInt_t options = kChildFrame,
45  virtual ~TGeoPgonEditor();
46  virtual void SetModel(TObject *obj);
47 
48  void DoNedges();
49  virtual void DoApply();
50  virtual void DoUndo();
51 
52  ClassDef(TGeoPgonEditor,0) // TGeoPgon editor
53 };
54 #endif
Definition: TGTab.h:66
int Int_t
Definition: RtypesCore.h:41
void DoNedges()
Change number of edges.
virtual void DoUndo()
Slot for undoing last operation.
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void DoApply()
Slot for applying modifications.
virtual ~TGeoPgonEditor()
Destructor.
unsigned int UInt_t
Definition: RtypesCore.h:42
TGNumberEntry * fENedges
virtual void SetModel(TObject *obj)
Connect to a given pcon.
Mother of all ROOT objects.
Definition: TObject.h:37
TGeoPgonEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for polycone editor.
virtual void CreateEdges()
Create number entry for Nedges.