Logo ROOT   6.12/07
Reference Guide
TGeoParaEditor.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_TGeoParaEditor
12 #define ROOT_TGeoParaEditor
13 
14 #include "TGWidget.h"
15 #include "TGeoGedFrame.h"
16 
17 class TGeoPara;
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 TGeoParaEditor : public TGeoGedFrame {
28 
29 protected:
30 
31  Double_t fXi; // Initial X
32  Double_t fYi; // Initial Y
33  Double_t fZi; // Initial Z
34  Double_t fAlphai; // Initial alpha
35  Double_t fThetai; // Initial theta
36  Double_t fPhii; // Initial phi
37  TString fNamei; // Initial name
38  TGeoPara *fShape; // Shape object
39  Bool_t fIsModified; // Flag that volume was modified
40  Bool_t fIsShapeEditable; // Flag that the shape can be changed
41 
42  TGTextEntry *fShapeName; // Shape name text entry
43  TGNumberEntry *fEDx; // Number entry for DX2
44  TGNumberEntry *fEDy; // Number entry for DY
45  TGNumberEntry *fEDz; // Number entry for DZ
46  TGNumberEntry *fEAlpha; // Number entry for Alpha
47  TGNumberEntry *fETheta; // Number entry for Theta
48  TGNumberEntry *fEPhi ; // Number entry for Theta
49  TGTextButton *fApply; // Apply-Button to accept changes
50  TGTextButton *fUndo; // Undo-Button
51  TGCheckButton *fDelayed; // Check button for delayed draw
52 
53  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
54  Bool_t IsDelayed() const;
55 
56 public:
57  TGeoParaEditor(const TGWindow *p = 0,
58  Int_t width = 140, Int_t height = 30,
59  UInt_t options = kChildFrame,
61  virtual ~TGeoParaEditor();
62  virtual void SetModel(TObject *obj);
63 
64  void DoX();
65  void DoY();
66  void DoZ();
67  void DoAlpha();
68  void DoTheta();
69  void DoPhi();
70  void DoModified();
71  void DoName();
72  void DoApply();
73  void DoUndo();
74 
75  ClassDef(TGeoParaEditor,0) // TGeoPara editor
76 };
77 
78 #endif
TGNumberEntry * fEPhi
void DoX()
Slot for X.
void DoModified()
Slot for notifying modifications.
void DoZ()
Slot for Z.
Definition: TGTab.h:62
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoApply()
Slot for applying current settings.
Manager for all editor tabs.
virtual ~TGeoParaEditor()
Destructor.
void DoPhi()
Slot for phi.
Basic string class.
Definition: TString.h:125
void DoUndo()
Slot for undoing last operation.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
void DoAlpha()
Slot for alpha.
#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
Editor for a TGeoPara.
TGeoPara * fShape
TGTextButton * fUndo
void DoY()
Slot for Y.
TGeoParaEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for para editor.
Parallelepiped class.
Definition: TGeoPara.h:17
TGTextEntry * fShapeName
void DoTheta()
Slot for theta.
Double_t fThetai
TGNumberEntry * fEDz
unsigned int UInt_t
Definition: RtypesCore.h:42
TGCheckButton * fDelayed
Double_t fAlphai
TGNumberEntry * fETheta
virtual void SetModel(TObject *obj)
Connect to the selected object.
TGTextButton * fApply
TGNumberEntry * fEDx
double Double_t
Definition: RtypesCore.h:55
TGNumberEntry * fEDy
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fEAlpha
Mother of all ROOT objects.
Definition: TObject.h:37
void DoName()
Slot for name.
Bool_t fIsShapeEditable
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13