ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TGeoTorusEditor.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_TGeoTorusEditor
12
#define ROOT_TGeoTorusEditor
13
14
#include "
TGWidget.h
"
15
#include "
TGeoGedFrame.h
"
16
17
class
TGeoTorus
;
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
TGeoTorusEditor
:
public
TGeoGedFrame
{
28
29
protected
:
30
Double_t
fRi
;
// Initial axial radius
31
Double_t
fRmini
;
// Initial inner radius
32
Double_t
fRmaxi
;
// Initial outer radius
33
Double_t
fPhi1i
;
// Initial starting phi1
34
Double_t
fDphii
;
// Initial phi extent
35
TString
fNamei
;
// Initial name
36
TGeoTorus
*
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
*
fER
;
// Number entry for R
42
TGNumberEntry
*
fERmin
;
// Number entry for Rmin
43
TGNumberEntry
*
fERmax
;
// Number entry for Rmax
44
TGNumberEntry
*
fEPhi1
;
// Number entry for phi1
45
TGNumberEntry
*
fEDphi
;
// Number entry for Dphi
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
TGeoTorusEditor
(
const
TGWindow
*
p
=
nullptr
,
Int_t
width
= 140,
Int_t
height
= 30,
UInt_t
options =
kChildFrame
,
55
Pixel_t
back =
GetDefaultFrameBackground
());
56
~TGeoTorusEditor
()
override
;
57
void
SetModel
(
TObject
*obj)
override
;
58
59
void
DoR
();
60
void
DoRmin
();
61
void
DoRmax
();
62
void
DoPhi1
();
63
void
DoDphi
();
64
void
DoModified
();
65
void
DoName
();
66
void
DoApply
();
67
void
DoUndo
();
68
69
ClassDefOverride
(
TGeoTorusEditor
, 0)
// TGeoTorus editor
70
};
71
72
#endif
kChildFrame
@ kChildFrame
Definition
GuiTypes.h:379
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition
GuiTypes.h:40
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
TGWidget.h
p
winID h TVirtualViewer3D TVirtualGLPainter p
Definition
TGWin32VirtualGLProxy.cxx:51
width
Option_t Option_t width
Definition
TGWin32VirtualXProxy.cxx:56
height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Definition
TGWin32VirtualXProxy.cxx:164
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
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
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
TGeoTorusEditor
Editor for a TGeoTorus.
Definition
TGeoTorusEditor.h:27
TGeoTorusEditor::fApply
TGTextButton * fApply
Definition
TGeoTorusEditor.h:46
TGeoTorusEditor::fRmini
Double_t fRmini
Definition
TGeoTorusEditor.h:31
TGeoTorusEditor::DoRmax
void DoRmax()
Slot for Rmax.
Definition
TGeoTorusEditor.cxx:331
TGeoTorusEditor::DoR
void DoR()
Slot for R.
Definition
TGeoTorusEditor.cxx:299
TGeoTorusEditor::DoPhi1
void DoPhi1()
Slot for phi.
Definition
TGeoTorusEditor.cxx:352
TGeoTorusEditor::DoRmin
void DoRmin()
Slot for Rmin.
Definition
TGeoTorusEditor.cxx:315
TGeoTorusEditor::fDphii
Double_t fDphii
Definition
TGeoTorusEditor.h:34
TGeoTorusEditor::fEDphi
TGNumberEntry * fEDphi
Definition
TGeoTorusEditor.h:45
TGeoTorusEditor::DoUndo
void DoUndo()
Slot for undoing last operation.
Definition
TGeoTorusEditor.cxx:284
TGeoTorusEditor::fNamei
TString fNamei
Definition
TGeoTorusEditor.h:35
TGeoTorusEditor::fRmaxi
Double_t fRmaxi
Definition
TGeoTorusEditor.h:32
TGeoTorusEditor::DoName
void DoName()
Slot for name.
Definition
TGeoTorusEditor.cxx:229
TGeoTorusEditor::fEPhi1
TGNumberEntry * fEPhi1
Definition
TGeoTorusEditor.h:44
TGeoTorusEditor::fUndo
TGTextButton * fUndo
Definition
TGeoTorusEditor.h:47
TGeoTorusEditor::fER
TGNumberEntry * fER
Definition
TGeoTorusEditor.h:41
TGeoTorusEditor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoTorusEditor.h:48
TGeoTorusEditor::fRi
Double_t fRi
Definition
TGeoTorusEditor.h:30
TGeoTorusEditor::DoDphi
void DoDphi()
Slot for Dphi.
Definition
TGeoTorusEditor.cxx:367
TGeoTorusEditor::~TGeoTorusEditor
~TGeoTorusEditor() override
Destructor.
Definition
TGeoTorusEditor.cxx:151
TGeoTorusEditor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoTorusEditor.h:38
TGeoTorusEditor::SetModel
void SetModel(TObject *obj) override
Connect to the selected object.
Definition
TGeoTorusEditor.cxx:186
TGeoTorusEditor::fPhi1i
Double_t fPhi1i
Definition
TGeoTorusEditor.h:33
TGeoTorusEditor::DoApply
void DoApply()
Slot for applying current settings.
Definition
TGeoTorusEditor.cxx:237
TGeoTorusEditor::fERmin
TGNumberEntry * fERmin
Definition
TGeoTorusEditor.h:42
TGeoTorusEditor::DoModified
void DoModified()
Slot for notifying modifications.
Definition
TGeoTorusEditor.cxx:276
TGeoTorusEditor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoTorusEditor.h:40
TGeoTorusEditor::fERmax
TGNumberEntry * fERmax
Definition
TGeoTorusEditor.h:43
TGeoTorusEditor::fShape
TGeoTorus * fShape
Definition
TGeoTorusEditor.h:36
TGeoTorusEditor::fIsModified
Bool_t fIsModified
Definition
TGeoTorusEditor.h:37
TGeoTorusEditor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoTorusEditor.cxx:165
TGeoTorusEditor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoTorusEditor.cxx:221
TGeoTorus
Definition
TGeoTorus.h:17
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TString
Basic string class.
Definition
TString.h:139
bool
double
int
unsigned int
geom
geombuilder
inc
TGeoTorusEditor.h
ROOT master - Reference Guide Generated on Thu Dec 19 2024 09:45:39 (GVA Time) using Doxygen 1.9.8