Logo ROOT  
Reference Guide
No Matches
Go to the documentation of this file.
1// @(#):$Id$
2// Author: M.Gheata
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 *************************************************************************/
11#ifndef ROOT_TGeoConeEditor
12#define ROOT_TGeoConeEditor
14#include "TGWidget.h"
15#include "TGeoGedFrame.h"
17class TGeoCone;
18class TGeoConeSeg;
19class TGeoTabManager;
20class TGTextEntry;
21class TGNumberEntry;
22class TGTab;
23class TGComboBox;
24class TGTextButton;
25class TGCheckButton;
26class TString;
31 Double_t fRmini1; // Initial inner radius at -dz
32 Double_t fRmaxi1; // Initial outer radius at -dz
33 Double_t fRmini2; // Initial inner radius at +dz
34 Double_t fRmaxi2; // Initial outer radius at +dz
35 Double_t fDzi; // Initial box dz
36 TString fNamei; // Initial name
37 TGeoCone *fShape; // Shape object
38 Bool_t fIsModified; // Flag that volume was modified
39 Bool_t fIsShapeEditable; // Flag that the shape can be changed
40 TGTextEntry *fShapeName; // Shape name text entry
41 TGNumberEntry *fERmin1; // Number entry for rmin1
42 TGNumberEntry *fERmin2; // Number entry for rmin2
43 TGNumberEntry *fERmax1; // Number entry for rmax1
44 TGNumberEntry *fERmax2; // Number entry for rmax2
45 TGNumberEntry *fEDz; // Number entry for DZ
46 TGTextButton *fApply; // Apply-Button to accept changes
47 TGTextButton *fUndo; // Undo-Button
48 TGCompositeFrame *fBFrame; // Frame containing Apply/Undo
49 TGCheckButton *fDelayed; // Check button for delayed draw
50 TGCompositeFrame *fDFrame; // Frame containing Delayed draw
52 virtual void ConnectSignals2Slots(); // Connect the signals to the slots
53 Bool_t IsDelayed() const;
56 TGeoConeEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
58 ~TGeoConeEditor() override;
59 void SetModel(TObject *obj) override;
61 void DoRmin1();
62 void DoRmin2();
63 void DoRmax1();
64 void DoRmax2();
65 void DoDz();
66 void DoModified();
67 void DoName();
68 virtual void DoApply();
69 virtual void DoUndo();
71 ClassDefOverride(TGeoConeEditor, 0) // TGeoCone editor
74class TGDoubleVSlider;
79 Bool_t fLock; // Phi lock
80 Double_t fPmini; // Initial phi min
81 Double_t fPmaxi; // Initial phi max
82 TGDoubleVSlider *fSPhi; // Phi slider
83 TGNumberEntry *fEPhi1; // Number entry for phi1
84 TGNumberEntry *fEPhi2; // Number entry for phi2
86 void ConnectSignals2Slots() override; // Connect the signals to the slots
89 TGeoConeSegEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
91 ~TGeoConeSegEditor() override;
92 void SetModel(TObject *obj) override;
94 void DoPhi();
95 void DoPhi1();
96 void DoPhi2();
97 void DoApply() override;
98 void DoUndo() override;
100 ClassDefOverride(TGeoConeSegEditor, 0) // TGeoConeSeg editor
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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
~TGeoConeEditor() override
TGNumberEntry * fEDz
TGNumberEntry * fERmax1
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
void SetModel(TObject *obj) override
Connect to the selected object.
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
~TGeoConeSegEditor() override
void SetModel(TObject *obj) override
Connect to the selected object.
void ConnectSignals2Slots() override
Connect signals to slots.
void DoUndo() override
Slot for undoing last operation.
TGDoubleVSlider * fSPhi
void DoPhi2()
Slot for Phi2.
void DoApply() override
Slot for applying current parameters.
TGNumberEntry * fEPhi1
void DoPhi()
Slot for Phi.
A cone segment is a cone having a range in phi.
Definition TGeoCone.h:99
The cones are defined by 5 parameters:
Definition TGeoCone.h:17
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