ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TGeoSphereEditor.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_TGeoSphereEditor
12
#define ROOT_TGeoSphereEditor
13
14
#include "
TGWidget.h
"
15
#include "
TGeoGedFrame.h
"
16
17
class
TGeoSphere
;
18
class
TGeoTabManager
;
19
class
TGTextEntry
;
20
class
TGNumberEntry
;
21
class
TGTab
;
22
class
TGComboBox
;
23
class
TGDoubleVSlider
;
24
class
TGTextButton
;
25
class
TGCheckButton
;
26
class
TString
;
27
28
class
TGeoSphereEditor
:
public
TGeoGedFrame
{
29
30
protected
:
31
Double_t
fRmini
;
// Initial inner radius
32
Double_t
fRmaxi
;
// Initial outer radius
33
Double_t
fTheta1i
;
// Initial lower theta limit
34
Double_t
fTheta2i
;
// Initial higher theta limit
35
Double_t
fPhi1i
;
// Initial lower phi limit
36
Double_t
fPhi2i
;
// Initial higher phi limit
37
TString
fNamei
;
// Initial name
38
TGeoSphere
*
fShape
;
// Shape object
39
Bool_t
fIsModified
;
// Flag that volume was modified
40
Bool_t
fIsShapeEditable
;
// Flag that the shape can be changed
41
Bool_t
fLock
;
// Lock
42
43
TGTextEntry
*
fShapeName
;
// Shape name text entry
44
TGNumberEntry
*
fERmin
;
// Number entry for rmin
45
TGNumberEntry
*
fERmax
;
// Number entry for rmax
46
TGNumberEntry
*
fETheta1
;
// Number entry for Theta1
47
TGNumberEntry
*
fETheta2
;
// Number entry for Theta2
48
TGNumberEntry
*
fEPhi1
;
// Number entry for phi1
49
TGNumberEntry
*
fEPhi2
;
// Number entry for phi2
50
TGDoubleVSlider
*
fSPhi
;
// Phi slider
51
TGDoubleVSlider
*
fSTheta
;
// Theta slider
52
TGTextButton
*
fApply
;
// Apply-Button to accept changes
53
TGTextButton
*
fUndo
;
// Undo-Button
54
TGCheckButton
*
fDelayed
;
// Check button for delayed draw
55
56
virtual
void
ConnectSignals2Slots
();
// Connect the signals to the slots
57
Bool_t
IsDelayed
()
const
;
58
59
public
:
60
TGeoSphereEditor
(
const
TGWindow
*
p
=
nullptr
,
Int_t
width
= 140,
Int_t
height
= 30,
UInt_t
options =
kChildFrame
,
61
Pixel_t
back =
GetDefaultFrameBackground
());
62
~TGeoSphereEditor
()
override
;
63
void
SetModel
(
TObject
*obj)
override
;
64
65
void
DoRmin
();
66
void
DoRmax
();
67
void
DoPhi
();
68
void
DoTheta
();
69
void
DoTheta1
();
70
void
DoTheta2
();
71
void
DoPhi1
();
72
void
DoPhi2
();
73
void
DoModified
();
74
void
DoName
();
75
virtual
void
DoApply
();
76
virtual
void
DoUndo
();
77
78
ClassDefOverride
(
TGeoSphereEditor
, 0)
// TGeoSphere editor
79
};
80
81
#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
TGDoubleVSlider
Dragging the slider will generate the event:
Definition
TGDoubleSlider.h:170
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
TGeoSphereEditor
Editor for a TGeoSphere.
Definition
TGeoSphereEditor.h:28
TGeoSphereEditor::fEPhi2
TGNumberEntry * fEPhi2
Definition
TGeoSphereEditor.h:49
TGeoSphereEditor::fDelayed
TGCheckButton * fDelayed
Definition
TGeoSphereEditor.h:54
TGeoSphereEditor::ConnectSignals2Slots
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition
TGeoSphereEditor.cxx:197
TGeoSphereEditor::fTheta1i
Double_t fTheta1i
Definition
TGeoSphereEditor.h:33
TGeoSphereEditor::fERmax
TGNumberEntry * fERmax
Definition
TGeoSphereEditor.h:45
TGeoSphereEditor::DoTheta1
void DoTheta1()
Slot for theta1.
Definition
TGeoSphereEditor.cxx:436
TGeoSphereEditor::DoRmin
void DoRmin()
Slot for Rmin.
Definition
TGeoSphereEditor.cxx:329
TGeoSphereEditor::fETheta1
TGNumberEntry * fETheta1
Definition
TGeoSphereEditor.h:46
TGeoSphereEditor::fRmaxi
Double_t fRmaxi
Definition
TGeoSphereEditor.h:32
TGeoSphereEditor::fETheta2
TGNumberEntry * fETheta2
Definition
TGeoSphereEditor.h:47
TGeoSphereEditor::fTheta2i
Double_t fTheta2i
Definition
TGeoSphereEditor.h:34
TGeoSphereEditor::DoName
void DoName()
Slot for name.
Definition
TGeoSphereEditor.cxx:259
TGeoSphereEditor::fPhi1i
Double_t fPhi1i
Definition
TGeoSphereEditor.h:35
TGeoSphereEditor::fERmin
TGNumberEntry * fERmin
Definition
TGeoSphereEditor.h:44
TGeoSphereEditor::fLock
Bool_t fLock
Definition
TGeoSphereEditor.h:41
TGeoSphereEditor::DoPhi2
void DoPhi2()
Slot for phi2.
Definition
TGeoSphereEditor.cxx:394
TGeoSphereEditor::fSPhi
TGDoubleVSlider * fSPhi
Definition
TGeoSphereEditor.h:50
TGeoSphereEditor::IsDelayed
Bool_t IsDelayed() const
Check if shape drawing is delayed.
Definition
TGeoSphereEditor.cxx:251
TGeoSphereEditor::DoTheta
void DoTheta()
Slot for theta slider.
Definition
TGeoSphereEditor.cxx:478
TGeoSphereEditor::DoModified
void DoModified()
Slot for signaling modifications.
Definition
TGeoSphereEditor.cxx:303
TGeoSphereEditor::DoTheta2
void DoTheta2()
Slot for theta2.
Definition
TGeoSphereEditor.cxx:457
TGeoSphereEditor::fShapeName
TGTextEntry * fShapeName
Definition
TGeoSphereEditor.h:43
TGeoSphereEditor::fNamei
TString fNamei
Definition
TGeoSphereEditor.h:37
TGeoSphereEditor::DoPhi
void DoPhi()
Slot for phi slider.
Definition
TGeoSphereEditor.cxx:419
TGeoSphereEditor::fShape
TGeoSphere * fShape
Definition
TGeoSphereEditor.h:38
TGeoSphereEditor::SetModel
void SetModel(TObject *obj) override
Connect to a given sphere.
Definition
TGeoSphereEditor.cxx:216
TGeoSphereEditor::fEPhi1
TGNumberEntry * fEPhi1
Definition
TGeoSphereEditor.h:48
TGeoSphereEditor::fSTheta
TGDoubleVSlider * fSTheta
Definition
TGeoSphereEditor.h:51
TGeoSphereEditor::DoPhi1
void DoPhi1()
Slot for phi1.
Definition
TGeoSphereEditor.cxx:369
TGeoSphereEditor::fIsModified
Bool_t fIsModified
Definition
TGeoSphereEditor.h:39
TGeoSphereEditor::DoRmax
void DoRmax()
Slot for Rmax.
Definition
TGeoSphereEditor.cxx:349
TGeoSphereEditor::DoUndo
virtual void DoUndo()
Slot for undoing last operation.
Definition
TGeoSphereEditor.cxx:311
TGeoSphereEditor::fUndo
TGTextButton * fUndo
Definition
TGeoSphereEditor.h:53
TGeoSphereEditor::~TGeoSphereEditor
~TGeoSphereEditor() override
Destructor.
Definition
TGeoSphereEditor.cxx:183
TGeoSphereEditor::fIsShapeEditable
Bool_t fIsShapeEditable
Definition
TGeoSphereEditor.h:40
TGeoSphereEditor::fPhi2i
Double_t fPhi2i
Definition
TGeoSphereEditor.h:36
TGeoSphereEditor::fRmini
Double_t fRmini
Definition
TGeoSphereEditor.h:31
TGeoSphereEditor::DoApply
virtual void DoApply()
Slot for applying modifications.
Definition
TGeoSphereEditor.cxx:267
TGeoSphereEditor::fApply
TGTextButton * fApply
Definition
TGeoSphereEditor.h:52
TGeoSphere
Definition
TGeoSphere.h:17
TGeoTabManager
Manager for all editor tabs.
Definition
TGeoTabManager.h:42
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
TGeoSphereEditor.h
ROOT master - Reference Guide Generated on Tue Nov 5 2024 09:40:15 (GVA Time) using Doxygen 1.9.8