Logo ROOT   6.14/05
Reference Guide
TGeoTrd1Editor.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_TGeoTrd1Editor
12 #define ROOT_TGeoTrd1Editor
13 
14 #include "TGWidget.h"
15 #include "TGeoGedFrame.h"
16 
17 class TGeoTrd1;
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 TGeoTrd1Editor : public TGeoGedFrame {
28 
29 protected:
30 
31  Double_t fDxi1; // Initial dx1
32  Double_t fDxi2; // Initial dx2
33  Double_t fDyi; // Initial dy
34  Double_t fDzi; // Initial dz
35  TString fNamei; // Initial name
36  TGeoTrd1 *fShape; // Shape object
37  Bool_t fIsModified; // Flag that volume was modified
38  Bool_t fIsShapeEditable; // Flag that the shape can be changed
39 
40  TGTextEntry *fShapeName; // Shape name text entry
41  TGNumberEntry *fEDx1; // Number entry for DX1
42  TGNumberEntry *fEDx2; // Number entry for DX2
43  TGNumberEntry *fEDy; // Number entry for DY
44  TGNumberEntry *fEDz; // Number entry for DZ
45  TGTextButton *fApply; // Apply-Button to accept changes
46  TGTextButton *fUndo; // Undo-Button
47  TGCheckButton *fDelayed; // Check button for delayed draw
48 
49  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
50  Bool_t IsDelayed() const;
51 
52 public:
53  TGeoTrd1Editor(const TGWindow *p = 0,
54  Int_t width = 140, Int_t height = 30,
55  UInt_t options = kChildFrame,
57  virtual ~TGeoTrd1Editor();
58  virtual void SetModel(TObject *obj);
59 
60  void DoDx1();
61  void DoDx2();
62  void DoDy();
63  void DoDz();
64  void DoModified();
65  void DoName();
66  void DoApply();
67  void DoUndo();
68 
69  ClassDef(TGeoTrd1Editor,0) // TGeoTrd1 editor
70 };
71 
72 #endif
Definition: TGTab.h:62
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.
void DoModified()
Slot for signaling modifications.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGNumberEntry * fEDx1
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
A trapezoid with only x length varying with z.
Definition: TGeoTrd1.h:17
Bool_t IsDelayed() const
Check if shape drawing is delayed.
virtual ~TGeoTrd1Editor()
Destructor.
#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 DoApply()
Slot for applying modifications.
TGTextButton * fApply
TGTextButton * fUndo
TGeoTrd1 * fShape
TGNumberEntry * fEDx2
TGNumberEntry * fEDz
TGNumberEntry * fEDy
void DoDy()
Slot for dy.
void DoUndo()
Slot for undoing last operation.
unsigned int UInt_t
Definition: RtypesCore.h:42
TGeoTrd1Editor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for trd1 editor.
void DoDz()
Slot for dz.
double Double_t
Definition: RtypesCore.h:55
Editor for a TGeoTrd1.
TGTextEntry * fShapeName
TGCheckButton * fDelayed
Mother of all ROOT objects.
Definition: TObject.h:37
Bool_t fIsShapeEditable
void DoDx1()
Slot for dx1.
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoName()
Perform name change.
void DoDx2()
Slot for dx2.
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13