Logo ROOT  
Reference Guide
TGeoConeEditor.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_TGeoConeEditor
12#define ROOT_TGeoConeEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoCone;
18class TGeoConeSeg;
19class TGeoTabManager;
20class TGTextEntry;
21class TGNumberEntry;
22class TGTab;
23class TGComboBox;
24class TGTextButton;
25class TGCheckButton;
26class TString;
27
29
30protected:
31
32 Double_t fRmini1; // Initial inner radius at -dz
33 Double_t fRmaxi1; // Initial outer radius at -dz
34 Double_t fRmini2; // Initial inner radius at +dz
35 Double_t fRmaxi2; // Initial outer radius at +dz
36 Double_t fDzi; // Initial box dz
37 TString fNamei; // Initial name
38 TGeoCone *fShape; // Shape object
39 Bool_t fIsModified; // Flag that volume was modified
40 Bool_t fIsShapeEditable; // Flag that the shape can be changed
41 TGTextEntry *fShapeName; // Shape name text entry
42 TGNumberEntry *fERmin1; // Number entry for rmin1
43 TGNumberEntry *fERmin2; // Number entry for rmin2
44 TGNumberEntry *fERmax1; // Number entry for rmax1
45 TGNumberEntry *fERmax2; // Number entry for rmax2
46 TGNumberEntry *fEDz; // Number entry for DZ
47 TGTextButton *fApply; // Apply-Button to accept changes
48 TGTextButton *fUndo; // Undo-Button
49 TGCompositeFrame *fBFrame; // Frame containing Apply/Undo
50 TGCheckButton *fDelayed; // Check button for delayed draw
51 TGCompositeFrame *fDFrame; // Frame containing Delayed draw
52
53 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
54 Bool_t IsDelayed() const;
55
56public:
57 TGeoConeEditor(const TGWindow *p = 0,
58 Int_t width = 140, Int_t height = 30,
59 UInt_t options = kChildFrame,
61 virtual ~TGeoConeEditor();
62 virtual void SetModel(TObject *obj);
63
64 void DoRmin1();
65 void DoRmin2();
66 void DoRmax1();
67 void DoRmax2();
68 void DoDz();
69 void DoModified();
70 void DoName();
71 virtual void DoApply();
72 virtual void DoUndo();
73
74 ClassDef(TGeoConeEditor,0) // TGeoCone editor
75};
76
77
78class TGDoubleVSlider;
79
81
82protected:
83
84 Bool_t fLock; // Phi lock
85 Double_t fPmini; // Initial phi min
86 Double_t fPmaxi; // Initial phi max
87 TGDoubleVSlider *fSPhi; // Phi slider
88 TGNumberEntry *fEPhi1; // Number entry for phi1
89 TGNumberEntry *fEPhi2; // Number entry for phi2
90
91 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
92
93public:
94 TGeoConeSegEditor(const TGWindow *p = 0,
95 Int_t width = 140, Int_t height = 30,
96 UInt_t options = kChildFrame,
98 virtual ~TGeoConeSegEditor();
99 virtual void SetModel(TObject *obj);
100
101 void DoPhi();
102 void DoPhi1();
103 void DoPhi2();
104 virtual void DoApply();
105 virtual void DoUndo();
106
107 ClassDef(TGeoConeSegEditor,0) // TGeoConeSeg editor
108};
109
110#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Definition: TGTab.h:62
Editor for a TGeoCone.
TGNumberEntry * fERmin1
TGeoCone * fShape
Bool_t fIsShapeEditable
Double_t fRmini2
TGCompositeFrame * fDFrame
void DoModified()
Slot for modifying current parameters.
Double_t fRmaxi2
TGTextButton * fUndo
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGCheckButton * fDelayed
virtual ~TGeoConeEditor()
Destructor.
TGNumberEntry * fEDz
TGNumberEntry * fERmax1
virtual void SetModel(TObject *obj)
Connect to the selected object.
void DoRmin2()
Slot for Rmin2.
virtual void DoUndo()
Slot for undoing current operation.
Double_t fRmaxi1
TGeoConeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for volume editor.
Double_t fRmini1
void DoName()
Slot for name.
TGNumberEntry * fERmax2
TGCompositeFrame * fBFrame
void DoRmin1()
Slot for Rmin1.
void DoRmax1()
Slot for Rmax1.
TGTextEntry * fShapeName
TGNumberEntry * fERmin2
void DoDz()
Slot for Dz.
void DoRmax2()
Slot for Rmax2.
Bool_t IsDelayed() const
Check if shape drawing is delayed.
TGTextButton * fApply
virtual void DoApply()
Slot for applying current parameters.
Editor for a cone segment.
void DoPhi1()
Slot for Phi1.
TGNumberEntry * fEPhi2
virtual void SetModel(TObject *obj)
Connect to the selected object.
virtual void DoApply()
Slot for applying current parameters.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGDoubleVSlider * fSPhi
void DoPhi2()
Slot for Phi2.
virtual ~TGeoConeSegEditor()
Destructor.
TGNumberEntry * fEPhi1
TGeoConeSegEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for cone segment editor.
void DoPhi()
Slot for Phi.
virtual void DoUndo()
Slot for undoing last operation.
A phi segment of a conical tube.
Definition: TGeoCone.h:99
Conical tube class.
Definition: TGeoCone.h:18
Common base class for geombuilder editors.
Definition: TGeoGedFrame.h:13
Manager for all editor tabs.
Mother of all ROOT objects.
Definition: TObject.h:37
Basic string class.
Definition: TString.h:131