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