Logo ROOT   6.10/09
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 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGeoEltuEditor //
17 // //
18 // Editor for a TGeoEltu. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGWidget.h"
23 #include "TGeoGedFrame.h"
24 
25 class TGeoEltu;
26 class TGeoTabManager;
27 class TGTextEntry;
28 class TGNumberEntry;
29 class TGTab;
30 class TGComboBox;
31 class TGTextButton;
32 class TGCheckButton;
33 class TString;
34 
35 class TGeoEltuEditor : public TGeoGedFrame {
36 
37 protected:
38 
39  Double_t fAi; // Initial semi-axis of the ellipse along x
40  Double_t fBi; // Initial semi-axis of the ellipse along y
41  Double_t fDzi; // Initial half length in z
42  TString fNamei; // Initial name
43  TGeoEltu *fShape; // Shape object
44  Bool_t fIsModified; // Flag that volume was modified
45  Bool_t fIsShapeEditable; // Flag that the shape can be changed
46 
47  TGTextEntry *fShapeName; // Shape name text entry
48  TGNumberEntry *fEA; // Number entry for A
49  TGNumberEntry *fEB; // Number entry for B
50  TGNumberEntry *fEDz; // Number entry for DZ
51  TGTextButton *fApply; // Apply-Button to accept changes
52  TGTextButton *fUndo; // Undo-Button
53  TGCheckButton *fDelayed; // Check button for delayed draw
54 
55  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
56  Bool_t IsDelayed() const;
57 
58 public:
59  TGeoEltuEditor(const TGWindow *p = 0,
60  Int_t width = 140, Int_t height = 30,
61  UInt_t options = kChildFrame,
63  virtual ~TGeoEltuEditor();
64  virtual void SetModel(TObject *obj);
65 
66  void DoA();
67  void DoB();
68  void DoDz();
69  void DoModified();
70  void DoName();
71  void DoApply();
72  void DoUndo();
73 
74  ClassDef(TGeoEltuEditor,0) // TGeoEltu editor
75 };
76 
77 #endif
TGNumberEntry * fEDz
Definition: TGTab.h:62
Bool_t IsDelayed() const
Check if shape drawing is delayed.
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:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGNumberEntry * fEA
#define ClassDef(name, id)
Definition: Rtypes.h:297
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.
TGTextEntry * fShapeName