Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 = nullptr,
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 = nullptr,
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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:337
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 TGeoCone.
TGNumberEntry * fERmin1
TGeoCone * fShape
Bool_t fIsShapeEditable
TGCompositeFrame * fDFrame
void DoModified()
Slot for modifying current parameters.
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.
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
void DoPhi()
Slot for Phi.
virtual void DoUndo()
Slot for undoing last operation.
A cone segment is a cone having a range in phi.
Definition TGeoCone.h:102
The cones are defined by 5 parameters:
Definition TGeoCone.h:18
Common base class for geombuilder editors.
Manager for all editor tabs.
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139