Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoTubeEditor.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_TGeoTubeEditor
12#define ROOT_TGeoTubeEditor
13
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
16
17class TGeoTube;
18class TGeoTabManager;
19class TGTextEntry;
20class TGNumberEntry;
21class TGTab;
22class TGComboBox;
23class TGTextButton;
24class TGCheckButton;
25class TString;
26
28
29protected:
30 Double_t fRmini; // Initial inner radius
31 Double_t fRmaxi; // Initial outer radius
32 Double_t fDzi; // Initial box dz
33 TString fNamei; // Initial name
34 TGeoTube *fShape; // Shape object
35 Bool_t fIsModified; // Flag that volume was modified
36 Bool_t fIsShapeEditable; // Flag that the shape can be changed
37
38 TGTextEntry *fShapeName; // Shape name text entry
39 TGNumberEntry *fERmin; // Number entry for rmin
40 TGNumberEntry *fERmax; // Number entry for rmax
41 TGNumberEntry *fEDz; // Number entry for DZ
42 TGTextButton *fApply; // Apply-Button to accept changes
43 TGTextButton *fUndo; // Undo-Button
44 TGCompositeFrame *fBFrame; // Frame containing Apply/Undo
45 TGCheckButton *fDelayed; // Check button for delayed draw
46 TGCompositeFrame *fDFrame; // Frame containing Delayed draw
47
48 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
49 Bool_t IsDelayed() const;
50
51public:
52 TGeoTubeEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
54 ~TGeoTubeEditor() override;
55 void SetModel(TObject *obj) override;
56
57 void DoRmin();
58 void DoRmax();
59 void DoDz();
60 void DoModified();
61 void DoName();
62 virtual void DoApply();
63 virtual void DoUndo();
64
65 ClassDefOverride(TGeoTubeEditor, 0) // TGeoTube editor
66};
67
68class TGDoubleVSlider;
69
71
72protected:
73 Bool_t fLock; // Phi lock
74 Double_t fPmini; // Initial phi min
75 Double_t fPmaxi; // Initial phi max
76 TGDoubleVSlider *fSPhi; // Phi slider
77 TGNumberEntry *fEPhi1; // Number entry for phi1
78 TGNumberEntry *fEPhi2; // Number entry for phi2
79
80 void ConnectSignals2Slots() override; // Connect the signals to the slots
81
82public:
83 TGeoTubeSegEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
85 ~TGeoTubeSegEditor() override;
86 void SetModel(TObject *obj) override;
87
88 void DoPhi();
89 void DoPhi1();
90 void DoPhi2();
91 void DoApply() override;
92 void DoUndo() override;
93
94 ClassDefOverride(TGeoTubeSegEditor, 0) // TGeoTubeSeg editor
95};
96
98
99protected:
100 Double_t fThlo; // Theta angle of the normal to the lower plane (90, 180)
101 Double_t fPhlo; // Phi angle of the normal to lower Z plane
102 Double_t fThhi; // Theta angle of the normal to the upper plane (0, 90)
103 Double_t fPhhi; // Phi angle of the normal to upper Z plane
104 TGNumberEntry *fEThlo; // Number entry for thlo
105 TGNumberEntry *fEPhlo; // Number entry for phlo
106 TGNumberEntry *fEThhi; // Number entry for thhi
107 TGNumberEntry *fEPhhi; // Number entry for phhi
108
109public:
110 TGeoCtubEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
112 ~TGeoCtubEditor() override;
113 void SetModel(TObject *obj) override;
114
115 void DoThlo();
116 void DoPhlo();
117 void DoThhi();
118 void DoPhhi();
119 void DoApply() override;
120 void DoUndo() override;
121
122 ClassDefOverride(TGeoCtubEditor, 0) // TGeoCtub editor
123};
124
125#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Selects different options.
Definition TGButton.h:264
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
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
Dragging the slider will generate the event:
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
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
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Editor for a TGeoCtub.
void DoUndo() override
Slot for undoing last operation.
TGNumberEntry * fEPhlo
TGNumberEntry * fEPhhi
TGNumberEntry * fEThhi
TGNumberEntry * fEThlo
void DoPhlo()
Slot for phi1.
void DoThhi()
Slot for phi1.
~TGeoCtubEditor() override
Destructor.
void DoApply() override
Slot for applying modifications.
void SetModel(TObject *obj) override
Connect to the selected object.
void DoPhhi()
Slot for phi1.
void DoThlo()
Slot for phi1.
Common base class for geombuilder editors.
Manager for all editor tabs.
Editor for a TGeoTube.
virtual void ConnectSignals2Slots()
Connect signals to slots.
void DoRmax()
Slot for rmax.
void SetModel(TObject *obj) override
Connect to the selected object.
TGTextEntry * fShapeName
void DoRmin()
Slot for rmin.
TGCompositeFrame * fDFrame
~TGeoTubeEditor() override
Destructor.
Bool_t fIsShapeEditable
TGTextButton * fUndo
void DoModified()
Slot for signaling modifications.
TGTextButton * fApply
TGCompositeFrame * fBFrame
TGNumberEntry * fEDz
virtual void DoUndo()
Slot for undoing last operation.
TGNumberEntry * fERmax
void DoDz()
Slot for dz.
TGCheckButton * fDelayed
void DoName()
Perform name change.
TGNumberEntry * fERmin
Bool_t IsDelayed() const
Check if shape drawing is delayed.
TGeoTube * fShape
virtual void DoApply()
Slot for applying modifications.
Editor for a TGeoTubeSeg.
void DoApply() override
Slot for applying modifications.
TGDoubleVSlider * fSPhi
void DoPhi2()
Slot for phi2.
TGNumberEntry * fEPhi1
void ConnectSignals2Slots() override
Connect signals to slots.
~TGeoTubeSegEditor() override
Destructor.
void DoPhi1()
Slot for phi1.
TGNumberEntry * fEPhi2
void DoPhi()
Slot for phi slider.
void DoUndo() override
Slot for undoing last operation.
void SetModel(TObject *obj) override
Connect to the selected object.
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139