ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
TGeoTrapEditor.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_TGeoTrapEditor
12
#define ROOT_TGeoTrapEditor
13
14
#include "
TGWidget.h
"
15
#include "
TGeoGedFrame.h
"
16
17
class
TGeoTrap
;
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
TGeoTrapEditor
:
public
TGeoGedFrame
{
28
29
protected
:
30
31
Double_t
fH1i
;
// Initial half length in y at low z
32
Double_t
fBl1i
;
// Initial half length in x at low z and y low edge
33
Double_t
fTl1i
;
// Initial half length in x at low z and y high edge
34
Double_t
fDzi
;
// Initial Dz
35
Double_t
fSci
;
// Initial scale factor for upper face
36
Double_t
fAlpha1i
;
// Initial angle between centers of x edges an y axis at low z
37
Double_t
fThetai
;
// Initial theta
38
Double_t
fPhii
;
// Initial phi
39
TString
fNamei
;
// Initial name
40
TGeoTrap
*
fShape
;
// Shape object
41
Bool_t
fIsModified
;
// Flag that volume was modified
42
Bool_t
fIsShapeEditable
;
// Flag that the shape can be changed
43
44
TGTextEntry
*
fShapeName
;
// Shape name text entry
45
TGNumberEntry
*
fEH1
;
// Number entry for H1
46
TGNumberEntry
*
fEBl1
;
// Number entry for Bl1
47
TGNumberEntry
*
fETl1
;
// Number entry for Tl1
48
TGNumberEntry
*
fESc1
;
// Number entry for lower scale
49
TGNumberEntry
*
fESc2
;
// Number entry for upper scale
50
TGNumberEntry
*
fEDz
;
// Number entry for DZ
51
TGNumberEntry
*
fEAlpha1
;
// Number entry for Alpha1
52
TGNumberEntry
*
fETheta
;
// Number entry for Theta
53
TGNumberEntry
*
fEPhi
;
// Number entry for Theta
54
TGTextButton
*
fApply
;
// Apply-Button to accept changes
55
TGTextButton
*
fUndo
;
// Undo-Button
56
TGCompositeFrame
*
fBFrame
;
// Frame containing Apply/Undo
57
TGCheckButton
*
fDelayed
;
// Check button for delayed draw
58
TGCompositeFrame
*
fDFrame
;
// Frame containing Delayed draw
59
60
virtual
void
ConnectSignals2Slots
();
// Connect the signals to the slots
61
Bool_t
IsDelayed
()
const
;
62
63
public
:
64
TGeoTrapEditor
(
const
TGWindow
*p = 0,
65
Int_t
width
= 140,
Int_t
height = 30,
66
UInt_t
options =
kChildFrame
,
67
Pixel_t
back =
GetDefaultFrameBackground
());
68
virtual
~TGeoTrapEditor
();
69
virtual
void
SetModel
(
TObject
*obj);
70
71
void
DoH1
();
72
void
DoBl1
();
73
void
DoTl1
();
74
void
DoDz
();
75
void
DoSc1
();
76
void
DoSc2
();
77
void
DoAlpha1
();
78
void
DoTheta
();
79
void
DoPhi
();
80
void
DoModified
();
81
void
DoName
();
82
virtual
void
DoApply
();
83
virtual
void
DoUndo
();
84
85
ClassDef
(
TGeoTrapEditor
,0)
// TGeoTrap editor
86
};
87
88
class
TGeoGtraEditor
:
public
TGeoTrapEditor
{
89
90
protected
:
91
92
Double_t
fTwisti
;
// Initial twist angle
93
TGNumberEntry
*
fETwist
;
// Number entry for H1
94
95
public
:
96
TGeoGtraEditor
(
const
TGWindow
*p = 0,
97
Int_t
width
= 140,
Int_t
height = 30,
98
UInt_t
options =
kChildFrame
,
99
Pixel_t
back =
GetDefaultFrameBackground
());
100
virtual
~TGeoGtraEditor
();
101
virtual
void
SetModel
(
TObject
*obj);
102
103
void
DoTwist
();
104
virtual
void
DoApply
();
105
virtual
void
DoUndo
();
106
107
ClassDef
(
TGeoGtraEditor
,0)
// TGeoTrap editor
108
};
109
110
#endif
kChildFrame
@ kChildFrame
Definition
GuiTypes.h:379
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition
GuiTypes.h:40
Double_t
double Double_t
Definition
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition
TDocParser.cxx:121
TGWidget.h
TGeoGedFrame.h
TGCheckButton
Selects different options.
Definition
TGButton.h:264
TGComboBox
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition
TGComboBox.h:47
TGCompositeFrame
The base class for composite widgets (menu bars, list boxes, etc.).
Definition
TGFrame.h:287
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition
TGFrame.cxx:683
TGNumberEntry
TGNumberEntry is a number entry input widget with up/down buttons.
Definition
TGNumberEntry.h:148
TGTab
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition
TGTab.h:46
TGTextButton
Yield an action as soon as it is clicked.
Definition
TGButton.h:142
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TGeoGedFrame
Common base class for geombuilder editors.
Definition
TGeoGedFrame.h:13
TGeoGtraEditor
Editor for a TGeoGtra.
Definition
TGeoTrapEditor.h:88
TGeoGtraEditor::fTwisti
Double_t fTwisti
Definition
TGeoTrapEditor.h:92
TGeoGtraEditor::fETwist
TGNumberEntry * fETwist
Definition
TGeoTrapEditor.h:93
TGeoGtraEditor::DoUndo
virtual void DoUndo()
Slot for undoing last operation.
Definition
TGeoTrapEditor.cxx:655
TGeoGtraEditor::SetModel
virtual void SetModel(TObject *obj)
Connect to a given twisted trapezoid.
Definition
TGeoTrapEditor.cxx:557
TGeoGtraEditor::~TGeoGtraEditor
virtual ~TGeoGtraEditor()
Destructor.
Definition
TGeoTrapEditor.cxx:543
TGeoGtraEditor::DoTwist
void DoTwist()
Change the twist angle.
Definition
TGeoTrapEditor.cxx:675
TGeoGtraEditor::DoApply
virtual void DoApply()
Slot for applying current settings.
Definition
TGeoTrapEditor.cxx:602
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
TGeoTrapEditor
Editor for a TGeoTrap.
Definition
TGeoTrapEditor.h:27
TGeoTrapEditor::fApply
TGTextButton * fApply
Definition
TGeoTrapEditor.h:54
TGeoTrapEditor::fEPhi
TGNumberEntry * fEPhi
Definition
TGeoTrapEditor.h:53
TGeoTrapEditor::fDFrame
TGCompositeFrame * fDFrame
Definition
TGeoTrapEditor.h:58
TGeoTrapEditor::fEBl1
TGNumberEntry * fEBl1
Definition
TGeoTrapEditor.h:46
TGeoTrapEditor::DoTl1
void DoTl1()
Slot for Tl1.
Definition
TGeoTrapEditor.cxx:400
TGeoTrapEditor::DoSc2
void DoSc2()
Slot for H2.
Definition
TGeoTrapEditor.cxx:442
TGeoTrapEditor::fNamei
TString fNamei
Definition
TGeoTrapEditor.h:39
TGeoTrapEditor::DoH1
void DoH1()
Slot for H1.
Definition
TGeoTrapEditor.cxx:372
TGeoTrapEditor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoTrapEditor.h:57
TGeoTrapEditor::fETl1
TGNumberEntry * fETl1
Definition
TGeoTrapEditor.h:47
TGeoTrapEditor::fEDz
TGNumberEntry * fEDz
Definition
TGeoTrapEditor.h:50
TGeoTrapEditor::fTl1i
Double_t fTl1i
Definition
TGeoTrapEditor.h:33
TGeoTrapEditor::fDzi
Double_t fDzi
Definition
TGeoTrapEditor.h:34
TGeoTrapEditor::~TGeoTrapEditor
virtual ~TGeoTrapEditor()
Destructor.
Definition
TGeoTrapEditor.cxx:193
TGeoTrapEditor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoTrapEditor.h:42
TGeoTrapEditor::DoUndo
virtual void DoUndo()
Slot for undoing last operation.
Definition
TGeoTrapEditor.cxx:353
TGeoTrapEditor::SetModel
virtual void SetModel(TObject *obj)
Connect to the selected object.
Definition
TGeoTrapEditor.cxx:236
TGeoTrapEditor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoTrapEditor.h:44
TGeoTrapEditor::fEH1
TGNumberEntry * fEH1
Definition
TGeoTrapEditor.h:45
TGeoTrapEditor::DoPhi
void DoPhi()
Slot for phi.
Definition
TGeoTrapEditor.cxx:488
TGeoTrapEditor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoTrapEditor.cxx:207
TGeoTrapEditor::fIsModified
Bool_t fIsModified
Definition
TGeoTrapEditor.h:41
TGeoTrapEditor::fETheta
TGNumberEntry * fETheta
Definition
TGeoTrapEditor.h:52
TGeoTrapEditor::DoName
void DoName()
Slot for name.
Definition
TGeoTrapEditor.cxx:287
TGeoTrapEditor::DoSc1
void DoSc1()
Slot for H2.
Definition
TGeoTrapEditor.cxx:428
TGeoTrapEditor::fAlpha1i
Double_t fAlpha1i
Definition
TGeoTrapEditor.h:36
TGeoTrapEditor::fH1i
Double_t fH1i
Definition
TGeoTrapEditor.h:31
TGeoTrapEditor::fBFrame
TGCompositeFrame * fBFrame
Definition
TGeoTrapEditor.h:56
TGeoTrapEditor::DoAlpha1
void DoAlpha1()
Slot for alpha1.
Definition
TGeoTrapEditor.cxx:456
TGeoTrapEditor::fPhii
Double_t fPhii
Definition
TGeoTrapEditor.h:38
TGeoTrapEditor::fESc2
TGNumberEntry * fESc2
Definition
TGeoTrapEditor.h:49
TGeoTrapEditor::DoBl1
void DoBl1()
Slot for Bl1.
Definition
TGeoTrapEditor.cxx:386
TGeoTrapEditor::fBl1i
Double_t fBl1i
Definition
TGeoTrapEditor.h:32
TGeoTrapEditor::DoApply
virtual void DoApply()
Slot for applying current settings.
Definition
TGeoTrapEditor.cxx:295
TGeoTrapEditor::fESc1
TGNumberEntry * fESc1
Definition
TGeoTrapEditor.h:48
TGeoTrapEditor::DoDz
void DoDz()
Slot for Z.
Definition
TGeoTrapEditor.cxx:414
TGeoTrapEditor::DoTheta
void DoTheta()
Slot for theta.
Definition
TGeoTrapEditor.cxx:470
TGeoTrapEditor::DoModified
void DoModified()
Slot for notifying modifications.
Definition
TGeoTrapEditor.cxx:345
TGeoTrapEditor::fShape
TGeoTrap * fShape
Definition
TGeoTrapEditor.h:40
TGeoTrapEditor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoTrapEditor.cxx:279
TGeoTrapEditor::fSci
Double_t fSci
Definition
TGeoTrapEditor.h:35
TGeoTrapEditor::fUndo
TGTextButton * fUndo
Definition
TGeoTrapEditor.h:55
TGeoTrapEditor::fEAlpha1
TGNumberEntry * fEAlpha1
Definition
TGeoTrapEditor.h:51
TGeoTrapEditor::fThetai
Double_t fThetai
Definition
TGeoTrapEditor.h:37
TGeoTrap
A general trapezoid.
Definition
TGeoArb8.h:92
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TString
Basic string class.
Definition
TString.h:136
bool
int
unsigned int
geom
geombuilder
inc
TGeoTrapEditor.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:18 (GVA Time) using Doxygen 1.9.8