Logo ROOT   6.14/05
Reference Guide
TGeoBBoxEditor.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_TGeoBBoxEditor
12 #define ROOT_TGeoBBoxEditor
13 
14 #include "TGWidget.h"
15 #include "TGeoGedFrame.h"
16 
17 class TGeoBBox;
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 TGeoBBoxEditor : public TGeoGedFrame {
28 
29 protected:
30 
31  Double_t fDxi; // Initial box dx
32  Double_t fDyi; // Initial box dy
33  Double_t fDzi; // Initial box dz
34  Double_t fOrigi[3]; // Initial origin
35  TString fNamei; // Initial name
36  TGeoBBox *fShape; // Shape object
37  Bool_t fIsModified; // Flag that volume was modified
38  Bool_t fIsShapeEditable; // Flag that the shape can be changed
39  TGTextEntry *fShapeName; // Shape name text entry
40  TGNumberEntry *fBoxDx; // Number entry for box DX
41  TGNumberEntry *fBoxDy; // Number entry for box DY
42  TGNumberEntry *fBoxDz; // Number entry for box DZ
43  TGNumberEntry *fBoxOx; // Number entry for box OX
44  TGNumberEntry *fBoxOy; // Number entry for box OY
45  TGNumberEntry *fBoxOz; // Number entry for box OZ
46  TGTextButton *fApply; // Apply-Button to accept changes
47  TGTextButton *fUndo; // Undo-Button
48  TGCheckButton *fDelayed; // Check button for delayed draw
49 
50  virtual void ConnectSignals2Slots(); // Connect the signals to the slots
51  Bool_t IsDelayed() const;
52 
53 public:
54  TGeoBBoxEditor(const TGWindow *p = 0,
55  Int_t width = 140, Int_t height = 30,
56  UInt_t options = kChildFrame,
58  virtual ~TGeoBBoxEditor();
59  virtual void SetModel(TObject *obj);
60 
61  void DoDx();
62  void DoDy();
63  void DoDz();
64  void DoOx();
65  void DoOy();
66  void DoOz();
67  void DoModified();
68  void DoName();
69  void DoApply();
70  void DoUndo();
71 
72  ClassDef(TGeoBBoxEditor,0) // TGeoBBox editor
73 };
74 
75 #endif
TGTextEntry * fShapeName
void DoUndo()
Slot for undoing last operation.
void DoDx()
Slot for Dx modification.
Box class.
Definition: TGeoBBox.h:17
void DoOz()
Slot for Oz modification.
Definition: TGTab.h:62
TGNumberEntry * fBoxOx
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.
TGNumberEntry * fBoxOz
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Double_t fOrigi[3]
#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
TGNumberEntry * fBoxDx
virtual void ConnectSignals2Slots()
Connect signals to slots.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
void DoDz()
Slot for Dz modification.
TGTextButton * fApply
void DoDy()
Slot for Dy modification.
TGNumberEntry * fBoxDz
void DoApply()
Slot for applying current parameters.
Bool_t fIsShapeEditable
unsigned int UInt_t
Definition: RtypesCore.h:42
Editor for a TGeoBBox.
TGeoBBox * fShape
void DoModified()
Slot for modifying current parameters.
double Double_t
Definition: RtypesCore.h:55
virtual void SetModel(TObject *obj)
Update editor for a new selected box.
Mother of all ROOT objects.
Definition: TObject.h:37
void DoOy()
Slot for Oy modification.
TGNumberEntry * fBoxDy
TGNumberEntry * fBoxOy
TGCheckButton * fDelayed
TGeoBBoxEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
void DoName()
Slot for name.
void DoOx()
Slot for Ox modification.
TGTextButton * fUndo
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
virtual ~TGeoBBoxEditor()
Destructor.