Logo ROOT   6.10/09
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 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGeoParaEditor //
17 // //
18 // Editor for a TGeoPara. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGWidget.h"
23 #include "TGeoGedFrame.h"
24 
25 class TGeoPara;
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 TGeoParaEditor : public TGeoGedFrame {
36 
37 protected:
38 
39  Double_t fXi; // Initial X
40  Double_t fYi; // Initial Y
41  Double_t fZi; // Initial Z
42  Double_t fAlphai; // Initial alpha
43  Double_t fThetai; // Initial theta
44  Double_t fPhii; // Initial phi
45  TString fNamei; // Initial name
46  TGeoPara *fShape; // Shape object
47  Bool_t fIsModified; // Flag that volume was modified
48  Bool_t fIsShapeEditable; // Flag that the shape can be changed
49 
50  TGTextEntry *fShapeName; // Shape name text entry
51  TGNumberEntry *fEDx; // Number entry for DX2
52  TGNumberEntry *fEDy; // Number entry for DY
53  TGNumberEntry *fEDz; // Number entry for DZ
54  TGNumberEntry *fEAlpha; // Number entry for Alpha
55  TGNumberEntry *fETheta; // Number entry for Theta
56  TGNumberEntry *fEPhi ; // Number entry for Theta
57  TGTextButton *fApply; // Apply-Button to accept changes
58  TGTextButton *fUndo; // Undo-Button
59  TGCheckButton *fDelayed; // Check button for delayed draw
60 
61  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
62  Bool_t IsDelayed() const;
63 
64 public:
65  TGeoParaEditor(const TGWindow *p = 0,
66  Int_t width = 140, Int_t height = 30,
67  UInt_t options = kChildFrame,
69  virtual ~TGeoParaEditor();
70  virtual void SetModel(TObject *obj);
71 
72  void DoX();
73  void DoY();
74  void DoZ();
75  void DoAlpha();
76  void DoTheta();
77  void DoPhi();
78  void DoModified();
79  void DoName();
80  void DoApply();
81  void DoUndo();
82 
83  ClassDef(TGeoParaEditor,0) // TGeoPara editor
84 };
85 
86 #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.
virtual ~TGeoParaEditor()
Destructor.
void DoPhi()
Slot for phi.
Basic string class.
Definition: TString.h:129
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:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
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