Logo ROOT  
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 #include "TGWidget.h"
15 #include "TGeoPconEditor.h"
16 
17 class TGNumberEntry;
18 class TGTab;
19 
21 
22 protected:
23  Int_t fNedgesi; // Initial number of edges
24  TGNumberEntry *fENedges; // Number entry for nsections
25 
26  virtual void CreateEdges();
27 
28 public:
29  TGeoPgonEditor(const TGWindow *p = 0,
30  Int_t width = 140, Int_t height = 30,
31  UInt_t options = kChildFrame,
33  virtual ~TGeoPgonEditor();
34  virtual void SetModel(TObject *obj);
35 
36  void DoNedges();
37  virtual void DoApply();
38  virtual void DoUndo();
39 
40  ClassDef(TGeoPgonEditor,0) // TGeoPgon editor
41 };
42 #endif
TGWindow
Definition: TGWindow.h:31
TGeoPconEditor
Definition: TGeoPconEditor.h:29
TGeoPgonEditor::DoUndo
virtual void DoUndo()
Slot for undoing last operation.
Definition: TGeoPgonEditor.cxx:182
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TGeoPgonEditor
Definition: TGeoPgonEditor.h:20
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGeoPgonEditor::DoNedges
void DoNedges()
Change number of edges.
Definition: TGeoPgonEditor.cxx:210
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGeoPgonEditor::fNedgesi
Int_t fNedgesi
Definition: TGeoPgonEditor.h:23
TGeoPgonEditor::DoApply
virtual void DoApply()
Slot for applying modifications.
Definition: TGeoPgonEditor.cxx:105
TGeoPconEditor.h
TGeoPgonEditor::~TGeoPgonEditor
virtual ~TGeoPgonEditor()
Destructor.
Definition: TGeoPgonEditor.cxx:58
TGTab
Definition: TGTab.h:62
TGWidget.h
unsigned int
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGeoPgonEditor::SetModel
virtual void SetModel(TObject *obj)
Connect to a given pgon.
Definition: TGeoPgonEditor.cxx:72
TGeoPgonEditor::fENedges
TGNumberEntry * fENedges
Definition: TGeoPgonEditor.h:24
TGNumberEntry
Definition: TGNumberEntry.h:156
TGeoPgonEditor::CreateEdges
virtual void CreateEdges()
Create number entry for Nedges.
Definition: TGeoPgonEditor.cxx:191
TGeoPgonEditor::TGeoPgonEditor
TGeoPgonEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for polygone editor.
Definition: TGeoPgonEditor.cxx:43
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int