Logo ROOT   6.14/05
Reference Guide
TGeoEltuEditor.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_TGeoEltuEditor
12 #define ROOT_TGeoEltuEditor
13 
14 #include "TGWidget.h"
15 #include "TGeoGedFrame.h"
16 
17 class TGeoEltu;
18 class TGeoTabManager;
19 class TGTextEntry;
20 class TGNumberEntry;
21 class TGTab;
22 class TGComboBox;
23 class TGTextButton;
24 class TGCheckButton;
25 class TString;
26 
27 class TGeoEltuEditor : public TGeoGedFrame {
28 
29 protected:
30 
31  Double_t fAi; // Initial semi-axis of the ellipse along x
32  Double_t fBi; // Initial semi-axis of the ellipse along y
33  Double_t fDzi; // Initial half length in z
34  TString fNamei; // Initial name
35  TGeoEltu *fShape; // Shape object
36  Bool_t fIsModified; // Flag that volume was modified
37  Bool_t fIsShapeEditable; // Flag that the shape can be changed
38 
39  TGTextEntry *fShapeName; // Shape name text entry
40  TGNumberEntry *fEA; // Number entry for A
41  TGNumberEntry *fEB; // Number entry for B
42  TGNumberEntry *fEDz; // Number entry for DZ
43  TGTextButton *fApply; // Apply-Button to accept changes
44  TGTextButton *fUndo; // Undo-Button
45  TGCheckButton *fDelayed; // Check button for delayed draw
46 
47  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
48  Bool_t IsDelayed() const;
49 
50 public:
51  TGeoEltuEditor(const TGWindow *p = 0,
52  Int_t width = 140, Int_t height = 30,
53  UInt_t options = kChildFrame,
55  virtual ~TGeoEltuEditor();
56  virtual void SetModel(TObject *obj);
57 
58  void DoA();
59  void DoB();
60  void DoDz();
61  void DoModified();
62  void DoName();
63  void DoApply();
64  void DoUndo();
65 
66  ClassDef(TGeoEltuEditor,0) // TGeoEltu editor
67 };
68 
69 #endif
TGNumberEntry * fEDz
Definition: TGTab.h:62
Bool_t IsDelayed() const
Check if shape drawing is delayed.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
Manager for all editor tabs.
TGeoEltuEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
Bool_t fIsShapeEditable
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Editor for a TGeoEltu.
TGNumberEntry * fEA
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
void DoB()
Slot for B.
void DoApply()
Slot for applying current settings.
TGNumberEntry * fEB
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoModified()
Slot for notifying modifications.
TGTextButton * fApply
virtual ~TGeoEltuEditor()
Destructor.
double Double_t
Definition: RtypesCore.h:55
void DoDz()
Slot for Z.
void DoName()
Slot for name.
TGCheckButton * fDelayed
Mother of all ROOT objects.
Definition: TObject.h:37
TGTextButton * fUndo
TGeoEltu * fShape
Elliptical tube class.
Definition: TGeoEltu.h:17
void DoUndo()
Slot for undoing last operation.
void DoA()
Slot for A.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
TGTextEntry * fShapeName